Blame SOURCES/ExtUtils-CBuilder-0.280224-Upgrade-to-0.280225.patch

56905a
diff --git a/Changes b/Changes
56905a
index 27f3bc3..aaebade 100644
56905a
--- a/Changes
56905a
+++ b/Changes
56905a
@@ -1,6 +1,12 @@
56905a
 Revision history for Perl extension ExtUtils::CBuilder.
56905a
 
56905a
-0.282224 - 2015-10-09
56905a
+0.280225 - 2016-01-04
56905a
+
56905a
+  Fixed:
56905a
+
56905a
+  - New location of libperl on Win32 when building core (RT #126632)
56905a
+
56905a
+0.280224 - 2015-10-09
56905a
 
56905a
   Enhncements:
56905a
 
56905a
diff --git a/Makefile.PL b/Makefile.PL
56905a
index 820b294..44cb33a 100644
56905a
--- a/Makefile.PL
56905a
+++ b/Makefile.PL
56905a
@@ -29,7 +29,7 @@ my %WriteMakefileArgs = (
56905a
   "TEST_REQUIRES" => {
56905a
     "Test::More" => "0.47"
56905a
   },
56905a
-  "VERSION" => "0.280224",
56905a
+  "VERSION" => "0.280225",
56905a
   "test" => {
56905a
     "TESTS" => "t/*.t"
56905a
   }
56905a
diff --git a/lib/ExtUtils/CBuilder.pm b/lib/ExtUtils/CBuilder.pm
56905a
index abe976e..6ce0c68 100644
56905a
--- a/lib/ExtUtils/CBuilder.pm
56905a
+++ b/lib/ExtUtils/CBuilder.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder;
56905a
-$ExtUtils::CBuilder::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::VERSION = '0.280225';
56905a
 use File::Spec ();
56905a
 use File::Path ();
56905a
 use File::Basename ();
56905a
diff --git a/lib/ExtUtils/CBuilder/Base.pm b/lib/ExtUtils/CBuilder/Base.pm
56905a
index eb4c175..60b2f43 100644
56905a
--- a/lib/ExtUtils/CBuilder/Base.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Base.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Base;
56905a
-$ExtUtils::CBuilder::Base::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Base::VERSION = '0.280225';
56905a
 use strict;
56905a
 use warnings;
56905a
 use File::Spec;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/Unix.pm b/lib/ExtUtils/CBuilder/Platform/Unix.pm
56905a
index d6c1768..399e254 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/Unix.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/Unix.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::Unix;
56905a
-$ExtUtils::CBuilder::Platform::Unix::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::Unix::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use ExtUtils::CBuilder::Base;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/VMS.pm b/lib/ExtUtils/CBuilder/Platform/VMS.pm
56905a
index 194d888..e9d9f6f 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/VMS.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/VMS.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::VMS;
56905a
-$ExtUtils::CBuilder::Platform::VMS::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::VMS::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use ExtUtils::CBuilder::Base;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/Windows.pm b/lib/ExtUtils/CBuilder/Platform/Windows.pm
56905a
index b95592d..80b8f29 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/Windows.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/Windows.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::Windows;
56905a
-$ExtUtils::CBuilder::Platform::Windows::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::Windows::VERSION = '0.280225';
56905a
 use strict;
56905a
 use warnings;
56905a
 
56905a
@@ -151,7 +151,7 @@ sub link {
56905a
   # if running in perl source tree, look for libs there, not installed
56905a
   my $lddlflags = $cf->{lddlflags};
56905a
   my $perl_src = $self->perl_src();
56905a
-  $lddlflags =~ s/\Q$cf->{archlibexp}\E[\\\/]CORE/$perl_src/ if $perl_src;
56905a
+  $lddlflags =~ s/\Q$cf->{archlibexp}\E[\\\/]CORE/$perl_src\/lib\/CORE/ if $perl_src;
56905a
 
56905a
   my %spec = (
56905a
     srcdir        => $to,
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm b/lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
56905a
index cd93b72..513c4ac 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::Windows::BCC;
56905a
-$ExtUtils::CBuilder::Platform::Windows::BCC::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::Windows::BCC::VERSION = '0.280225';
56905a
 use strict;
56905a
 use warnings;
56905a
 
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm b/lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
56905a
index 5f219f2..19851df 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::Windows::GCC;
56905a
-$ExtUtils::CBuilder::Platform::Windows::GCC::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::Windows::GCC::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm b/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
56905a
index f14988e..c8d675f 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::Windows::MSVC;
56905a
-$ExtUtils::CBuilder::Platform::Windows::MSVC::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::Windows::MSVC::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/aix.pm b/lib/ExtUtils/CBuilder/Platform/aix.pm
56905a
index 949ef53..488d3e6 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/aix.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/aix.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::aix;
56905a
-$ExtUtils::CBuilder::Platform::aix::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::aix::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use ExtUtils::CBuilder::Platform::Unix;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/android.pm b/lib/ExtUtils/CBuilder/Platform/android.pm
56905a
index 5940922..b9e6af3 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/android.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/android.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::android;
56905a
-$ExtUtils::CBuilder::Platform::android::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::android::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use File::Spec;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/cygwin.pm b/lib/ExtUtils/CBuilder/Platform/cygwin.pm
56905a
index c020e44..339840f 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/cygwin.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/cygwin.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::cygwin;
56905a
-$ExtUtils::CBuilder::Platform::cygwin::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::cygwin::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use File::Spec;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/darwin.pm b/lib/ExtUtils/CBuilder/Platform/darwin.pm
56905a
index 324c268..04a87da 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/darwin.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/darwin.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::darwin;
56905a
-$ExtUtils::CBuilder::Platform::darwin::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::darwin::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use ExtUtils::CBuilder::Platform::Unix;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/dec_osf.pm b/lib/ExtUtils/CBuilder/Platform/dec_osf.pm
56905a
index 0eb098f..d503e86 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/dec_osf.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/dec_osf.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::dec_osf;
56905a
-$ExtUtils::CBuilder::Platform::dec_osf::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::dec_osf::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use ExtUtils::CBuilder::Platform::Unix;
56905a
diff --git a/lib/ExtUtils/CBuilder/Platform/os2.pm b/lib/ExtUtils/CBuilder/Platform/os2.pm
56905a
index 19047b9..8d0e3eb 100644
56905a
--- a/lib/ExtUtils/CBuilder/Platform/os2.pm
56905a
+++ b/lib/ExtUtils/CBuilder/Platform/os2.pm
56905a
@@ -1,5 +1,5 @@
56905a
 package ExtUtils::CBuilder::Platform::os2;
56905a
-$ExtUtils::CBuilder::Platform::os2::VERSION = '0.280224';
56905a
+$ExtUtils::CBuilder::Platform::os2::VERSION = '0.280225';
56905a
 use warnings;
56905a
 use strict;
56905a
 use ExtUtils::CBuilder::Platform::Unix;
56905a
diff --git a/t/00-have-compiler.t b/t/00-have-compiler.t
56905a
index 1661812..1073277 100644
56905a
--- a/t/00-have-compiler.t
56905a
+++ b/t/00-have-compiler.t
56905a
@@ -26,14 +26,34 @@ ok( $b, "got CBuilder object" ) or diag $@;
56905a
 
56905a
 # test missing compiler
56905a
 {
56905a
-my $b1 = ExtUtils::CBuilder->new(quiet => 1);
56905a
-configure_fake_missing_compilers($b1);
56905a
-is( $b1->have_compiler, 0, "have_compiler: fake missing cc" );
56905a
+
56905a
+    my $b1 = ExtUtils::CBuilder->new(quiet => 1);
56905a
+
56905a
+    configure_fake_missing_compilers($b1);
56905a
+
56905a
+    # This will fork a child that will print
56905a
+    #    'Can't exec "djaadjfkadjkfajdf"'
56905a
+    # or similar on STDERR; so make sure fd2 is temporarily closed before
56905a
+    # the fork
56905a
+    open(my $orig_err, ">&", \*STDERR) or die "Can't dup STDERR: $!";
56905a
+    close(STDERR);
56905a
+    my $res = $b1->have_compiler;
56905a
+    open(STDERR, ">&", $orig_err) or die "Can't dup \$orig_err $!";
56905a
+    close($orig_err);
56905a
+
56905a
+    is($res, 0, "have_compiler: fake missing cc" );
56905a
 }
56905a
 {
56905a
-my $b2 = ExtUtils::CBuilder->new(quiet => 1);
56905a
-configure_fake_missing_compilers($b2);
56905a
-is( $b2->have_cplusplus, 0, "have_cplusplus: fake missing c++" );
56905a
+    my $b2 = ExtUtils::CBuilder->new(quiet => 1);
56905a
+    configure_fake_missing_compilers($b2);
56905a
+
56905a
+    open(my $orig_err, ">&", \*STDERR) or die "Can't dup STDERR: $!";
56905a
+    close(STDERR);
56905a
+    my $res = $b2->have_cplusplus;
56905a
+    open(STDERR, ">&", $orig_err) or die "Can't dup \$orig_err $!";
56905a
+    close($orig_err);
56905a
+
56905a
+    is($res, 0, "have_cplusplus: fake missing c++" );
56905a
 }
56905a
 
56905a
 # test found compiler
56905a
diff --git a/t/02-link.t b/t/02-link.t
56905a
index 31ee918..0c64619 100644
56905a
--- a/t/02-link.t
56905a
+++ b/t/02-link.t
56905a
@@ -19,8 +19,8 @@ my ($source_file, $object_file, $exe_file);
56905a
 my $b = ExtUtils::CBuilder->new(quiet => $quiet);
56905a
 
56905a
 # test plan
56905a
-if ($^O eq 'MSWin32') {
56905a
-  plan skip_all => "link_executable() is not implemented yet on Win32";
56905a
+if ($^O =~ / ^ ( MSWin32 | os390 ) $ /xi) {
56905a
+  plan skip_all => "link_executable() is not implemented yet on $^O";
56905a
 }
56905a
 elsif ( ! $b->have_compiler ) {
56905a
   plan skip_all => "no compiler available for testing";