This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix ExtUtils-CBuilder tests for Perl 5.6
authorZefram <zefram@fysh.org>
Wed, 19 Jul 2017 22:28:00 +0000 (23:28 +0100)
committerZefram <zefram@fysh.org>
Wed, 19 Jul 2017 22:28:00 +0000 (23:28 +0100)
18 files changed:
dist/ExtUtils-CBuilder/Changes
dist/ExtUtils-CBuilder/Makefile.PL
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Base.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Unix.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/VMS.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/aix.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/android.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/cygwin.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/darwin.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/dec_osf.pm
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/os2.pm
dist/ExtUtils-CBuilder/t/00-have-compiler.t
pod/perldelta.pod

index 630309a..0e68d31 100644 (file)
@@ -1,5 +1,11 @@
 Revision history for Perl extension ExtUtils::CBuilder.
 
+0.280227 - 2017-07-19
+
+  Fixed:
+
+  - Restore compatibility of test suite to Perl 5.6.
+
 0.280226 - 2017-07-14
 
   Fixed:
index c599fcd..431f421 100644 (file)
@@ -29,7 +29,7 @@ my %WriteMakefileArgs = (
   "TEST_REQUIRES" => {
     "Test::More" => "0.47"
   },
-  "VERSION" => "0.280226",
+  "VERSION" => "0.280227",
   "test" => {
     "TESTS" => "t/*.t"
   }
index 99ee1fb..897b833 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder;
-$ExtUtils::CBuilder::VERSION = '0.280226';
+$ExtUtils::CBuilder::VERSION = '0.280227';
 use File::Spec ();
 use File::Path ();
 use File::Basename ();
index 77cecc5..c9aed17 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Base;
-$ExtUtils::CBuilder::Base::VERSION = '0.280226';
+$ExtUtils::CBuilder::Base::VERSION = '0.280227';
 use strict;
 use warnings;
 use File::Spec;
index 1e75806..f7c589e 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::Unix;
-$ExtUtils::CBuilder::Platform::Unix::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::Unix::VERSION = '0.280227';
 use warnings;
 use strict;
 use ExtUtils::CBuilder::Base;
index 4c62d6d..fb282c8 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::VMS;
-$ExtUtils::CBuilder::Platform::VMS::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::VMS::VERSION = '0.280227';
 use warnings;
 use strict;
 use ExtUtils::CBuilder::Base;
index 2ff44b6..da9b21b 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::Windows;
-$ExtUtils::CBuilder::Platform::Windows::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::Windows::VERSION = '0.280227';
 use strict;
 use warnings;
 
index fb64717..4bf77ff 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::Windows::BCC;
-$ExtUtils::CBuilder::Platform::Windows::BCC::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::Windows::BCC::VERSION = '0.280227';
 use strict;
 use warnings;
 
index 4e7123c..8013351 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::Windows::GCC;
-$ExtUtils::CBuilder::Platform::Windows::GCC::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::Windows::GCC::VERSION = '0.280227';
 use warnings;
 use strict;
 
index 0cf2159..fc4cab1 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::Windows::MSVC;
-$ExtUtils::CBuilder::Platform::Windows::MSVC::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::Windows::MSVC::VERSION = '0.280227';
 use warnings;
 use strict;
 
index 150b196..4fff231 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::aix;
-$ExtUtils::CBuilder::Platform::aix::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::aix::VERSION = '0.280227';
 use warnings;
 use strict;
 use ExtUtils::CBuilder::Platform::Unix;
index e2d8677..3ee8e96 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::android;
-$ExtUtils::CBuilder::Platform::android::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::android::VERSION = '0.280227';
 use warnings;
 use strict;
 use File::Spec;
index bd9d0d8..72ea90a 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::cygwin;
-$ExtUtils::CBuilder::Platform::cygwin::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::cygwin::VERSION = '0.280227';
 use warnings;
 use strict;
 use File::Spec;
index e360f04..915ca63 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::darwin;
-$ExtUtils::CBuilder::Platform::darwin::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::darwin::VERSION = '0.280227';
 use warnings;
 use strict;
 use ExtUtils::CBuilder::Platform::Unix;
index d4e7f0f..f5d4f26 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::dec_osf;
-$ExtUtils::CBuilder::Platform::dec_osf::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::dec_osf::VERSION = '0.280227';
 use warnings;
 use strict;
 use ExtUtils::CBuilder::Platform::Unix;
index 61e3342..19f8bdc 100644 (file)
@@ -1,5 +1,5 @@
 package ExtUtils::CBuilder::Platform::os2;
-$ExtUtils::CBuilder::Platform::os2::VERSION = '0.280226';
+$ExtUtils::CBuilder::Platform::os2::VERSION = '0.280227';
 use warnings;
 use strict;
 use ExtUtils::CBuilder::Platform::Unix;
index 1073277..5148412 100644 (file)
@@ -35,11 +35,11 @@ ok( $b, "got CBuilder object" ) or diag $@;
     #    'Can't exec "djaadjfkadjkfajdf"'
     # or similar on STDERR; so make sure fd2 is temporarily closed before
     # the fork
-    open(my $orig_err, ">&", \*STDERR) or die "Can't dup STDERR: $!";
+    open(OLDERR, ">&STDERR") or die "Can't dup STDERR: $!";
     close(STDERR);
     my $res = $b1->have_compiler;
-    open(STDERR, ">&", $orig_err) or die "Can't dup \$orig_err $!";
-    close($orig_err);
+    open(STDERR, ">&OLDERR") or die "Can't restore STDERR: $!";
+    close(OLDERR);
 
     is($res, 0, "have_compiler: fake missing cc" );
 }
@@ -47,11 +47,11 @@ ok( $b, "got CBuilder object" ) or diag $@;
     my $b2 = ExtUtils::CBuilder->new(quiet => 1);
     configure_fake_missing_compilers($b2);
 
-    open(my $orig_err, ">&", \*STDERR) or die "Can't dup STDERR: $!";
+    open(OLDERR, ">&STDERR") or die "Can't dup STDERR: $!";
     close(STDERR);
     my $res = $b2->have_cplusplus;
-    open(STDERR, ">&", $orig_err) or die "Can't dup \$orig_err $!";
-    close($orig_err);
+    open(STDERR, ">&OLDERR") or die "Can't restore STDERR: $!";
+    close(OLDERR);
 
     is($res, 0, "have_cplusplus: fake missing c++" );
 }
index 57b65c1..6f829b5 100644 (file)
@@ -128,7 +128,7 @@ L<XXX> has been upgraded from version A.xx to B.yy.
 
 =item *
 
-L<ExtUtils::CBuilder> has been upgraded from version 0.280225 to 0.280226.
+L<ExtUtils::CBuilder> has been upgraded from version 0.280225 to 0.280227.
 
 =back