Merge ~ahasenack/ubuntu/+source/mod-wsgi:noble-mod-wsgi-python-3.12-ftbfs into ubuntu/+source/mod-wsgi:ubuntu/devel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | git-ubuntu bot | ||||
Approved revision: | not available | ||||
Merged at revision: | 4486a9ea12da58abc54e4602ceaea2e635ecafeb | ||||
Proposed branch: | ~ahasenack/ubuntu/+source/mod-wsgi:noble-mod-wsgi-python-3.12-ftbfs | ||||
Merge into: | ubuntu/+source/mod-wsgi:ubuntu/devel | ||||
Diff against target: |
126 lines (+94/-1) 4 files modified
debian/changelog (+7/-0) debian/control (+2/-1) debian/patches/no-more-distutils.patch (+84/-0) debian/patches/series (+1/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
git-ubuntu bot | Approve | ||
Bryce Harrington (community) | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+456701@code.launchpad.net |
Description of the change
Fix build with python 3.12 which dropped the distutils module.
Upstream committed other changes to support 3.12, mainly in their own github test suite configuration, tox, setup.py, but we don't run those, and I opted to pick the simpler patch that works. At some point debian will update to version 5.0.0, which has all of this included, I suppose.
Also note I didn't pick the ./configure changes from the upstream patch, since ./configure is regenerated from configure.ac during package build.
PPA with proposed enabled, showing a good build with python 3.12: https:/
DEP8: green
Results: (from http://
mod-wsgi @ amd64:
01.12.23 19:04:58 Log 🗒️ ✅ Triggers: mod-wsgi/
Salsa MP: https:/
Confirmed the package in the PPA builds, however the build log shows that distutils still is installed, with no mention of setuptools:
python3-dev (= 3.11.4-5ubuntu1), distutils (= 3.11.5-1), lib2to3 (= 3.11.5-1),
python3-
python3-
This isn't mentioned in d/control, however after uninstalling python3-distutils and running `install-build-deps .` on the source package dir, it does try to pull it in:
The following NEW packages will be installed:
apache2-dev libapr1-dev libaprutil1-dev libpython3-all-dev libpython3-dev libpython3.11-dev libsctp-dev libsctp1
python3-all python3-all-dev python3-dev python3-distutils python3-lib2to3 python3.11-dev
0 upgraded, 14 newly installed, 0 to remove and 287 not upgraded.
Notice though that this is with python3.11. I manually installed python3.12, but my system still builds with python3.12, although it does give an interesting error:
Unpacking python3-all-dev (3.11.4-5) ...
Setting up python3-distutils (3.11.5-1) ...
python3.12: can't get files for byte-compilation
Setting up python3-all (3.11.4-5) ...
Anyway, I can't point to an actual problem so will give a +1. The changes themselves LGTM, and suspect the problem is more just that the python transition is still ongoing.