X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=installperl;h=8425f5b83ed73e2af52dbf48930f08aed0c7f7f9;hb=1a95e36d92295cabb6c213a2f397c4cb7614d12c;hp=dcc92a5ecb081199bfe16a143dee4c8f44386a07;hpb=fc77390a2910c0173d3f72757ee737d33c408b77;p=p5sagit%2Fp5-mst-13.2.git diff --git a/installperl b/installperl index dcc92a5..8425f5b 100755 --- a/installperl +++ b/installperl @@ -746,6 +746,8 @@ sub installlib { # .exists files, .PL files, and .t files. return if $name =~ m{\.orig$|~$|^#.+#$|,v$|^\.exists|\.PL$|\.t$} || $dir =~ m{/t(?:/|$)}; + # ignore the test extensions + return if $dir =~ m{ext/XS/(?:APItest|Typemap)/}; $name = "$dir/$name" if $dir ne ''; @@ -814,13 +816,27 @@ sub installlib { sub copy_if_diff { my($from,$to)=@_; return 1 if (($^O eq 'VMS') && (-d $from)); - -f $from || warn "$0: $from not found"; + my $perlpodbadsymlink; + if ($from =~ m!^pod/perl[\w-]+\.pod$! && + -l $from && + ! -e $from) { + # Some Linux implementations have problems traversing over + # multiple symlinks (when going over NFS?) and fail to read + # the symlink target. Combine this with the fact that some + # of the pod files (the perl$OS.pod) are symlinks (to ../README.$OS), + # and you end up with those pods not getting installed. + $perlpodbadsymlink = 1; + } + -f $from || $perlpodbadsymlink || warn "$0: $from not found"; $packlist->{$to} = { type => 'file' }; if (compare($from, $to) || $nonono) { safe_unlink($to); # In case we don't have write permissions. if ($nonono) { $from = $depth . "/" . $from if $depth; } + if ($perlpodbadsymlink && $from =~ m!^pod/perl(.+)\.pod$!) { + $from = "README.$1"; + } copy($from, $to); # Restore timestamps if it's a .a library or for OS/2. if (!$nonono && ($Is_OS2 || $to =~ /\.a$/)) {