Bug#656242: perl: .packlist file missing

Damyan Ivanov dmn at debian.org
Sun Jan 22 18:09:14 UTC 2012


-=| Dominic Hargreaves, 19.01.2012 20:34:57 +0000 |=-
> On Tue, Jan 17, 2012 at 07:04:23PM +0100, Marc Lehmann wrote:
> > Neither perl, perl-base nor perl-moduels contain the .packlist file that is part
> > of a standard perl installation.
> > 
> > This file is needed when programs want to know which files belong to the
> > perl core, and which don't.
> 
> Can you give an example of a program which uses it like this?
> 
> > To reproduce, use:
> > 
> >    perl -e 'do ".packlist"'
> > 
> > on a working perl, this should cause lots of compiletime errors (Bareword
> > missing...) because the .packlist file is not valid perl.
> 
> This isn't a great test case.

Trying to guess what the real use case is, here's a one-liner that 
seems to not work as one would expect:

perl -MExtUtils::Installed -we' print 
ExtUtils::Installed->version("Module::CoreList");'

Apart of taking several minutes of disk juggling to finish, it concludes 
that "Module::CoreList is not installed", which is an outright lie :)

Of course, there is another way to get the module version (require 
Module::CoreList; print $Module::CoreList::VERSION), which for some 
reason is not usable to ExtUtils::Installed.

Maybe this gives a clue to somebody.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20120122/1a3a68cb/attachment.pgp>


More information about the Perl-maintainers mailing list