#972222 Unexpected dh_missing error when building for arch "all"

#972222#5
Date:
2020-10-14 18:30:32 UTC
From:
To:
When building a package and using option "--build=all", e.g.

$ gbp buildpackage --build=all

the build might fail with error message

...
dh_install -p libvirt-daemon-system etc/libvirt/libxl.conf
dh_install: warning: All requested packages have been excluded (e.g. via a Build-Profile or due to architecture restrictions).
...
dh_missing: warning: etc/libvirt/libxl.conf exists in debian/tmp but is not installed to anywhere
...
dh_missing: error: missing files, aborting

I think the issues arises from Dh_getopt.pm, sub getoptions. I think it
will immediately terminate the dh_* command when option "-p" is
encountered and all packages are excluded. I suggest, this is wrong in case of
dh_install because it prevents dh_install from logging the installed
files tnd in the following make subsequent call to dh_missing fail.

I found the problem when struggling with libvirt 6.7.0-2 source. With that
package the build still failes, even after replacing override_dh_install-arch
with override_dh_install in debian/rules

cheers,
Andreas Messer

#972222#10
Date:
2026-06-23 13:26:18 UTC
From:
To:
This bug is still live in debhelper 14.1.

It is affecting the arch: all build of vtk9 9.6.2+dfsg1-1exp2

VTK cannot build viskores on 32-bit arches, so the pkgconfig file
viskores.pc, new in vtl 9.6, is only installed (in libvtk9-dev) on
64-bit arches.  Hence the installation is handled by

  dh_install -plibvtk9-dev usr/lib/*/pkgconfig/viskores.pc

in an execute_after_dh_install in debian/rules, conditional to
DEB_HOST_ARCH_BITS, rather installing via debian/libvtk9-dev.install

But then the arch: all build fails because of the bug reported here,
since arch:all is handled by amd64 (where viskores is built).

A failing buildlog is found at
https://buildd.debian.org/status/fetch.php?pkg=vtk9&arch=all&ver=9.6.2%2Bdfsg1-1exp2&stamp=1782211175&raw=0

which shows the error message:

dh_missing: warning: usr/lib/x86_64-linux-gnu/pkgconfig/viskores.pc exists in debian/tmp but is not installed to anywhere
dh_missing: error: missing files, aborting