Source: deets
Source-Version: 0.2-3
Severity: wishlist
Tags: patch
Hi!
Due to the package statically linking against libdpkg, I guess it
should use a Built-Using field. Here's a patch adding it. I've used
a sourcedep:libdpkg-dev substvar, because that's the natively
supported implementation in dpkg-dev I've been considering to merge,
so at some point the variable might get automatically populated w/o
need of external assistance. Although the variable name could end up
changing if confronted with a better name. :)
Thanks,
Guillem
diff -Nru deets-0.2/debian/control deets-0.2/debian/control
--- deets-0.2/debian/control 2013-01-31 22:49:07.000000000 +0100
+++ deets-0.2/debian/control 2014-06-11 16:07:58.000000000 +0200
@@ -9,6 +9,7 @@
Package: deets
Architecture: any
Depends: ${shlibs:Depends}, lua-md5, lua-cosmo (>= 10.04.06), lua-augeas, augeas-tools
+Built-Using: ${sourcedep:libdpkg-dev}
Description: decentralized model-based administration tool
Deets provides a way to manage Debian packages and files
on your systems using Lua-based configuration files. A
diff -Nru deets-0.2/debian/rules deets-0.2/debian/rules
--- deets-0.2/debian/rules 2011-09-24 19:37:01.000000000 +0200
+++ deets-0.2/debian/rules 2014-06-11 16:11:37.000000000 +0200
@@ -21,6 +21,10 @@
INSTALL_PROGRAM += -s
endif
+sourcedep_libdpkg_dev := \
+ $(shell dpkg-query \
+ --showformat '$${source:Package} (= $${source:Version})' \
+ --show libdpkg-dev)
obj:
mkdir $@
@@ -55,7 +59,7 @@
strip --remove-section=.comment --remove-section=.note debian/deets/usr/bin/luau
dpkg-shlibdeps -Tdebian/deets.substvars debian/deets/usr/bin/luau
$(INSTALL_DIR) debian/deets/DEBIAN
- dpkg-gencontrol -ldebian/changelog -Tdebian/deets.substvars -Pdebian/deets
+ dpkg-gencontrol -ldebian/changelog -Tdebian/deets.substvars -Vsourcedep:libdpkg-dev='$(sourcedep_libdpkg_dev)' -Pdebian/deets
cd debian/deets && find * -type f ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums
chown -R root:root debian/deets
chmod -R a+rX debian/deets