Upgrade to ExtUtils::CBuilder 0.21
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 31 Oct 2007 09:40:38 +0000 (09:40 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 31 Oct 2007 09:40:38 +0000 (09:40 +0000)
p4raw-id: //depot/perl@32205

lib/ExtUtils/CBuilder.pm
lib/ExtUtils/CBuilder/Base.pm
lib/ExtUtils/CBuilder/Changes
lib/ExtUtils/CBuilder/Platform/Unix.pm
lib/ExtUtils/CBuilder/Platform/VMS.pm
lib/ExtUtils/CBuilder/Platform/Windows.pm
lib/ExtUtils/CBuilder/Platform/aix.pm
lib/ExtUtils/CBuilder/Platform/cygwin.pm
lib/ExtUtils/CBuilder/Platform/darwin.pm
lib/ExtUtils/CBuilder/Platform/dec_osf.pm
lib/ExtUtils/CBuilder/Platform/os2.pm

index 3ca5034424deb5907eb6d3c429e14d5b2c6cb41e..fae01b116dd34b4267b2b72a106663c46c3722a8 100644 (file)
@@ -5,7 +5,7 @@ use File::Path ();
 use File::Basename ();
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.19';
+$VERSION = '0.21';
 $VERSION = eval $VERSION;
 
 # Okay, this is the brute-force method of finding out what kind of
index bd6050683aa92e9b9dd9671466f74e1f63c2e3c8..0c08ab71b73d93f66feaeb0f8e8ad7ba9e5245d4 100644 (file)
@@ -3,11 +3,12 @@ package ExtUtils::CBuilder::Base;
 use strict;
 use File::Spec;
 use File::Basename;
+use Cwd ();
 use Config;
 use Text::ParseWords;
 
 use vars qw($VERSION);
-$VERSION = '0.12';
+$VERSION = '0.21';
 
 sub new {
   my $class = shift;
@@ -252,7 +253,7 @@ sub perl_src {
        &&
        -f File::Spec->catfile($dir,"lib","Exporter.pm")
        ) {
-      return $dir;
+      return Cwd::realpath( $dir );
     }
 
     $dir = File::Spec->catdir($dir, $Updir);
@@ -271,6 +272,7 @@ sub perl_inc {
 
 sub DESTROY {
   my $self = shift;
+  local($., $@, $!, $^E, $?);
   $self->cleanup();
 }
 
index c38a5dd7ddb6526ded36c72d097459410cb9e765..fbf6f4a1200395a74c8f5cf94dee21a74e059bc3 100644 (file)
@@ -1,5 +1,17 @@
 Revision history for Perl extension ExtUtils::CBuilder.
 
+ - Clean up perl_src path using Cwd::realpath().  Only affects usage
+   as part of the perl core.
+
+ - Protect $., $@, $!, $^E, and $? from any clobbering that might
+   occur in our DESTROY method. [Zefram]
+
+ - From bleadperl, a patch to clean up debug symbol files (.pdb for
+   VC++, .tds for BCC) when running have_compiler(). [Steve Hay &
+   Steve Peters]
+
+0.19 - Sun May 13 14:29:18 2007
+
  - When building as part of the perl core (so this is irrelevant for
    people downloading from CPAN) we now try a little harder to find
    the perl sources. [Jos Boumans]
index 1d874d47401337b5fdc566c77ee191add1e6052b..3fa73788c0c59a61048a49ece464974ddefbf933 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use ExtUtils::CBuilder::Base;
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.12';
+$VERSION = '0.21';
 @ISA = qw(ExtUtils::CBuilder::Base);
 
 sub link_executable {
index 9921f6104b9759d64945485af62151981a4e1c1d..467adf39f47d5b77f4776f7503ace8a878d85e22 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use ExtUtils::CBuilder::Base;
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.12';
+$VERSION = '0.21';
 @ISA = qw(ExtUtils::CBuilder::Base);
 
 sub need_prelink { 0 }
index 027d06284b021aaaa5c6b1d0de72c84c77af91c1..7b74ae0d99aa7fb8ea22b0b36795182c322161dd 100644 (file)
@@ -9,7 +9,7 @@ use File::Spec;
 use ExtUtils::CBuilder::Base;
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.13_01';
+$VERSION = '0.21';
 @ISA = qw(ExtUtils::CBuilder::Base);
 
 sub new {
index f7594049320c6741501cffe60c4c8e75b90ad94a..6ad2a6842f025ccca8797b3bb1e912457dba1f44 100644 (file)
@@ -5,7 +5,7 @@ use ExtUtils::CBuilder::Platform::Unix;
 use File::Spec;
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.12';
+$VERSION = '0.21';
 @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
 
 sub need_prelink { 1 }
index 88c979d663c1a5e5d547ec5e0a4869467f36dcdf..623fe0a30c2c012cab6d497193c34eade82240ec 100644 (file)
@@ -5,7 +5,7 @@ use File::Spec;
 use ExtUtils::CBuilder::Platform::Unix;
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.12';
+$VERSION = '0.21';
 @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
 
 sub link_executable {
index 642660131018065d3df3bf89c0c9298060d4167a..3b0cfb4c596e0cc9fb8419e874fad3a549a96d9d 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use ExtUtils::CBuilder::Platform::Unix;
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.12';
+$VERSION = '0.21';
 @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
 
 sub compile {
index 363a5d135f95cb82d04bcf670ea936303b3c64e1..cb7a9e3da5de436eeeaec8c11d14e1d2c9991abf 100644 (file)
@@ -6,7 +6,7 @@ use File::Spec;
 
 use vars qw($VERSION @ISA);
 @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
-$VERSION = '0.01';
+$VERSION = '0.21';
 
 sub link_executable {
   my $self = shift;
index 068381911af2af39a307db30941f6f3d562f4d1c..4657c593ab264351bba4764f0cf1f8c8a690dfba 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use ExtUtils::CBuilder::Platform::Unix;
 
 use vars qw($VERSION @ISA);
-$VERSION = '0.13';
+$VERSION = '0.21';
 @ISA = qw(ExtUtils::CBuilder::Platform::Unix);
 
 sub need_prelink { 1 }