Whamcloud - gitweb
debian: add a Built-Using field to the e2fsck-static package
authorTheodore Ts'o <tytso@mit.edu>
Tue, 3 Jun 2025 23:06:37 +0000 (23:06 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Jun 2025 23:06:37 +0000 (23:06 +0000)
We will probably want to eventually revert this commit and replace it
with a change using dh-builtusing, such as can be found in [1], but
dh-builtusing is only available in Debian 13 (trixie) and we don't
want to make life difficult for people who need to backport to Debian
Stable or Ubuntu LTS.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1106799#32

Addresses-Debian-Bug: #1106799
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debian/control
debian/rules

index 1eb917f..729726c 100644 (file)
@@ -46,6 +46,7 @@ Description: save the output of a command in a log file
 
 Package: e2fsck-static
 Build-Profiles: <!pkg.e2fsprogs.no-static>
+Built-Using: ${misc:Built-Using}
 Priority: optional
 Depends: ${misc:Depends}
 Recommends: sash | bash-static | zsh-static | busybox-static
index d449eca..21328b2 100755 (executable)
@@ -195,7 +195,7 @@ endif
 override_dh_gencontrol:
        dh_gencontrol -pcomerr-dev -- -v${COMERR_VERSION}-${DEB_VERSION} -VmainBinary=${DEB_VERSION}
        dh_gencontrol -pss-dev -- -v${SS_VERSION}-${DEB_VERSION} -VmainBinary=${DEB_VERSION}
-       dh_gencontrol --remaining-packages
+       dh_gencontrol --remaining-packages -- -Vmisc:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version})' -W libc-dev-bin)"
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))