]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Ignore buildd's Depends: output.
authorSimon Ruderich <simon@ruderich.org>
Sun, 18 Mar 2012 15:07:00 +0000 (16:07 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 18 Mar 2012 15:07:00 +0000 (16:07 +0100)
bin/blhc
t/logs/debian

index a29313dfffb97dc2bee2b74f9c9f8e729f045ac6..bd9ebbdb644eb52ca5b9f782f9ff0616077dc02e 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -345,6 +345,10 @@ while (my $line = <>) {
                     or $line =~ /^\s*(?:- )?(?:CC|CXX)\s*=\s*$cc_regex\s*$/
                     or $line =~ /^\s*-- Check for working (?:C|CXX) compiler: /
                     or $line =~ /^\s*(?:echo )?Using [A-Z_]+\s*=\s*/;
+            # Debian buildd output.
+            next if $line =~ /^\s*Depends: .*?$cc_regex.*?$/
+                    and $line !~ /\s-./; # option, prevent false negatives
+
 
             push @input, $line;
         }
index 9665e8fa609c033390bd4ca8feafc6b231a5da99..5161689c0fc9be2a9d177a5e8d7f54b8dab2b1e9 100644 (file)
@@ -5,3 +5,5 @@ dpkg-buildpackage: source package test
 dh_auto_configure -- CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security" CPPFLAGS="-D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security" LDFLAGS="-Wl,-z,relro -Wl,-z,defs -Wl,--as-needed" ...
 
 gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c test.c
+
+ Depends: libc6 (>= 2.7), gcc