Package: dh-exec
Version: 0.29
Severity: normal

In a multi-binary package, if there is a dh-exec-install .install or .manpages 
file for
one of the packages, then these files are not carried across and logged
for dh_install so dh_missing fails if you use the other type of build.

For example, on the same source you have arch package foo and indep
package foo-data and foo-data uses dh-exec, when building a
arch-dependent (e.g. dpkg-buildpackage -B) will cause this issue.

dh_install gets the renamed/moved file but cannot find it so doesn't
log that file as not-installed (for the indep package).
dh_missing sees the file in the original spot, notes there is not
log for it and errors.

So for a indep package when building a binary package what happens is:
 * dh-exec-install-rename says "I moved A to B" but doesn't
 * dh_install cannot find B so ignores it
 * dh_missing finds A and complains

The fix is for dh-exec-install-rename to only change the file
name/location if it actually does the work and use the original
filename otherwise.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.15-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-exec depends on:
ii  debhelper     13.15.3
ii  libc6         2.37-15
ii  libdpkg-perl  1.22.4
ii  libpipeline1  1.5.7-1+b2
ii  perl          5.38.2-3

dh-exec recommends no packages.

dh-exec suggests no packages.

-- no debconf information

Reply via email to