Package: debhelper
Version: 13.5.2
Severity: normal

dh_python3 has a *.pyinstall mechanism for installing files as part of
a python module.

dh_missing appears to be ignoring the *pyinstall files and reports the
python files as "missing", which from debhelper 13 causes the build to
fail.

You can see an example in the getfem++ build, e.g.
https://buildd.debian.org/status/fetch.php?pkg=getfem%2B%2B&arch=amd64&ver=5.3%2Bdfsg1-3%2Bb11&stamp=1637484931&raw=0

getfem++ has debian/python3-getfem++.pyinstall containing
  debian/tmp/usr/lib/python*/*-packages/getfem/*.py getfem
  interface/src/python/*.so getfem

so dh_python3 is handling the python files installed by the upstream
build system to debian/tmp.

But dh_missing reports the false positive:

dh_missing: warning: usr/lib/python3.9/site-packages/getfem/__init__.py exists 
in debian/tmp but is not installed to anywhere 
dh_missing: warning: usr/lib/python3.9/site-packages/getfem/getfem.py exists in 
debian/tmp but is not installed to anywhere 
        The following debhelper tools have reported what they installed (with 
files per package)
         * dh_install: libgetfem++-dev (5), libgetfem5++ (2), libgmm++-dev (2), 
python3-getfem++ (0)
         * dh_installdocs: libgetfem++-dev (2), libgetfem5++ (0), libgmm++-dev 
(0), python3-getfem++ (0)
        If the missing files are installed by another tool, please file a bug 
against it.
        When filing the report, if the tool is not part of debhelper itself, 
please reference the
        "Logging helpers and dh_missing" section from the "PROGRAMMING" guide 
for debhelper (10.6.3+).
          (in the debhelper package: /usr/share/doc/debhelper/PROGRAMMING.gz)
        Be sure to test with dpkg-buildpackage -A/-B as the results may vary 
when only a subset is built
        If the omission is intentional or no other helper can take care of this 
consider adding the
        paths to debian/not-installed.






-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debhelper depends on:
ii  autotools-dev            20180224.1+nmu1
ii  dh-autoreconf            20
ii  dh-strip-nondeterminism  1.12.1-1
ii  dpkg                     1.21.1
ii  dpkg-dev                 1.21.1
ii  dwz                      0.14-1
ii  file                     1:5.41-2
ii  libdebhelper-perl        13.5.2
ii  libdpkg-perl             1.21.1
ii  man-db                   2.9.4-2
ii  perl                     5.32.1-6
ii  po-debconf               1.0.21+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  2.202102

-- no debconf information

Reply via email to