X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=installperl;h=9e06145df72ee31171bfc2d5d5c4934ae4124ef3;hb=a29bb5d65184e75403dfd9e067748a8e99d945b7;hp=dcc92a5ecb081199bfe16a143dee4c8f44386a07;hpb=fc77390a2910c0173d3f72757ee737d33c408b77;p=p5sagit%2Fp5-mst-13.2.git diff --git a/installperl b/installperl index dcc92a5..9e06145 100755 --- a/installperl +++ b/installperl @@ -386,6 +386,17 @@ foreach my $file (@corefiles) { } } +# Switch in the 5.005-threads versions of he threadsafe queue and semaphore +# modules if so needed. +if ($Config{use5005threads}) { + for my $m (qw(Queue Semaphore)) { + my $t = "$installprivlib/Thread/$m.pm"; + unlink $t; + copy("ext/Thread/$m.pmx", $t); + chmod(0444, $t); + } +} + # Install main perl executables # Make links to ordinary names if installbin directory isn't current directory. @@ -746,6 +757,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 +827,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$/)) {