X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=570e3620e5e6a27b97251f111d9b8f493256ea28;hb=c38c862104a230e7507927118823da7f281bc274;hp=1d7a3c87f7de0d115d9381134cd0876d8b9a128e;hpb=c27d9c94175c3ff1e1b8d2f8b07b5bc301e4162e;p=p5sagit%2Flocal-lib.git diff --git a/Makefile.PL b/Makefile.PL index 1d7a3c8..570e362 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -102,7 +102,8 @@ DEATH } return $orig->(@_); }; - $CPAN::Config->{urllist} = ["http://cpan.shadowcatprojects.net"]; + # not yet -- apeiron, 2010-03-10 + #$CPAN::Config->{urllist} = ["http://cpan.shadowcatprojects.net"]; # all bootstrapped fine on one DH account # on another, it tries to install man stuff into /usr/local # cannot for the life of me figure out why @@ -111,7 +112,7 @@ DEATH # ExtUtils::ParseXS uses Module::Build # but Module::Build depends on it # so you need to set prefer_installer MM - # so cpan uses EU::ParseXS' Makefile.PL + # so cpan uses EU::ParseXS Makefile.PL # since we already got EUMM, *that* works $CPAN::Config->{prefer_installer} = "EUMM"; CPAN::Config->load; @@ -203,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 } } }