summaryrefslogtreecommitdiff
path: root/cpan/Module-Build/lib/Module/Build/Base.pm
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2009-11-19 08:04:04 -0500
committerDavid Golden <dagolden@cpan.org>2009-11-19 08:05:33 -0500
commit08fc25adb28b667408639f0458cda3d8f55bac70 (patch)
treee19864cd663a07354d11804ca790a22f569b037e /cpan/Module-Build/lib/Module/Build/Base.pm
parent1fc7262d227d94438986ab803a17938da27ab057 (diff)
downloadperl-08fc25adb28b667408639f0458cda3d8f55bac70.tar.gz
Updated Module::Build to 0.35_09
0.35_09 - Thu Nov 19 01:30:42 EST 2009 Bug fixes: - The DB package should not be included in 'provides' in META files [David Golden] - Fixed t/xs.t build failures in bleadperl for noexec temp directories [Nicholas Clark] - Adjusted order of @INC in resume() (fixes par.t, ppm.t, xs.t fails): @INC = @new_additions_to_inc, @saved_additions_to_inc, @default_inc [David Golden] - Skip bundle_inc.t tests if bundled Module::Build for test can't be tweaked (Works around test crashes on Win2) [David Golden] Other: - 'C_support' is no longer an optional feature. Modern ExtUtils::CBuilder and ExtUtils::ParseXS added to the 'requires' list. This ensures that upgrading Module::Build will upgrade this critical modules. ExtUtils::CBuilder no longer requires a compiler, so it is "safe" to require.
Diffstat (limited to 'cpan/Module-Build/lib/Module/Build/Base.pm')
-rw-r--r--cpan/Module-Build/lib/Module/Build/Base.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpan/Module-Build/lib/Module/Build/Base.pm b/cpan/Module-Build/lib/Module/Build/Base.pm
index abeea2ef0a..5894ce51b3 100644
--- a/cpan/Module-Build/lib/Module/Build/Base.pm
+++ b/cpan/Module-Build/lib/Module/Build/Base.pm
@@ -4,7 +4,7 @@ package Module::Build::Base;
use strict;
use vars qw($VERSION);
-$VERSION = '0.35_08';
+$VERSION = '0.35_09';
$VERSION = eval $VERSION;
BEGIN { require 5.00503 }
@@ -74,7 +74,9 @@ sub resume {
my $self = $package->_construct(@_);
$self->read_config;
- unshift @INC, @{ $self->{properties}{_added_to_INC} || [] };
+ my @added_earlier = @{ $self->{properties}{_added_to_INC} || [] };
+
+ @INC = ($self->_added_to_INC, @added_earlier, $self->_default_INC);
# If someone called Module::Build->current() or
# Module::Build->new_from_context() and the correct class to use is
@@ -4314,6 +4316,7 @@ sub find_packages_in_files {
foreach my $package ( $pm_info->packages_inside ) {
next if $package eq 'main'; # main can appear numerous times, ignore
+ next if $package eq 'DB'; # special debugging package, ignore
next if grep /^_/, split( /::/, $package ); # private package, ignore
my $version = $pm_info->version( $package );
@@ -4798,8 +4801,6 @@ sub cbuilder {
my $self = shift;
my $s = $self->{stash};
return $s->{_cbuilder} if $s->{_cbuilder};
- die "Module::Build is not configured with C_support"
- unless $self->_mb_feature('C_support');
require ExtUtils::CBuilder;
return $s->{_cbuilder} = ExtUtils::CBuilder->new(