#1061808 libapache2-mod-python fails its autopkg tests with Python 3.12

#1061808#5
Date:
2024-01-29 19:45:25 UTC
From:
To:
With python3-defaults from experimental, the package fails its autopkg
tests:

the test log is not very informative:

[...]
546s autopkgtest [13:40:00]: test smoke: [-----------------------
546s Module python already enabled
546s autopkgtest [13:40:00]: test smoke: -----------------------]
547s autopkgtest [13:40:01]: test smoke:  - - - - - - - - - - results -
- - - - - - - - -
547s smoke                FAIL non-zero exit status 8
547s autopkgtest [13:40:01]: @@@@@@@@@@@@@@@@@@@@ summary
547s smoke                FAIL non-zero exit status 8

#1061808#8
Date:
2024-02-23 14:53:24 UTC
From:
To:
Hello,

Bug #1061808 in libapache2-mod-python reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/libapache2-mod-python/-/commit/c3bc73d7acb35409d02cd5e1a5c51c0a1d94b93e
------------------------------------------------------------------------
Replace deprecated library imp with importlib

The Python library imp is marked as deprecated since Python 3.4 and was
removed in Python 3.12. The documentation recommends replacing it with
importlib. See: https://docs.python.org/3.11/library/imp.html

Closes: #1061808
LP: #2054133
Bug: https://github.com/grisha/mod_python/issues/130
Forwarded: https://github.com/grisha/mod_python/pull/131
Reviewed-by: Gregory Trubetskoy <grisha@modpython.org>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1061808

#1061808#15
Date:
2024-02-23 15:34:33 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libapache2-mod-python, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1061808@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Benjamin Drung <bdrung@debian.org> (supplier of updated libapache2-mod-python package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 23 Feb 2024 11:01:59 +0100
Source: libapache2-mod-python
Built-For-Profiles: noudeb
Architecture: source
Version: 3.5.0.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Benjamin Drung <bdrung@debian.org>
Closes: 1061808
Launchpad-Bugs-Fixed: 2054133
Changes:
 libapache2-mod-python (3.5.0.1-2) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Dominik Viererbe ]
   * debian/patches/13_replace-imp.patch: Replace deprecated library
     imp with importlib (Closes: #1061808, LP: #2054133)
   * debian/tests/smoke:
     - Added cgi handler test.
     - Add debug output.
     - Replaced wget with curl.
Checksums-Sha1:
 5a7f10ccf77b8e80cf3b656afd9ae875ea8bf9b3 2346 libapache2-mod-python_3.5.0.1-2.dsc
 112b192ebbdf73b526a69be4fe559f16514a855b 13888 libapache2-mod-python_3.5.0.1-2.debian.tar.xz
 fa0bc8d863ab955911427b9b7df5c050382d4222 7762 libapache2-mod-python_3.5.0.1-2_source.buildinfo
Checksums-Sha256:
 b7e78dac84cc297bc4c451d3269ff7ca45a236cf614cde4e43a0e653d65896bb 2346 libapache2-mod-python_3.5.0.1-2.dsc
 45f6d422ebbb7c97b54aea663c83e93aa0746774876b031b8165c838113792b7 13888 libapache2-mod-python_3.5.0.1-2.debian.tar.xz
 371df7bc7684943084f658479652667b659e0e128c2251d8816c5578372ced95 7762 libapache2-mod-python_3.5.0.1-2_source.buildinfo
Files:
 b3e9f5a7fdd1e59ca78decd759e5e9ca 2346 httpd optional libapache2-mod-python_3.5.0.1-2.dsc
 1e4043dc320eb658631ea0d3f1543a47 13888 httpd optional libapache2-mod-python_3.5.0.1-2.debian.tar.xz
 2d8a4f1ba13ef92466e6065fe66bd762 7762 httpd optional libapache2-mod-python_3.5.0.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpi0s+9ULm1vzYNVLFZ61xO/Id0wFAmXYsb0ACgkQFZ61xO/I
d0xmExAAtpfoAQQ2ahvyaL3zbMHtcm6HbS/1reosGpafiRGsUWLQfLqyMZNtxBKo
eUqzjN8zORI0sTYByGVIGewtV6getONozZugA7zzY7EUDzE/o9Ek6EbDMwTAZrYM
aL4zMOR44gu2C6C4CAVSVw6m656zghSQW+loh5CxgH+K2RfachJazmG5shXI1OIQ
x3MkGkvfQdv0nLhXJVUTLePkzUKaBcdNhHb3ruMnoht4z3BWb7DDy8yWYPidNDMA
XnK8bATPLs0gAAg2dDkHowqUQetlouCTO3W5VctsI0FNtBCw2/DLnueFPwxUpers
0JM5xiueqBEzmg787ZqOsBgQMCj0ByjL04vOIw2AI4Z68RovE9gO/5AgZOBXvymQ
RZeVVpmc3LZP2KxF3wk/m6LyrHMykgMUaibIQBGIjj+7MpFX0/6zh3CRogty2D6n
UFkI4EDWfK0xdmP+eeWcysjTCF/WuHCMYSl8P8CDIgNiAzE9HVMi8R6lmUj5QtBI
DZRBL9xH+LYzWA+MzAfExX+JBPUAxJ7eFeq8HqRRV6hVWUiMPFHKVnHI+7MQWyle
sVOyWZWvmGmj4i/lUW0zx9wohQYUBybj90+va/Kp00EDjLiDhwoEXveC4VEq4Wdh
YUusXgAgDLavrsmEDPTPtKGUywwBKv/PABDY6AgaDqOHORynNLU=
=wMPp
-----END PGP SIGNATURE-----