@@ -450,8 +450,7 @@ sub new {
450
450
check_manifest();
451
451
}
452
452
$self -> check_min_perl_version;
453
- my $unsatisfied_prereqs = $self -> check_prereqs($cmrstash );
454
- $self -> check_PREREQ_FATAL($unsatisfied_prereqs ); # after ARGV processed
453
+ $self -> check_prereqs($cmrstash ); # must be after ARGV processed
455
454
# CONFIGURE after PREREQ_FATAL so can rely on prereqs being present
456
455
my ($initial_att , $configure_att ) = $self -> extract_CONFIGURE;
457
456
$self -> arch_check(
@@ -466,21 +465,6 @@ sub new {
466
465
$self ;
467
466
}
468
467
469
- sub check_PREREQ_FATAL {
470
- my ($self , $unsatisfied_prereqs ) = @_ ;
471
- # RT#91540 PREREQ_FATAL not recognized on command line
472
- if (%$unsatisfied_prereqs && $self -> {PREREQ_FATAL }){
473
- my $failedprereqs = join " \n " , map {" $_ $unsatisfied_prereqs ->{$_ }" }
474
- sort { $a cmp $b } keys %$unsatisfied_prereqs ;
475
- die <<"END" ;
476
- MakeMaker FATAL: prerequisites not found.
477
- $failedprereqs
478
-
479
- Please install these modules first and rerun 'perl Makefile.PL'.
480
- END
481
- }
482
- }
483
-
484
468
sub extract_CONFIGURE {
485
469
my ($self ) = @_ ;
486
470
my %initial_att = %$self ; # record initial attributes
@@ -722,7 +706,17 @@ $failedprereqs
722
706
Please install these modules first and rerun 'perl Makefile.PL'.
723
707
END
724
708
}
725
- \%unsatisfied ;
709
+ # RT#91540 PREREQ_FATAL not recognized on command line
710
+ if (%unsatisfied && $self -> {PREREQ_FATAL }){
711
+ my $failedprereqs = join " \n " , map {" $_ $unsatisfied {$_ }" }
712
+ sort { $a cmp $b } keys %unsatisfied ;
713
+ die <<"END" ;
714
+ MakeMaker FATAL: prerequisites not found.
715
+ $failedprereqs
716
+
717
+ Please install these modules first and rerun 'perl Makefile.PL'.
718
+ END
719
+ }
726
720
}
727
721
728
722
sub check_min_perl_version {
0 commit comments