Skip Menu |

This queue is for tickets about the DB_File CPAN distribution.

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

People
Owner: pmqs [...] cpan.org
Requestors: david.pitt [...] national.com.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.814
Fixed in: (no value)



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.
On Wed Dec 21 02:14:23 2005, guest wrote: Show quoted text
> 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 Show quoted text
> by INSTALLDIRS=perl in Makefile.PL. > > Possible solution is to remove INSTALLDIRS=perl from Makefile.PL.
From: david.pitt [...] national.com.au
On Sun Jan 29 22:16:32 2006, guest wrote: Show quoted text
> On Wed Dec 21 02:14:23 2005, guest wrote:
> > 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 Show quoted text
> > 'perl Makefile.PL INSTALLDIRS=site ...'. Despite this,
DB_File.pm Show quoted text
> > 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" Show quoted text
> > }, > > > > 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.
> >
Please cancel this bug report, I now realize it is bogus. I shouldn't have been trying to install DB_File into site_perl, as it is supplied with core Perl 5.8.x. Instead I should have configured the core perl to build DB_File.