X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f2907d057cffffc2a2c5651807fa4113cc1ba16a;hb=176d4afb15604cbd6f5a4e8126b2af7d3645eeb8;hp=18e25bd65b561108d3347b8179bee37a25270ef0;hpb=f48dec31921d59ee7c7475460c3a1378a971101b;p=p5sagit%2Flocal-lib.git diff --git a/Makefile.PL b/Makefile.PL index 18e25bd..f2907d0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -174,7 +174,7 @@ requires 'ExtUtils::MakeMaker' => '6.31'; # version INSTALL_BASE was added requires 'ExtUtils::Install' => '1.43'; # ditto requires 'ExtUtils::CBuilder'; # this and ParseXS are needed for MB C_support requires 'ExtUtils::ParseXS'; -requires 'Module::Build' => '0.28'; # lib -> lib/perl5 change +requires 'Module::Build' => '0.36'; # PERL_MB_OPT my $required_CPAN = '1.82'; requires 'CPAN' => $required_CPAN; # sudo support + CPAN::HandleConfig @@ -204,13 +204,21 @@ delete $ENV{PERL5_CPAN_IS_RUNNING} if $no_cpan_env; CPAN::HandleConfig->load; for my $eumm_setting ( qw/makepl_arg make_install_arg/ ) { if ($CPAN::Config->{$eumm_setting} =~ /(?:PREFIX|INSTALL_BASE)/) { - die "Possibly invalid config detected in $eumm_setting: " . $CPAN::Config->{$eumm_setting}; + die <<"DEATH"; +WHOA THERE! It looks like you've got $CPAN::Config->{$eumm_setting} set. This is +known to cause problems with local::lib. Please either remove this setting or +clear out your .cpan directory. +DEATH } } for my $mb_setting (qw/mbuild_arg mbuild_install_arg mbuildpl_arg/) { if ($CPAN::Config->{$mb_setting} =~ /(?:--prefix|--install_base)/) { - die "Possibly invalid config detected in $mb_setting: " . $CPAN::Config->{$mb_setting}; + die <<"DEATH"; +WHOA THERE! It looks like you've got $CPAN::Config->{$mb_setting} set. This is +known to cause problems with local::lib. Please either remove this setting or +clear out your .cpan directory. +DEATH } } }