Skip Menu |

This queue is for tickets about the ExtUtils-MakeMaker CPAN distribution.

Report information
The Basics
Id: 1771
Status: resolved
Priority: 0/
Queue: ExtUtils-MakeMaker

People
Owner: Nobody in particular
Requestors: makemaker [...] laubster.org
Cc:
AdminCc:

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



Subject: default lib dir should examine $Config{installstyle}
$Config{installstyle} contains either 'lib' (when $Config{prefix} contains something like '/opt/perl/') or 'lib/perl5' (when $Config{prefix} contains something like '/usr/local/'). MM_Unix should utilize the installstyle for the default libstyle instead of hardcoding 'lib/perl5'. Patch is attached. I ran across this problem while installing under my home dir (/home/jdl/perltest/). After I installed a module that used MakeMaker, the modules weren't found because the 'perl5' part of the module's install dir wasn't in @INC. After running the attached patch & re-installing the module, things work fine. Thanks! :-)
*** MM_Unix.pm.orig Wed Nov 6 13:48:42 2002 --- MM_Unix.pm Thu Nov 7 08:34:23 2002 *************** *** 1930,1936 **** my $version = $Config{version}; # default style ! my $libstyle = 'lib/perl5'; my $manstyle = ''; if( $self->{LIBSTYLE} ) { --- 1930,1936 ---- my $version = $Config{version}; # default style ! my $libstyle = $Config{installstyle} || 'lib/perl5'; my $manstyle = ''; if( $self->{LIBSTYLE} ) {
[guest - Thu Nov 7 10:54:15 2002]: Show quoted text
> $Config{installstyle} contains either 'lib' (when $Config{prefix} > contains something like '/opt/perl/') or 'lib/perl5' (when > $Config{prefix} contains something like '/usr/local/'). MM_Unix > should utilize the installstyle for the default libstyle instead of > hardcoding 'lib/perl5'. Patch is attached.
There was a reason I didn't honor $Config{installstyle} but I can't remember it. Couldn't have been important, patch applied.