On Thu, 2025-01-09 at 11:08 +0000, Simon McVittie wrote: > On Wed, 08 Jan 2025 at 15:32:27 -0900, Jeremy Bícha wrote: > > I am unwilling to add dh_missing --list-missing to a package since I > > prefer a hard error when files are missing. Sometimes it would be > > appropriate -X (for --exclude) for certain files that don't matter. > > Or if necessary it is possible to use dh-exec to filter .install files > by architecture (for example see src:dbus, which installs systemd-related > files if and only if built for Linux). >
dh_exec is already used in most of the *.install files: (a bug?) gvfs-backends.install: #!/usr/bin/dh-exec ... usr/share/dbus-1/services/org.gtk.vfs.GPhoto2VolumeMonitor.service [!hurd-any] usr/share/dbus-1/services/org.gtk.vfs.GoaVolumeMonitor.service [!hurd-any !i386] usr/share/dbus-1/services/org.gtk.vfs.MTPVolumeMonitor.service [!hurd-any] ... Still dh_missing errors out: dh_missing dh_missing: warning: usr/share/dbus- 1/services/org.gtk.vfs.GoaVolumeMonitor.service exists in debian/tmp but is not installed to anywhere dh_missing: error: missing files, aborting