t/logs/bad-ldflags
t/logs/bad-library
t/logs/bad-multiline
+t/logs/buildd-architecture-old
t/logs/buildd-dpkg-dev
t/logs/buildd-dpkg-dev-missing
t/logs/buildd-dpkg-dev-old
if (not $arch
and index($line, 'dpkg-buildpackage: host architecture ') == 0) {
$arch = substr $line, 37, -1; # -1 to ignore '\n' at the end
+
+ # Old buildd logs use e.g. "host architecture is alpha", remove
+ # the "is", otherwise debarch_to_debtriplet() will not detect the
+ # architecture.
+ if (index($arch, 'is ') == 0) {
+ $arch = substr $arch, 3;
+ }
}
# Ignore compiler warnings for now.
--- /dev/null
+dpkg-buildpackage: source package test
+dpkg-buildpackage: host architecture is ia64
+
+# Old buildd logs use "host architecture is ia64" (note the "is"). Detect the
+# architecture correctly for those logs.
+
+gcc -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -Wformat -Wformat-security -Werror=format-security -Wall -c test.c
+gcc -fPIE -pie -o test test.o
use strict;
use warnings;
-use Test::More tests => 202;
+use Test::More tests => 204;
sub is_blhc {
';
+# architecture in older buildd logs
+
+is_blhc 'buildd-architecture-old', '', 0,
+ '';
+
+
# ignore architecture
is_blhc ['arch-avr32', 'arch-i386', 'empty', 'arch-mipsel'],