summaryrefslogtreecommitdiff
path: root/installperl
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2013-07-09 10:37:32 +1000
committerTony Cook <tony@develop-help.com>2013-07-09 11:24:08 +1000
commitb7c0c6b4c695e81ae2ca0860d66741becced22b4 (patch)
treef93eedccd3ecff567f9f219b6b5fbc9220c35a94 /installperl
parente8856f17db2c0b18a07fe6dedceda9eaefec3e3e (diff)
downloadperl-b7c0c6b4c695e81ae2ca0860d66741becced22b4.tar.gz
[perl #117033] wrong .packlist creation at installation on Cygwin with destdir
Diffstat (limited to 'installperl')
-rwxr-xr-xinstallperl9
1 files changed, 5 insertions, 4 deletions
diff --git a/installperl b/installperl
index ac1c770378..60d392ec57 100755
--- a/installperl
+++ b/installperl
@@ -275,7 +275,7 @@ if (($Is_W32 and ! $Is_NetWare) or $Is_Cygwin) {
safe_unlink("$installbin/$perldll");
copy("$perldll", "$installbin/$perldll");
chmod(0755, "$installbin/$perldll");
- $packlist->{"$installbin/$perldll"} = { type => 'file' };
+ $packlist->{"$Config{installbin}/$perldll"} = { type => 'file' };
} # if (($Is_W32 and ! $Is_NetWare) or $Is_Cygwin)
# First we install the version-numbered executables.
@@ -357,21 +357,22 @@ if ($Is_VMS) { # We did core file selection during build
elsif ($Is_Cygwin) { # On Cygwin symlink it to CORE to make Makefile happy
@corefiles = <*.h libperl*.* perl*$Config{lib_ext}>;
my $coredll = "$installarchlib/CORE/$libperl";
+ my $instcoredll = "$Config{installarchlib}/CORE/$libperl";
safe_unlink($coredll);
( $Config{'d_link'} eq 'define' &&
eval {
CORE::link("$installbin/$libperl", $coredll);
- $packlist->{$coredll} = { from => "$installbin/$libperl",
+ $packlist->{$instcoredll} = { from => "$Config{installbin}/$libperl",
type => 'link' };
}
) ||
eval {
symlink("$installbin/$libperl", $coredll);
- $packlist->{$coredll} = { from => "$installbin/$libperl",
+ $packlist->{$instcoredll} = { from => "$Config{installbin}/$libperl",
type => 'link' };
} ||
( copy("$installbin/$libperl", $coredll) &&
- push(@corefiles, $coredll)
+ push(@corefiles, $instcoredll)
)
} else {
# [als] hard-coded 'libperl' name... not good!