• Bug#1099843: libxml2: FTBFS with Python 3.13 only

    From =?UTF-8?B?TMOhc3psw7MgQsO2c3rDtnJtw@21:1/5 to All on Sat Mar 8 20:50:01 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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)