FTBFS with python 3.12

Bug #2045416 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mod-wsgi (Debian)
Fix Released
Unknown
mod-wsgi (Ubuntu)
Fix Released
High
Andreas Hasenack

Bug Description

From https://launchpadlibrarian.net/699339383/buildlog_ubuntu-noble-amd64.mod-wsgi_4.9.4-1build2_BUILDING.txt.gz:

(...)
/usr/share/apr-1.0/build/libtool --mode=link --tag=disable-static x86_64-linux-gnu-gcc -Wl,--as-needed -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -lpcre2-8 -L/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 -o src/server/mod_wsgi.la -rpath /usr/lib/apache2/modules -module -avoid-version src/server/wsgi_validate.lo src/server/wsgi_thread.lo src/server/wsgi_stream.lo src/server/wsgi_server.lo src/server/wsgi_restrict.lo src/server/wsgi_metrics.lo src/server/wsgi_memory.lo src/server/wsgi_logger.lo src/server/wsgi_interp.lo src/server/wsgi_daemon.lo src/server/wsgi_convert.lo src/server/wsgi_buckets.lo src/server/wsgi_apache.lo src/server/mod_wsgi.lo -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -L -lpython3.12 -ldl -lm
libtool: error: require no space between '-L' and '-lpython3.12'

Tags: ftbfs

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The problem is when ./configure tries to use distutils from python 3.12:

$ python3.12 -c 'from sys import stdout; import distutils.sysconfig; stdout.write(distutils.sysconfig.get_python_lib(plat_specific=1, standard_lib=1) +"/config")'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils'

Changed in mod-wsgi (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mod-wsgi - 4.9.4-1ubuntu1

---------------
mod-wsgi (4.9.4-1ubuntu1) noble; urgency=medium

  * d/p/no-more-distutils.patch: Migrate from distutils to setuptools +
    sysconfig since python 3.12 dropped distutils (LP: #2045416)

 -- Andreas Hasenack <email address hidden> Fri, 01 Dec 2023 13:33:53 -0300

Changed in mod-wsgi (Ubuntu):
status: In Progress → Fix Released
Changed in mod-wsgi (Debian):
status: New → Fix Committed
Changed in mod-wsgi (Debian):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.