Control: tags -1 + patch

Hello!

Please see attached patch to generate the Built-Using field.

(This needs to be generate as the Built-Using is supposed to declare a
strict relation to the exact version of dietlibc that was used to build
the package.)

Regards,
Andreas Henriksson
diff -u integrit-4.1/debian/changelog integrit-4.1/debian/changelog
--- integrit-4.1/debian/changelog
+++ integrit-4.1/debian/changelog
@@ -1,3 +1,10 @@
+integrit (4.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Generate Built-Using field for dietlibc (Closes: #847577)
+
+ -- Andreas Henriksson <andr...@fatal.se>  Sat, 07 Jan 2017 20:39:30 +0100
+
 integrit (4.1-1) unstable; urgency=low
 
   * new upstream release.
diff -u integrit-4.1/debian/control integrit-4.1/debian/control
--- integrit-4.1/debian/control
+++ integrit-4.1/debian/control
@@ -9,6 +9,7 @@
 Architecture: any
 Depends: ${shlibs:Depends}
 Recommends: cron, mailx
+Built-Using: ${Built-Using}
 Description: A file integrity verification program
  Integrit helps you determine whether an intruder has modified your
  system.  Without the use of integrit, a sysadmin wouldn't know if the
diff -u integrit-4.1/debian/rules integrit-4.1/debian/rules
--- integrit-4.1/debian/rules
+++ integrit-4.1/debian/rules
@@ -100,7 +100,8 @@
 binary-indep:
 
 binary-arch: deb-checkdir deb-checkuid install integrit.deb
-	dpkg-gencontrol -isp -pintegrit -P'$(DIR)'
+	dpkg-gencontrol -isp -pintegrit -P'$(DIR)' \
+		-VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W dietlibc-dev)"
 	dpkg -b '$(DIR)' ..
 
 binary: binary-indep binary-arch

Reply via email to