Subject: | DB_File.pm always installs into 'perl' directory not 'site' directory |
Distro: DB_File-1.814
Perl: 5.8.7
OS: SunOS tdevs183 5.8 Generic_117350-05 sun4u sparc SUNW,Netra-T12
I am attempting to install DB_File.pm into a site_perl directory via 'perl Makefile.PL INSTALLDIRS=site ...'. Despite this, DB_File.pm and associated files are installed into 'perl' directory (.../lib/sun4-solaris) instead of 'site' directory (.../site_perl/lib/sun4-solaris) as expected. This causes grief preparing CPAN packages for distribution.
The problem is caused by line 57 of Makefile.PL:
'macro' => { INSTALLDIRS => 'perl', my_files => "@files" },
which creates the following entries in Makefile:
78:INSTALLDIRS = site
273:INSTALLDIRS = perl
In other words, my INSTALLDIRS=site on the command line is overwritten by INSTALLDIRS=perl in Makefile.PL.
Possible solution is to remove INSTALLDIRS=perl from Makefile.PL.