Skip Menu |

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

Report information
The Basics
Id: 47051
Status: resolved
Priority: 0/
Queue: ExtUtils-Install

People
Owner: yves [...] cpan.org
Requestors: dolmen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.52
Fixed in: (no value)



Subject: ExtUtils::Installed skips $Config{archname} subdirs for PERL5LIB dirs
When PERL5LIB is "./toto", Perl adds ./toto and ./toto/$Config{archname} to @INC. But ExtUtils::Installed does not have the same behavior (only ./toto is added) so .packlist (which are in $Config{archname}/auto) are not found. Here is how to view the problem: perl -MConfig -e 'map{mkdir$_} "foo","foo/$Config{archname}","foo/$Config{archname}/auto"' # Prints EU::I->{:private:}{LIBDIRS} to compare to @INC PERL5LIB=./foo perl -MExtUtils::Installed -e 'print join(qq!\n!, q!# @INC:!, @INC, q!# EU::Installed LIBDIRS:!, @{ExtUtils::Installed->new()->{":private:"}{LIBDIRS}}, q!# EU::Installed INC:!, @{ExtUtils::Installed->new()->{":private:"}{INC}}), qq!\n!' perl -MConfig -e 'map(rmdir, "foo/$Config{archname}/auto","foo/$Config{archname}", "foo")'
Looking at the code, I think there is also a problem in the order in which directories are searched for .packlist. Creating the test case is hard...
Have a look at lib.pm. I wonder if $self->{':private:'}{LIBDIRS} (directories where to look for .packlists) should not be just: grep { -e File::Spec->catdir($_, 'auto') } $self->{':private:'}{INC}
Can you please try 1.52_02? Thanks, yves
Le 2009-07-19 22:45:48, YVES a écrit : Show quoted text
> Can you please try 1.52_02?
Confirming fix in 1.999001. -- Olivier Mengué - https://metacpan.org/author/dolmen https://github.com/dolmen/