Thu Mar 25 10:54:08 2010: Request 55923 was acted upon.
Transaction: Correspondence added by SMUELLER
Queue: PAR-Packer
Subject: Re: [rt.cpan.org #55923] pp not packing distribution share dir
contents
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=55923 >
Hi,
kmx via RT wrote:
> Well, let us say at some point we know that we need to bundle
> Some::Module IMHO it is quite straightforward to determine where is the
> sharedir corresponding to Some::Module - something like this: $dir =
> module_dir('File::ShareDir'); - via Find::ShareDir. Then we have just to
> decide where in PAR structure should the content of sharedir has to be
> copied (perhaps somewhere under lib/auto/share/...).
>
> Do I understand that it is more a question on Module::ScanDeps than
> PAR::Packer?
Hmm. Not really, it's both. IMHO M::SD should flag a module as "this has
share-type data!" and PAR::Packer needs to recognize that and pack it.
Maybe it should do so only if a specific option is present, but I think
it's a reasonable default.
Regarding the location inside the PAR:
A .par is more or less the same as a blib/ directory of a freshly-built
CPAN distribution. If you run "perl Makefile.PL && make" for something
that uses, eg., Module::Install::Share to handle share-type data, this
will tell you where the stuff should go in the PAR file. I believe it's
the same location as in the installed case.
Best regards,
Steffen