Subject: | Install to 'site' instead of 'perl' when perl version is 5.11+ |
Hello,
according to [1] the change mentioned in [2] means that from perl 5.11
onward, it is no longer necessary to set INSTALLDIRS to 'perl' to have
it not shadowed by the core version. The attached patch changes the
check (currently just for perls 5.9.5+) to only set it to 'perl' when
the version is also below 5.11.
regards,
Robert Sedlacek
[1]
https://github.com/rjbs/perltodo/blob/master/Supply-Patches-to-Fix-Install-Location.mkdn
[2]
https://metacpan.org/module/JESSE/perl-5.11.0/pod/perl5110delta.pod#INC-reorganization
Subject: | install_to_site_post_5011.patch |
--- Makefile.PL.orig 2012-09-23 00:57:58.687688329 +0200
+++ Makefile.PL 2012-09-23 00:58:57.311979038 +0200
@@ -7,5 +7,5 @@
'VERSION_FROM' => 'Piece.pm', # finds $VERSION
'AUTHOR' => 'Matt Sergeant',
'ABSTRACT_FROM' => 'Piece.pm',
- 'INSTALLDIRS' => ( $] >= 5.009005 ? 'perl' : 'site' ),
+ 'INSTALLDIRS' => ( ($] >= 5.009005 and $] < 5.011) ? 'perl' : 'site' ),
);