From 30ecfd9b1160752eff9440a3aa2889159e0e6d76 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Fri, 3 Jan 2025 13:24:01 +0000 Subject: [PATCH 1/3] mod_wsgi - update from 5.0.0 to 5.0.2 --- build/mod_wsgi/build.sh | 4 ++-- doc/packages.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/mod_wsgi/build.sh b/build/mod_wsgi/build.sh index 9c07d51c6..4000e5b0d 100755 --- a/build/mod_wsgi/build.sh +++ b/build/mod_wsgi/build.sh @@ -13,12 +13,12 @@ # }}} # Copyright 2023 Carsten Grzemba -# Copyright 2024 OmniOS Community Edition (OmniOSce) Association. +# Copyright 2025 OmniOS Community Edition (OmniOSce) Association. . ../../lib/build.sh PROG=mod_wsgi -VER=5.0.0 +VER=5.0.2 # Hard-coded here for now. If we ship more than one apache version, this will # need restructuring. PKG=ooce/server/apache-24/modules/wsgi diff --git a/doc/packages.md b/doc/packages.md index 26a83b1a1..e26c6f873 100644 --- a/doc/packages.md +++ b/doc/packages.md @@ -204,7 +204,7 @@ | ooce/security/swtpm | 0.10.0 | https://github.com/stefanberger/swtpm/releases | [omniosorg](https://github.com/omniosorg) | ooce/server/apache-24 | 2.4.62 | https://downloads.apache.org/httpd/ | [omniosorg](https://github.com/omniosorg) | ooce/server/apache-24/modules/fcgid | 2.3.9 | https://downloads.apache.org/httpd/mod_fcgid/ | [omniosorg](https://github.com/omniosorg) -| ooce/server/apache-24/modules/wsgi | 5.0.0 | https://github.com/GrahamDumpleton/mod_wsgi/tags/ | [cgrzemba](https://github.com/cgrzemba) +| ooce/server/apache-24/modules/wsgi | 5.0.2 | https://github.com/GrahamDumpleton/mod_wsgi/tags/ | [cgrzemba](https://github.com/cgrzemba) | ooce/server/caddy | 2.8.4 | https://github.com/caddyserver/caddy/releases | [gkoh](https://github.com/gkoh) | ooce/server/freeradius | 3.2.6 | https://github.com/FreeRADIUS/freeradius-server/releases https://freeradius.org/releases | [omniosorg](https://github.com/omniosorg) | ooce/server/haproxy | 3.0.5 | https://www.haproxy.org/ | [omniosorg](https://github.com/omniosorg) From 2e6b979cc9489e8bdcc16808420cdfbcea3a9c7c Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Fri, 3 Jan 2025 13:24:47 +0000 Subject: [PATCH 2/3] qemu: fix build with python 3.13 --- build/qemu/build.sh | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/build/qemu/build.sh b/build/qemu/build.sh index a26fd70b3..cb9c00779 100755 --- a/build/qemu/build.sh +++ b/build/qemu/build.sh @@ -23,8 +23,7 @@ SUMMARY="$PROG" DESC="A generic and open source machine emulator and virtualizer" LIBSLIRPVER=4.8.0 -SPHINXVER=8.1.3 -SPHINXRTDVER=3.0.2 +IMGHDRVER=3.13.0 OPREFIX=$PREFIX PREFIX+=/$PROG @@ -61,14 +60,25 @@ LDFLAGS[amd64]+=" -L$DEPROOT$PREFIX/lib/amd64" addpath PKG_CONFIG_PATH[amd64] $DEPROOT$PREFIX/lib/amd64/pkgconfig -pyvenv_install sphinx $SPHINXVER $TMPDIR/sphinx -pyvenv_install sphinx-rtd-theme $SPHINXRTDVER $TMPDIR/sphinx -PATH+=":$TMPDIR/sphinx/bin" - ######################################################################### note -n "-- Building $PROG" +post_patch() { + typeset dir="$1" + + # PEP 594 removed several modules ("dead batteries") starting in Python + # 3.13. Since sphinx depends on imghdr, we need to explicitly re-add the + # standard module to the temporary virtual environment until this is fixed + # upstream. + ((PYTHONPKGVER >= 313)) || return + + echo "standard-imghdr==$IMGHDRVER" >> $dir/docs/requirements.txt + $SED -i "/sphinx_rtd_theme/a\\ +standard-imghdr = { installed = \"$IMGHDRVER\" } + " $dir/pythondeps.toml || logerr "sphinx imghdr insertion failed" +} + # POSIX sigwait(2) plus strnlen visibility set_standard POSIX+EXTENSIONS CFLAGS From a6b0ae6d952b59de03556ee1a8156da82a51148a Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Fri, 3 Jan 2025 13:24:49 +0000 Subject: [PATCH 3/3] Switch over to python 3.13 --- lib/config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config.sh b/lib/config.sh index 7bac207ab..7e7e79f01 100644 --- a/lib/config.sh +++ b/lib/config.sh @@ -390,7 +390,8 @@ case $RELVER in 151040) PYTHON3VER=3.9 ;; 15104[1-4]) PYTHON3VER=3.10 ;; 15104[5-8]) PYTHON3VER=3.11 ;; - 151049|15105[0-9]) PYTHON3VER=3.12 ;; + 151049|15105[0-2]) PYTHON3VER=3.12 ;; + 15105[3-9]) PYTHON3VER=3.13 ;; *) PYTHON3VER=3.5 ;; esac # Specify default Python version for building packages