Subject: | Install to 'site' instead of 'perl' when perl version is 5.11+ |
Hello,
The Makefile.PL will currently set INSTALLDIRS to 'perl' for perls of
version 5.5 and above. According to [1] this is no longer necessary for
perls of version 5.11 and above, since those will look in 'site' first.
The attached patch changes the version check for INSTALLDIRS to only set
it to 'perl' when the perl version is also below 5.11.
regards,
Robert Sedlacek
[1]
https://github.com/rjbs/perltodo/blob/master/Supply-Patches-to-Fix-Install-Location.mkdn
Subject: | install_to_site_post_5011.patch |
--- Makefile.PL.orig 2012-09-23 22:45:02.768691685 +0200
+++ Makefile.PL 2012-09-23 22:46:49.413220502 +0200
@@ -57,7 +57,12 @@
}
else {
# IPC::SysV is in the core since 5.005
- push @moreopts, INSTALLDIRS => ($] >= 5.005 ? 'perl' : 'site');
+ # 5.11.0+ has site before perl
+ push @moreopts, INSTALLDIRS => (
+ ($] >= 5.005 and $] < 5.011)
+ ? 'perl'
+ : 'site',
+ );
}
$depend{'SysV.xs'} = 'const-c.inc const-xs.inc';