Changes from previous: 1.008004 2011-02-24 - Fix stackable tests on win32 by canonicalizing the path ahead of time 1.008003 2011-02-23 - Fix tests with stacking l::ls. 1.008002 2011-02-23 - Add local::lib stacking support. - Add activation/deactivation support. 1.008001 2011-01-09 - Bootstrap Module::Build just like ExtUtils::MakeMaker 1.008000 2011-01-05 - Remove redundant prereqs now that Module::Build 0.36 is required - Makefile.PL avoids CPAN client configuration when not required - print_environment_vars_for() refactored with separate function environment_vars_string_for() - PERL_LOCAL_LIB_ROOT environment is added to disambiguate when PERL_MM_OPT, etc. was set by local::lib or other means 1.007000 2010-12-09 - Chase the Module::Build version which supports PERL_MB_OPT. Thanks to miyagawa for pointing this out. 1.006009 2010-12-09 - Split up method guess_shelltype from parts of print_environment_vars_for - Updated documentation about change of use with .modulebuildrc 1.006008 2010-11-17 - Finally move to PERL_MB_OPT rather than using .modulebuildrc.
93 lines
3.6 KiB
Text
93 lines
3.6 KiB
Text
$NetBSD: patch-aa,v 1.3 2011/11/05 13:30:44 hiramatsu Exp $
|
|
|
|
Prevent CPAN's interactive configuration process to take place!
|
|
|
|
--- Makefile.PL.orig 2011-11-04 19:20:21.000000000 +0000
|
|
+++ Makefile.PL
|
|
@@ -200,46 +200,46 @@ delete $ENV{PERL5_CPAN_IS_RUNNING} if $n
|
|
|
|
# and make sure that the user doesn't have any existing CPAN config that'll
|
|
# cause us problems for the next few steps.
|
|
-{
|
|
- local $@;
|
|
- eval { require CPAN::HandleConfig; };
|
|
- # Need newish CPAN.pm for this, ergo skip it if that version of CPAN isn't
|
|
- # installed yet.
|
|
- # It will already be installed by the time we reach here if bootstrapping,
|
|
- # otherwise, if we're running from CPAN then it will be installed soon
|
|
- # enough, and we'll come back here..
|
|
- if (!$@ ) {
|
|
- CPAN::HandleConfig->require_myconfig_or_config;
|
|
- if ( $CPAN::Config ) {
|
|
- for my $eumm_setting ( qw/makepl_arg make_install_arg/ ) {
|
|
- if ($CPAN::Config->{$eumm_setting} =~ /(?:PREFIX|INSTALL_BASE)/) {
|
|
- 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 <<"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
|
|
- }
|
|
- }
|
|
- }
|
|
- }
|
|
- else {
|
|
- my $error = $@;
|
|
- require CPAN;
|
|
- # Explode if it looks like requiring CPAN::HandleConfig should
|
|
- # have worked, but didn't.
|
|
- die($error) if $CPAN::VERSION >= $required_CPAN;
|
|
- }
|
|
-}
|
|
+#{
|
|
+# local $@;
|
|
+# eval { require CPAN::HandleConfig; };
|
|
+# # Need newish CPAN.pm for this, ergo skip it if that version of CPAN isn't
|
|
+# # installed yet.
|
|
+# # It will already be installed by the time we reach here if bootstrapping,
|
|
+# # otherwise, if we're running from CPAN then it will be installed soon
|
|
+# # enough, and we'll come back here..
|
|
+# if (!$@ ) {
|
|
+# CPAN::HandleConfig->require_myconfig_or_config;
|
|
+# if ( $CPAN::Config ) {
|
|
+# for my $eumm_setting ( qw/makepl_arg make_install_arg/ ) {
|
|
+# if ($CPAN::Config->{$eumm_setting} =~ /(?:PREFIX|INSTALL_BASE)/) {
|
|
+# 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 <<"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
|
|
+# }
|
|
+# }
|
|
+# }
|
|
+# }
|
|
+# else {
|
|
+# my $error = $@;
|
|
+# require CPAN;
|
|
+# # Explode if it looks like requiring CPAN::HandleConfig should
|
|
+# # have worked, but didn't.
|
|
+# die($error) if $CPAN::VERSION >= $required_CPAN;
|
|
+# }
|
|
+#}
|
|
|
|
if ($bootstrapping) {
|
|
auto_install_now;
|