This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
bisect-runner.pl needs to set @paths correctly on 32 bit Linux
authorNicholas Clark <nick@ccl4.org>
Fri, 7 Oct 2011 21:07:50 +0000 (23:07 +0200)
committerNicholas Clark <nick@ccl4.org>
Fri, 7 Oct 2011 21:07:50 +0000 (23:07 +0200)
Without this, Configure may fail prior to commit 1cfa4ec74d4933da (which
added the 'ignore_versioned_solibs' logic), because bisect-runner.pl's code
to set libs relies on successfully finding at least one library to pass to
./Configure with -Dlibs=

miniperl and perl should now build back to perl-5.000 on 32 bit Linux.
test_prep may not work, as early versions of DB_File.xs will fail if a
new db.h is found.

Porting/bisect-runner.pl

index 287a77b..e81cae0 100755 (executable)
@@ -26,7 +26,9 @@ my %options =
      clean => 1, # mostly for debugging this
     );
 
-my @paths = qw(/usr/local/lib64 /lib64 /usr/lib64);
+my $linux64 = `uname -sm` eq "Linux x86_64\n" ? '64' : '';
+
+my @paths = map {$_ . $linux64} qw(/usr/local/lib /lib /usr/lib);
 
 my %defines =
     (
@@ -34,7 +36,7 @@ my %defines =
      optimize => '-g',
      cc => 'ccache gcc',
      ld => 'gcc',
-     (`uname -sm` eq "Linux x86_64\n" ? (libpth => \@paths) : ()),
+     ($linux64 ? (libpth => \@paths) : ()),
     );
 
 unless(GetOptions(\%options,