[xml/sgml-pkgs] Bug#1099843: libxml2: FTBFS with Python 3.13 only

László Böszörményi (GCS) gcs at debian.org
Sat Mar 8 19:41:06 GMT 2025


Source: libxml2
Version: 2.12.7+dfsg+really2.9.14-0.2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs patch

Hi,

During the rebuild of ICU 76.1 transition, your package fails to
build. It seems the distutils module of Python3 was pulled in
previously. As of now with the Python3 3.13 only transition done it's
no longer the case. Relevant parts of the build log:
Found python in /usr/bin/python3.13
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    from distutils import sysconfig; print(sysconfig.get_python_version())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'distutils'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    from distutils import sysconfig; print(sysconfig.get_python_inc())
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'distutils'
Found Python version
../../configure: line 16869: python-config: command not found
[...]
dh_install: warning: Cannot find (any matches for)
"usr/lib/python3*/*-packages/*.py*" (tried in ., debian/tmp)

dh_install: warning: python3-libxml2 missing files:
usr/lib/python3*/*-packages/*.py*
dh_install: warning: Cannot find (any matches for)
"usr/lib/python3*/*-packages/*.so" (tried in ., debian/tmp)

dh_install: warning: python3-libxml2 missing files:
usr/lib/python3*/*-packages/*.so
dh_install: error: missing files, aborting

To fix this, you need to add python3-setuptools to your build
dependencies. Basically in d/control:
  python3-all-dev:any (>= 3.5) <!nopython>,
+ python3-setuptools <!nopython>,
  rename,

Please do apply this soon.

Regards,
Laszlo/GCS



More information about the debian-xml-sgml-pkgs mailing list