Package: src:gcc-avr Version: 4.7.2-1 Severity: serious Tags: patch Usertags: built-using
gcc-avr uses the gdb source from gcc-4.7-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 gcc used to build the package could be replaced with a newer version. I've attached a patch adding the Built-Using field to the gcc-avr binary package. Ansgar
diff -Nru gcc-avr-4.7.2/debian/changelog gcc-avr-4.7.2/debian/changelog --- gcc-avr-4.7.2/debian/changelog 2012-11-28 07:43:03.000000000 +0100 +++ gcc-avr-4.7.2/debian/changelog 2012-12-20 16:03:41.000000000 +0100 @@ -1,3 +1,10 @@ +gcc-avr (1:4.7.2-1.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Add Built-Using for gcc-4.7-source. + + -- Ansgar Burchardt <ans...@debian.org> Thu, 20 Dec 2012 15:03:29 +0000 + gcc-avr (1:4.7.2-1) unstable; urgency=low * New upstream release (closes: #693572) diff -Nru gcc-avr-4.7.2/debian/control gcc-avr-4.7.2/debian/control --- gcc-avr-4.7.2/debian/control 2012-11-27 18:26:12.000000000 +0100 +++ gcc-avr-4.7.2/debian/control 2012-12-20 16:18:37.000000000 +0100 @@ -3,7 +3,7 @@ Priority: extra Maintainer: Hakan Ardo <ha...@debian.org> Standards-Version: 3.5.3 -Build-Depends: m4, autoconf (>= 2.13), libtool, gawk, bzip2, binutils-avr (>= 2.20.1-2), bison, flex, gettext, texinfo, zlib1g-dev, debhelper (>= 4.2.10), tar (>= 1.13.18), automake1.9, libmpfr-dev, lsb-release, patchutils, gcc-4.7-source (>= 4.7.2-4), libmpc-dev +Build-Depends: m4, autoconf (>= 2.13), libtool, gawk, bzip2, binutils-avr (>= 2.20.1-2), bison, flex, gettext, texinfo, zlib1g-dev, debhelper (>= 4.2.10), tar (>= 1.13.18), automake1.9, libmpfr-dev, lsb-release, patchutils, gcc-4.7-source (>= 4.7.2-4), libmpc-dev, dpkg (>= 1.16.2) Build-Conflicts: libgcc0, libgcc300 Package: gcc-avr @@ -14,6 +14,7 @@ Depends: ${shlibs:Depends}, binutils-avr (>= 2.18-4) Provides: c-compiler-avr Suggests: task-c-devel, gcc-doc (>= 4:4.0.2-1), gcc-4.2, avr-libc(>=1:1.6.2-2) +Built-Using: ${Built-Using} Description: The GNU C compiler (cross compiler for avr) This is the GNU C compiler, a fairly portable optimizing compiler which supports multiple languages. This package includes support for C. diff -Nru gcc-avr-4.7.2/debian/rules gcc-avr-4.7.2/debian/rules --- gcc-avr-4.7.2/debian/rules 2012-05-23 09:33:21.000000000 +0200 +++ gcc-avr-4.7.2/debian/rules 2012-12-20 16:02:49.000000000 +0100 @@ -42,6 +42,7 @@ TAR_DIR=gcc-* SOURCE_DIR := /usr/src/gcc-4.7/ +BUILT_USING := $(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W gcc-4.7-source) patchdir = $(SOURCE_DIR)/patches include $(SOURCE_DIR)/debian/rules.defs @@ -172,7 +173,7 @@ dh_installdeb # dh_perl dh_shlibdeps - dh_gencontrol + dh_gencontrol -- -VBuilt-Using="$(BUILT_USING)" dh_md5sums dh_builddeb