Subject: | installs in wrong place for 5.19 |
Date: | Mon, 25 Nov 2013 10:54:02 +0000 |
To: | bug-CGI.pm [...] rt.cpan.org |
From: | Zefram <zefram [...] fysh.org> |
CGI.pm now contains
use if $] >= 5.019, 'deprecate';
which means that on 5.19 it will generate a deprecation warning if it was
installed in the core's library directory. The intended rectification
is to install it from CPAN, putting it in the site library directory
so that it won't generate the warning. But Makefile.PL in CGI's CPAN
distro contains
'INSTALLDIRS' => 'perl',
meaning that it *always* installs in the core library directory, and
so always generates the deprecation warning on 5.19 even if installed
from CPAN. The line in Makefile.PL should probably be
'INSTALLDIRS' => $] < 5.011 ? 'perl' : 'site',
so that it will install in the site dirs on versions where that's first
in @INC.
-zefram