Fixes Debian bug #719656, reported by Nicolas Boulenguez. Thanks.
t/logs/debian-cmake-2
t/logs/debian-cmake-ok
t/logs/debian-hardening-wrapper
+t/logs/debian-hardening-wrapper-old-build-depends
t/logs/debian-hardening-wrapper-pbuilder
t/logs/dpkg-buildpackage-architecture-old
t/logs/empty
#710135), reported by Bastien Roucariès.
- Handle another case of Qt's `moc` (Debian bug #710780), reported by Felix
Geyer.
+- Fix detection of build dependencies for buildd logs (Debian bug #719656),
+ reported by Nicolas Boulenguez.
- Sync architecture specific hardening support with dpkg 1.17.1.
}
}
- # Debian's build daemons use Build-Depends: for the build
- # dependencies, but pbuilder just uses Depends:; support both.
- if (index($line, 'Build-Depends: ') == 0
+ # Debian's build daemons use "Filtered Build-Depends:" (or just
+ # "Build-Depends:" in older versions) for the build dependencies, but
+ # pbuilder uses "Depends:"; support both.
+ if (index($line, 'Filtered Build-Depends: ') == 0
+ or index($line, 'Build-Depends: ') == 0
or index($line, 'Depends: ') == 0) {
# If hardening wrapper is used (wraps calls to gcc and adds
# hardening flags automatically) we can't perform any checks,
-Build-Depends: ..., gnat, gnat-4.6, ...
+Filtered Build-Depends: ..., gnat, gnat-4.6, ...
dpkg-buildpackage: source package ada package
-Build-Depends: .., gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), ...
+Filtered Build-Depends: .., gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), ...
Toolchain package versions: ...
Package versions: ...
-Build-Depends: .., hardening-wrapper, ...
+Filtered Build-Depends: .., hardening-wrapper, ...
dpkg-buildpackage: source package test
--- /dev/null
+# Old buildd versions used Build-Depends instead of Filtered Build-Depends.
+Build-Depends: .., hardening-wrapper, ...
+
+dpkg-buildpackage: source package test
+
+gcc -g -O2 -c test-a.c
+gcc -g -O2 -c test-b.c
+gcc -g -O2 -c test-c.c
+gcc -o test test-a.o test-b.o test-c.o -ltest
use strict;
use warnings;
-use Test::More tests => 206;
+use Test::More tests => 208;
sub is_blhc {
';
is_blhc 'debian-hardening-wrapper', '', 16,
$debian_hardening_wrapper;
+is_blhc 'debian-hardening-wrapper-old-build-depends', '', 16,
+ $debian_hardening_wrapper;
is_blhc 'debian-hardening-wrapper-pbuilder', '', 16,
$debian_hardening_wrapper;