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.
Hello, Bug #1068632 in dh-exec reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/debian/dh-exec/-/commit/6f273ea8c362eea825a418c5a110a8dcd3959bfa ------------------------------------------------------------------------ -install-rename: Change filename only if moving Change name of filename only if actually moving file. Closes: #1068632 References: https://bugs.debian.org/1068632 ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1068632
We believe that the bug you reported is fixed in the latest version of
dh-exec, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1068632@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Craig Small <csmall@debian.org> (supplier of updated dh-exec package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 19 May 2024 20:30:01 +1000
Source: dh-exec
Architecture: source
Version: 0.30
Distribution: unstable
Urgency: medium
Maintainer: Craig Small <csmall@debian.org>
Changed-By: Craig Small <csmall@debian.org>
Closes: 1068632
Changes:
dh-exec (0.30) unstable; urgency=medium
.
* dh-exec-install-rename: Change filename only if moving/renaming
the files Closes: #1068632
Checksums-Sha1:
26c0f380768f3d45087ee9e1f118f850070f1d55 1621 dh-exec_0.30.dsc
5d1693a9d73e82876d607bb91ebf0c9e61f8ff1e 36300 dh-exec_0.30.tar.xz
7dd2a5993b92c69855976412c55671871e65609c 6448 dh-exec_0.30_amd64.buildinfo
Checksums-Sha256:
73e4927d278fa7aeb04ef716449037a5dd4c71aa6c0394c1516647db035e2a51 1621 dh-exec_0.30.dsc
5655e859acfad5cc158d0ed35d7e1444e038d7438ab3a42ea134cd6c9a66497a 36300 dh-exec_0.30.tar.xz
2e9b21e45f8473aea831184021ec93179983eec85015fec666ee399a146c2173 6448 dh-exec_0.30_amd64.buildinfo
Files:
9cbc1288471d24e6c91d712d9e82a38d 1621 devel optional dh-exec_0.30.dsc
99fef9144b6705a1add240bc1a6c505d 36300 devel optional dh-exec_0.30.tar.xz
32c6cf865161262f2646b57e3ddc73eb 6448 devel optional dh-exec_0.30_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEXT3w9TizJ8CqeneiAiFmwP88hOMFAmZJ1eEACgkQAiFmwP88
hOOf5Q/+Jz9CPI3c4jmt3OVFkXC3C5HRVXFCz9dPuQSi3emtoUMTZRJhI66vQFPe
mvjrJXlfgHtpfD0grsFCoBLOBxVjB0UTAW7D5TNb3pg3g3EgATS+4WNcPd0Y0Nsy
imkXyzt+sMUkmyKqzVdjUCsh/qbudWiZiXxmppRlhfY1UwQDKoYx8cgq6MISfBdx
wUp30s1ucqyclYgdMnstmu50CrGHgyYOTq1UkmqzdJ+COsKNLyNsJOKWvweHbP7q
qknLtcZJ9hKQj1MAowocpuRnDfjcLruc4x5OeBPoyQjZ7pzLdGXFwv7vUh/UJmm0
wpSIUaEuEM5D9ay452quTzsgI6mArzSjORnC6JV6z2SJN9c+IqI3tu2LI39cAyC8
0NtF5LgJ+BtNsT7I2ZG+qwnxw5vAQNeQPbDBpQRi7vYO0i4E4Zr0sOGf2Z6UjVsW
HANtY1RBv7KnsQg/CoHFsx/6JjUi/uj6+Ps3kP6eTIRLrFQ/ZwLzm3a9pBlpCXpg
Yhn+YDVwPRorOAus/c4oA4JaCJJmizaT2YtMsuybM8kV4BpKHP/HYF9C8A3eq7Dc
ZiQGqYt5uz/o3JwHlYGlxVVwvt/mUCWSB2HRKm1ww9XDdMHCwXlk+5Xs2vOptu2i
Vpuh94+mB+pMWcpQod0MW8KsXgegduMFs1EG+WyMKbCns3c398Q=
=HM1K
-----END PGP SIGNATURE-----
Hello Debian Bug Tracking System, I would like to keep this bug report open still. I did try Craig's potential fix here: https://salsa.debian.org/debian/dh-exec/-/commit/6f273ea8c362eea825a418c5a110a8dcd3959bfa I can confirm that it does not work. dh_missing does not report any warnings anymore, but the resulting package does not contain anything that I specified in my .install file.
I have reopened it. OK, that's a start I guess. To debug this further, I'm going to need some sort of test setup. You can see my test package at https://salsa.debian.org/csmall/test-dh-exec Obviously its a simple package but it does have a file that is created in the build phase and renamed in the install phase. Could you have a look at it and see what differences there could be? I'm not seeing any errors with that example. - Craig
Hey Craig, I'm afraid I'm not able to reproduce the issue with your minimal and your patch to dh-exec-install-rename. It seemed to work fine. My project's build environment is a lot more complicated and it would be difficult to reduce down to a minimal. Perhaps something to try is adding more debugging dh-exec output while my package is building somehow?