X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=bin%2Fblhc;h=43000271861b6512d66543e6104361a9d9f15736;hb=1b2ee66712a01d7f89d25344fe6134854f98b1e8;hp=0eee77e79cacdd326d836d931ea306605646e945;hpb=9e486fb31e093d0a8a04fab68150041738f8ba8d;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index 0eee77e..4300027 100755 --- a/bin/blhc +++ b/bin/blhc @@ -954,6 +954,10 @@ foreach my $file (@ARGV) { # Detect architecture automatically unless overridden. if (not $arch + and index($line, 'dpkg-buildpackage: info: host architecture ') == 0) { + $arch = substr $line, 43, -1; # -1 to ignore '\n' at the end + # Older versions of dpkg-buildpackage + } elsif (not $arch and index($line, 'dpkg-buildpackage: host architecture ') == 0) { $arch = substr $line, 37, -1; # -1 to ignore '\n' at the end @@ -1117,7 +1121,7 @@ foreach my $file (@ARGV) { # Option or auto detected. if ($arch) { - # The following was partially copied from dpkg-dev 1.19.5 + # The following was partially copied from dpkg-dev 1.19.7 # (/usr/share/perl5/Dpkg/Vendor/Debian.pm, _add_build_flags()), # copyright Raphaël Hertzog , Guillem Jover # , Kees Cook , Canonical, Ltd.