From: Rafael Garcia-Suarez Date: Thu, 18 Feb 2010 09:57:17 +0000 (+0100) Subject: Install Safe in "site" instead of "perl" for perls > 5.10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dd25434e956a33182a7425d061a66bfd0d144323;p=p5sagit%2Fp5-mst-13.2.git Install Safe in "site" instead of "perl" for perls > 5.10 That way it will override the Safe distributed with the core without actually overwriting it, thanks to the @INC reordering. --- diff --git a/dist/Safe/Makefile.PL b/dist/Safe/Makefile.PL index 0463e9c..abde681 100644 --- a/dist/Safe/Makefile.PL +++ b/dist/Safe/Makefile.PL @@ -5,6 +5,6 @@ my $core = grep { $_ eq 'PERL_CORE=1' } @ARGV; WriteMakefile( NAME => 'Safe', VERSION_FROM => 'Safe.pm', - INSTALLDIRS => 'perl', + INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'), ($core || $] >= 5.011) ? () : (INST_LIB => '$(INST_ARCHLIB)'), );