• Bug#1100223: hplip: FTBFS: ModuleNotFoundError: No module named 'distut

    From Agustin Martin@21:1/5 to Santiago Vila on Thu Mar 13 10:30:01 2025
    On Wed, Mar 12, 2025 at 04:31:10PM +0000, Santiago Vila wrote:
    Package: src:hplip
    Version: 3.22.10+dfsg0-8
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --buildsystem=autoconf --with python3 --with pyppd
    dh_auto_clean -O--buildsystem=autoconf
    dh_autoreconf_clean -O--buildsystem=autoconf
    debian/rules override_dh_clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_clean
    find . -regextype posix-extended -iregex '.*\.(ldl|ppd|pdf|ps|pcl)\.gz' | xargs gunzip -f ;\
    rm -f *.1
    rm -f prnt/hpijs/platform.h prnt/hpijs/auto-include.h
    find -type d -name build -print0 | xargs -0 -r rm -rf \;
    # We prefer to regenerate these using pyuic
    (cd ui5 && for i in *.ui ; do rm -f ${i%.ui}.py ; done)
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'

    [... snipped ...]

    Hi,

    Seems that adding python3-setuptools Build-Depends helps here too,

    --
    Agustin

    diff --git a/debian/control b/debian/control
    index af57477..c228d80 100644
    --- a/debian/control
    +++ b/debian/control
    @@ -33,6 +33,7 @@ Build-Depends:
    python3-dev,
    python3-gi,
    python3-pyqt5,
    + python3-setuptools,
    Standards-Version: 4.6.0
    Vcs-Browser: https://salsa.debian.org/printing-team/hplip.v2
    Vcs-Git: https://salsa.debian.org/printing-team/hplip.v2.git

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