Skip Menu |
 

This queue is for tickets about the DB_File CPAN distribution.

Report information
The Basics
Id: 70420
Status: resolved
Priority: 0/
Queue: DB_File

People
Owner: Nobody in particular
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.824
Fixed in: 1.829



Subject: DB_File installs to wrong place for CPAN version
Download (untitled) / with headers
text/plain 476b
DB_File installs to the wrong location after perl 5.11. This is because the default location for all modules after perl 5.11 is supposed to be site not perl. This change was made along with a re- structuring of the default INC path to make site come first. I can provide a link for you to the mailing list and/or perldelta that documents this if needed. Attached is a patch to resolve this issue and allow customization of the install location via Makefile.PL command line
Attached patch
Subject: DB_File-1.824.patch.txt
commit 95115572e8e7941b8db887f5eceb0a18a4d10fa9 Author: Todd Rinaldo <toddr@cpan.org> Date: Wed May 18 09:18:04 2011 -0500 Remove INSTALLDIRS from macro in Makefile.PL so site override works diff --git a/Makefile.PL b/Makefile.PL index a586a04..c05b552 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -60,13 +60,12 @@ WriteMakefile( AUTHOR => 'Paul Marquess <pmqs@cpan.org>') : () ), - - + ($] < 5.008 || $] > 5.011) ? (INSTALLDIRS => 'site') : ( INSTALLDIRS => 'perl' ), #OPTIMIZE => '-g', 'depend' => { 'Makefile' => 'config.in', 'version$(OBJ_EXT)' => 'version.c'}, 'clean' => { FILES => 'constants.h constants.xs' }, - 'macro' => { INSTALLDIRS => 'perl', my_files => "@files" }, + 'macro' => { my_files => "@files" }, 'dist' => { COMPRESS => 'gzip', SUFFIX => 'gz', DIST_DEFAULT => 'MyDoubleCheck tardist'}, );
Download (untitled) / with headers
text/plain 178b
This is still a valid issue. There's a ticket at rt.perl.org concerning the 'perl' to 'site' switch for dual-life modules. https://rt.perl.org/rt3/Ticket/Display.html?id=116479


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.