Skip Menu |

This queue is for tickets about the Win32API-File CPAN distribution.

Report information
The Basics
Id: 79802
Status: resolved
Priority: 0/
Queue: Win32API-File

People
Owner: Nobody in particular
Requestors: rs [...] 474.at
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Install to 'site' instead of 'perl' when perl version is 5.11+
Hello, Currently, the Makefile.PL will set INSTALLDIRS to 'perl' if the perl version is 5.8.9 or above. According to [1] from 5.11 onwards it is safe again to install to the 'site' directory. The attached patch amends the current INSTALLDIRS check to take that into account. regards, Robert Sedlacek [1] https://github.com/rjbs/perlto do/blob/master/Supply-Patches- to-Fix-Install-Location.mkdn
Subject: install_to_site_post_5011.patch
diff --git a/Makefile.PL b/Makefile.PL index 7e31df7..fc4cd88 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -23,7 +23,7 @@ WriteMakefile1( NO_REBUILD => 1, }, ( ! $Config{libperl} ? () : ( LIBPERL_A => $Config{libperl} ) ), - 'INSTALLDIRS' => ($] >= 5.008009 ? 'perl' : 'site'), + 'INSTALLDIRS' => (($] >= 5.008009 and $] < 5.011) ? 'perl' : 'site'), 'LICENSE' => 'perl', 'MIN_PERL_VERSION' => 5.001, 'PREREQ_PM' => {
Added in version 0.1201 -- Alexandr Ciornii, http://chorny.net