diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-10-31 09:40:38 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-10-31 09:40:38 +0000 |
commit | 8a6e5c043e3987ad386f9f3b61130c021c5c1b95 (patch) | |
tree | 1447cbc98ee535ab88e6a3c78b4deeecc4c8ebfd /lib/ExtUtils | |
parent | 6601a838aaf699f9763a8349d637ccb7f8d81e67 (diff) | |
download | perl-8a6e5c043e3987ad386f9f3b61130c021c5c1b95.tar.gz |
Upgrade to ExtUtils::CBuilder 0.21
p4raw-id: //depot/perl@32205
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r-- | lib/ExtUtils/CBuilder.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Base.pm | 6 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Changes | 12 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/Unix.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/VMS.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/Windows.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/aix.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/cygwin.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/darwin.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/dec_osf.pm | 2 | ||||
-rw-r--r-- | lib/ExtUtils/CBuilder/Platform/os2.pm | 2 |
11 files changed, 25 insertions, 11 deletions
diff --git a/lib/ExtUtils/CBuilder.pm b/lib/ExtUtils/CBuilder.pm index 3ca5034424..fae01b116d 100644 --- a/lib/ExtUtils/CBuilder.pm +++ b/lib/ExtUtils/CBuilder.pm @@ -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 diff --git a/lib/ExtUtils/CBuilder/Base.pm b/lib/ExtUtils/CBuilder/Base.pm index bd6050683a..0c08ab71b7 100644 --- a/lib/ExtUtils/CBuilder/Base.pm +++ b/lib/ExtUtils/CBuilder/Base.pm @@ -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(); } diff --git a/lib/ExtUtils/CBuilder/Changes b/lib/ExtUtils/CBuilder/Changes index c38a5dd7dd..fbf6f4a120 100644 --- a/lib/ExtUtils/CBuilder/Changes +++ b/lib/ExtUtils/CBuilder/Changes @@ -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] diff --git a/lib/ExtUtils/CBuilder/Platform/Unix.pm b/lib/ExtUtils/CBuilder/Platform/Unix.pm index 1d874d4740..3fa73788c0 100644 --- a/lib/ExtUtils/CBuilder/Platform/Unix.pm +++ b/lib/ExtUtils/CBuilder/Platform/Unix.pm @@ -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 { diff --git a/lib/ExtUtils/CBuilder/Platform/VMS.pm b/lib/ExtUtils/CBuilder/Platform/VMS.pm index 9921f6104b..467adf39f4 100644 --- a/lib/ExtUtils/CBuilder/Platform/VMS.pm +++ b/lib/ExtUtils/CBuilder/Platform/VMS.pm @@ -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 } diff --git a/lib/ExtUtils/CBuilder/Platform/Windows.pm b/lib/ExtUtils/CBuilder/Platform/Windows.pm index 027d06284b..7b74ae0d99 100644 --- a/lib/ExtUtils/CBuilder/Platform/Windows.pm +++ b/lib/ExtUtils/CBuilder/Platform/Windows.pm @@ -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 { diff --git a/lib/ExtUtils/CBuilder/Platform/aix.pm b/lib/ExtUtils/CBuilder/Platform/aix.pm index f759404932..6ad2a6842f 100644 --- a/lib/ExtUtils/CBuilder/Platform/aix.pm +++ b/lib/ExtUtils/CBuilder/Platform/aix.pm @@ -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 } diff --git a/lib/ExtUtils/CBuilder/Platform/cygwin.pm b/lib/ExtUtils/CBuilder/Platform/cygwin.pm index 88c979d663..623fe0a30c 100644 --- a/lib/ExtUtils/CBuilder/Platform/cygwin.pm +++ b/lib/ExtUtils/CBuilder/Platform/cygwin.pm @@ -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 { diff --git a/lib/ExtUtils/CBuilder/Platform/darwin.pm b/lib/ExtUtils/CBuilder/Platform/darwin.pm index 6426601310..3b0cfb4c59 100644 --- a/lib/ExtUtils/CBuilder/Platform/darwin.pm +++ b/lib/ExtUtils/CBuilder/Platform/darwin.pm @@ -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 { diff --git a/lib/ExtUtils/CBuilder/Platform/dec_osf.pm b/lib/ExtUtils/CBuilder/Platform/dec_osf.pm index 363a5d135f..cb7a9e3da5 100644 --- a/lib/ExtUtils/CBuilder/Platform/dec_osf.pm +++ b/lib/ExtUtils/CBuilder/Platform/dec_osf.pm @@ -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; diff --git a/lib/ExtUtils/CBuilder/Platform/os2.pm b/lib/ExtUtils/CBuilder/Platform/os2.pm index 068381911a..4657c593ab 100644 --- a/lib/ExtUtils/CBuilder/Platform/os2.pm +++ b/lib/ExtUtils/CBuilder/Platform/os2.pm @@ -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 } |