Change 13918 by jhi@alpha on 2001/12/28 17:00:53
Subject: provisional MakeMaker patch for VMS
From: "Craig A. Berry" <[EMAIL PROTECTED]>
Date: Thu, 27 Dec 2001 22:29:37 -0600
Message-Id: <a05101004b8515264aa3a@[172.16.52.1]>
Affected files ...
.... //depot/perl/lib/ExtUtils/MM_Unix.pm#134 edit
.... //depot/perl/lib/ExtUtils/MM_VMS.pm#50 edit
Differences ...
==== //depot/perl/lib/ExtUtils/MM_Unix.pm#134 (text) ====
Index: perl/lib/ExtUtils/MM_Unix.pm
--- perl/lib/ExtUtils/MM_Unix.pm.~1~ Fri Dec 28 10:15:05 2001
+++ perl/lib/ExtUtils/MM_Unix.pm Fri Dec 28 10:15:05 2001
@@ -1442,9 +1442,9 @@
if ($txt =~ /Extracting \S+ \(with variable substitutions/) {
($pl_files{$name} = $name) =~ s/[._]pl\z//i ;
}
- else { $pm{$name} = File::Spec->catfile('$(INST_LIBDIR)',$name); }
+ else { $pm{$name} = File::Spec->catfile($self->{INST_LIBDIR},$name); }
} elsif ($name =~ /\.(p[ml]|pod)\z/){
- $pm{$name} = File::Spec->catfile('$(INST_LIBDIR)',$name);
+ $pm{$name} = File::Spec->catfile($self->{INST_LIBDIR},$name);
}
}
@@ -1500,9 +1500,9 @@
return;
}
return if /\#/;
- my($path, $prefix) = ($File::Find::name, '$(INST_LIBDIR)');
+ my($path, $prefix) = ($File::Find::name, $self->{INST_LIBDIR});
my($striplibpath,$striplibname);
- $prefix = '$(INST_LIB)' if (($striplibpath = $path) =~
s:^(\W*)lib\W:$1:i);
+ $prefix = $self->{INST_LIB} if (($striplibpath = $path) =~
+s:^(\W*)lib\W:$1:i);
($striplibname,$striplibpath) = fileparse($striplibpath);
my($inst) = File::Spec->catfile($prefix,$striplibpath,$striplibname);
local($_) = $inst; # for backwards compatibility
@@ -1791,10 +1791,10 @@
# We need to set up INST_LIBDIR before init_libscan() for VMS
my @parentdir = split(/::/, $self->{PARENT_NAME});
- $self->{INST_LIBDIR} = File::Spec->catdir('$(INST_LIB)',@parentdir);
- $self->{INST_ARCHLIBDIR} = File::Spec->catdir('$(INST_ARCHLIB)',@parentdir);
- $self->{INST_AUTODIR} = File::Spec->catdir('$(INST_LIB)','auto','$(FULLEXT)');
- $self->{INST_ARCHAUTODIR} =
File::Spec->catdir('$(INST_ARCHLIB)','auto','$(FULLEXT)');
+ $self->{INST_LIBDIR} = File::Spec->catdir($self->{INST_LIB},@parentdir);
+ $self->{INST_ARCHLIBDIR} = File::Spec->catdir($self->{INST_ARCHLIB},@parentdir);
+ $self->{INST_AUTODIR} =
+File::Spec->catdir($self->{INST_LIB},'auto',$self->{FULLEXT});
+ $self->{INST_ARCHAUTODIR} =
+File::Spec->catdir($self->{INST_ARCHLIB},'auto',$self->{FULLEXT});
# INST_EXE is deprecated, should go away March '97
$self->{INST_EXE} ||= File::Spec->catdir(File::Spec->curdir,'blib','script');
==== //depot/perl/lib/ExtUtils/MM_VMS.pm#50 (text) ====
Index: perl/lib/ExtUtils/MM_VMS.pm
--- perl/lib/ExtUtils/MM_VMS.pm.~1~ Fri Dec 28 10:15:05 2001
+++ perl/lib/ExtUtils/MM_VMS.pm Fri Dec 28 10:15:05 2001
@@ -19,6 +19,7 @@
# All on one line so MakeMaker can see it.
($VERSION) = ($Revision = '5.56 (27-Apr-1999)') =~ /^([\d.]+)/;
+@ISA = qw( File::Spec );
unshift @MM::ISA, 'ExtUtils::MM_VMS';
require ExtUtils::MakeMaker;
@@ -73,7 +74,7 @@
=cut
sub rootdir {
- return File::Spec->rootdir();'
+ return File::Spec->rootdir();
}
package ExtUtils::MM_VMS;
@@ -803,7 +804,7 @@
sub pm_to_blib {
my($self) = @_;
my($line,$from,$to,@m);
- my($autodir) = File::Spec->catdir('$(INST_LIB)','auto');
+ my($autodir) = File::Spec->catdir($self->{INST_LIB},'auto');
my(@files) = @{$self->{PM_TO_BLIB}};
push @m, q{
End of Patch.