Package: src:gdb-avr
Version: 7.2-1
Severity: serious
Tags: patch
Usertags: built-using

gdb-avr uses the gdb source from gdb-source, but does not indicate so with a
Built-Using field (Policy 7.8). This means the archive might not contain the
full source for this package as the specific version of gdb used to build the
package could be replaced with a newer version.

I've attached a patch adding the Built-Using field to the gdb-avr binary
package.

Ansgar
diff -Nru gdb-avr-7.2/debian/changelog gdb-avr-7.2/debian/changelog
--- gdb-avr-7.2/debian/changelog	2011-07-10 20:04:08.000000000 +0200
+++ gdb-avr-7.2/debian/changelog	2012-12-20 13:25:13.000000000 +0100
@@ -1,3 +1,10 @@
+gdb-avr (7.2-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Add Built-Using field for gdb-source.
+
+ -- Ansgar Burchardt <ans...@debian.org>  Thu, 20 Dec 2012 12:24:54 +0000
+
 gdb-avr (7.2-1) unstable; urgency=low
 
   * New upstream release (closes: #580513)
diff -Nru gdb-avr-7.2/debian/control gdb-avr-7.2/debian/control
--- gdb-avr-7.2/debian/control	2011-07-10 19:59:49.000000000 +0200
+++ gdb-avr-7.2/debian/control	2012-12-20 13:32:23.000000000 +0100
@@ -3,7 +3,7 @@
 Priority: extra
 Maintainer: Hakan Ardo <ha...@debian.org>
 Standards-Version: 3.5.6.1
-Build-Depends:  tar (>= 1.13.18), bzip2, autoconf (>= 2.13), libtool, texinfo (>= 4.6), texlive (>= 2007-11), libncurses5-dev, libreadline-dev, bison, gettext, debhelper (>= 4.1.46), dejagnu, cdbs (>= 0.4.17), quilt (>= 0.30), flex, gdb-source (>= 7.2)
+Build-Depends:  tar (>= 1.13.18), bzip2, autoconf (>= 2.13), libtool, texinfo (>= 4.6), texlive (>= 2007-11), libncurses5-dev, libreadline-dev, bison, gettext, debhelper (>= 4.1.46), dejagnu, cdbs (>= 0.4.17), quilt (>= 0.30), flex, gdb-source (>= 7.2), dpkg (>= 1.16.2)
 
 Package: gdb-avr
 Section: devel
@@ -11,6 +11,7 @@
 Priority: extra
 Depends: ${shlibs:Depends}
 Suggests: gdb-doc
+Built-Using: ${Built-Using}
 Description: The GNU Debugger for avr
  This package has been compiled to target the  avr architecture.
  GDB is a source-level debugger, capable of breaking programs at
diff -Nru gdb-avr-7.2/debian/rules gdb-avr-7.2/debian/rules
--- gdb-avr-7.2/debian/rules	2011-07-10 20:03:38.000000000 +0200
+++ gdb-avr-7.2/debian/rules	2012-12-20 13:24:49.000000000 +0100
@@ -5,6 +5,7 @@
 
 TARGET :=avr
 PACKAGE :=gdb-avr
+BUILT_USING := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W gdb-source)
 
 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE  := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
@@ -84,7 +85,7 @@
 	dh_installdeb
 	dh_shlibdeps
 
-	dh_gencontrol
+	dh_gencontrol -- -VBuilt-Using="$(BUILT_USING)"
 	dh_md5sums
 	dh_builddeb
 

Reply via email to