Subject: | PREREQ_FATAL not overridable on the commandline |
Take as a test case TELS/math/bignum-0.19.tar.gz
The author insists on using PREREQ_FATAL=>1 in his Makefile.PL.
MakeMaker does not let me override this on the commandline. It commits
suicide without even *reading* the commandline.
The attached patch seems to dalay the fatal action and lets me override
PREREQ_FATAL. But I do not know about side effects.
At least it passes all tests, but I have not tried anything besides
'make test' in the MakeMaker distribution.
Subject: | makemaker-prereq-fatal-overrideable.patch |
--- /home/src/perl/repoperls/installed-perls/perl/p07FX0V/perl-5.8.0@30104/lib/5.9.5/ExtUtils/MakeMaker.pm~ 2007-02-03 09:06:59.000000000 +0100
+++ /home/src/perl/repoperls/installed-perls/perl/p07FX0V/perl-5.8.0@30104/lib/5.9.5/ExtUtils/MakeMaker.pm 2007-02-03 16:16:01.000000000 +0100
@@ -414,13 +414,6 @@
$self->{PREREQ_PM}->{$prereq} : 'unknown version' ;
}
}
- if (%unsatisfied && $self->{PREREQ_FATAL}){
- my $failedprereqs = join ', ', map {"$_ $unsatisfied{$_}"}
- keys %unsatisfied;
- die qq{MakeMaker FATAL: prerequisites not found ($failedprereqs)\n
- Please install these modules first and rerun 'perl Makefile.PL'.\n};
- }
-
if (defined $self->{CONFIGURE}) {
if (ref $self->{CONFIGURE} eq 'CODE') {
%configure_att = %{&{$self->{CONFIGURE}}};
@@ -490,6 +483,13 @@
} else {
parse_args($self,split(' ', $ENV{PERL_MM_OPT} || ''),@ARGV);
}
+ if (%unsatisfied && $self->{PREREQ_FATAL}){
+ my $failedprereqs = join ', ', map {"$_ $unsatisfied{$_}"}
+ keys %unsatisfied;
+ die qq{MakeMaker FATAL: prerequisites not found ($failedprereqs)\n
+ Please install these modules first and rerun 'perl Makefile.PL'.\n};
+ }
+
$self->{NAME} ||= $self->guess_name;