summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-21 09:18:07 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-21 09:18:07 +0000
commit4325052d2625a06294068527f0d65e6f637a59ee (patch)
treedfb12d4ad8e6c5d1e259dd8f6df46f6fa7391308 /lib
parentb15aece354b2aec9d338e59acb2abc2deeebc3c0 (diff)
downloadperl-4325052d2625a06294068527f0d65e6f637a59ee.tar.gz
Update to MakeMaker 6.30
p4raw-id: //depot/perl@24524
Diffstat (limited to 'lib')
-rw-r--r--lib/ExtUtils/Changes6
-rw-r--r--lib/ExtUtils/MM_Unix.pm28
-rw-r--r--lib/ExtUtils/MakeMaker.pm16
-rw-r--r--lib/ExtUtils/t/FIRST_MAKEFILE.t4
-rw-r--r--lib/ExtUtils/t/PL_FILES.t4
5 files changed, 43 insertions, 15 deletions
diff --git a/lib/ExtUtils/Changes b/lib/ExtUtils/Changes
index 60de6f544b..af4b84c521 100644
--- a/lib/ExtUtils/Changes
+++ b/lib/ExtUtils/Changes
@@ -1,3 +1,9 @@
+6.30 Fri May 20 16:05:38 PDT 2005
+ * PL_FILES behavior tweak again to restore old behavior. Sometimes its
+ supposed to run before pm_to_blib, sometimes after.
+ - Some tests shipped with 'no_plan' which will break on older
+ Test::Harness.
+
6.29 Thu May 19 14:15:21 PDT 2005
* The behavior of PL_FILES is restored to its pre-6.26 behavior as several
CPAN modules depend on this. PL programs run via PL_FILES have
diff --git a/lib/ExtUtils/MM_Unix.pm b/lib/ExtUtils/MM_Unix.pm
index d8f0564c9e..9d792a866e 100644
--- a/lib/ExtUtils/MM_Unix.pm
+++ b/lib/ExtUtils/MM_Unix.pm
@@ -20,7 +20,7 @@ use vars qw($VERSION @ISA
use ExtUtils::MakeMaker qw($Verbose neatvalue);
-$VERSION = '1.49';
+$VERSION = '1.50';
require ExtUtils::MM_Any;
@ISA = qw(ExtUtils::MM_Any);
@@ -3046,13 +3046,29 @@ sub processPL {
$target = vmsify($target);
}
- $m .= sprintf <<'MAKE_FRAG', ($target) x 2, ($plfile) x 2, $target;
+ # Normally a .PL file runs AFTER pm_to_blib so it can have
+ # blib in its @INC and load the just built modules. BUT if
+ # the generated module is something in $(TO_INST_PM) which
+ # pm_to_blib depends on then it can't depend on pm_to_blib
+ # else we have a dependency loop.
+ my $pm_dep;
+ my $perlrun;
+ if( defined $self->{PM}{$target} ) {
+ $pm_dep = '';
+ $perlrun = 'PERLRUN';
+ }
+ else {
+ $pm_dep = 'pm_to_blib';
+ $perlrun = 'PERLRUNINST';
+ }
-all :: %s
- $(NOECHO) $(NOOP)
+ $m .= <<MAKE_FRAG;
+
+all :: $target
+ \$(NOECHO) \$(NOOP)
-%s :: %s pm_to_blib
- $(PERLRUNINST) %s %s
+$target :: $plfile $pm_dep
+ \$($perlrun) $plfile $target
MAKE_FRAG
}
diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm
index 6bea8cf7ad..0e651511ae 100644
--- a/lib/ExtUtils/MakeMaker.pm
+++ b/lib/ExtUtils/MakeMaker.pm
@@ -1,4 +1,4 @@
-# $Id: /local/schwern.org/CPAN/ExtUtils-MakeMaker/trunk/lib/ExtUtils/MakeMaker.pm 4531 2005-05-19T21:18:53.053398Z schwern $
+# $Id: /local/schwern.org/CPAN/ExtUtils-MakeMaker/trunk/lib/ExtUtils/MakeMaker.pm 4535 2005-05-20T23:08:34.937906Z schwern $
package ExtUtils::MakeMaker;
BEGIN {require 5.005_03;}
@@ -21,8 +21,8 @@ use vars qw(
use vars qw($Revision);
use strict;
-$VERSION = '6.29';
-($Revision = q$Revision: 4531 $) =~ /Revision:\s+(\S+)/;
+$VERSION = '6.30';
+($Revision = q$Revision: 4535 $) =~ /Revision:\s+(\S+)/;
@ISA = qw(Exporter);
@EXPORT = qw(&WriteMakefile &writeMakefile $Verbose &prompt);
@@ -1898,8 +1898,12 @@ In this case the program will be run multiple times using each target file.
perl bin/foobar.PL bin/foobar1
perl bin/foobar.PL bin/foobar2
-PL files are run B<after> pm_to_blib and include INST_LIB and INST_ARCH
-in its C<@INC> so the just built modules can be accessed.
+PL files are normally run B<after> pm_to_blib and include INST_LIB and
+INST_ARCH in its C<@INC> so the just built modules can be
+accessed... unless the PL file is making a module (or anything else in
+PM) in which case it is run B<before> pm_to_blib and does not include
+INST_LIB and INST_ARCH in its C<@INC>. This apparently odd behavior
+is there for backwards compatibility (and its somewhat DWIM).
=item PM
@@ -2086,7 +2090,7 @@ MakeMaker object. The following lines will be parsed o.k.:
$VERSION = '1.00';
*VERSION = \'1.01';
- $VERSION = sprintf "%d.%03d", q$Revision: 4531 $ =~ /(\d+)/g;
+ $VERSION = sprintf "%d.%03d", q$Revision: 4535 $ =~ /(\d+)/g;
$FOO::VERSION = '1.10';
*FOO::VERSION = \'1.11';
our $VERSION = 1.2.3; # new for perl5.6.0
diff --git a/lib/ExtUtils/t/FIRST_MAKEFILE.t b/lib/ExtUtils/t/FIRST_MAKEFILE.t
index 320f8afac5..731dd34d92 100644
--- a/lib/ExtUtils/t/FIRST_MAKEFILE.t
+++ b/lib/ExtUtils/t/FIRST_MAKEFILE.t
@@ -1,3 +1,5 @@
+#!/usr/bin/perl -w
+
BEGIN {
if( $ENV{PERL_CORE} ) {
chdir 't' if -d 't';
@@ -10,7 +12,7 @@ BEGIN {
chdir 't';
use strict;
-use Test::More 'no_plan';
+use Test::More tests => 7;
use MakeMaker::Test::Setup::BFD;
use MakeMaker::Test::Utils;
diff --git a/lib/ExtUtils/t/PL_FILES.t b/lib/ExtUtils/t/PL_FILES.t
index caf68b62ff..106fb08c94 100644
--- a/lib/ExtUtils/t/PL_FILES.t
+++ b/lib/ExtUtils/t/PL_FILES.t
@@ -12,7 +12,7 @@ BEGIN {
chdir 't';
use strict;
-use Test::More 'no_plan';
+use Test::More tests => 9;
use File::Spec;
use MakeMaker::Test::Setup::PL_FILES;
@@ -37,6 +37,6 @@ cmp_ok( $?, '==', 0 );
my $make_out = run("$make");
is( $?, 0 ) || diag $make_out;
-foreach my $file (qw(single.out 1.out 2.out)) {
+foreach my $file (qw(single.out 1.out 2.out blib/lib/PL/Bar.pm)) {
ok( -e $file, "$file was created" );
}