Thu Mar 25 11:00:59 2010: Request 55923 was acted upon. Transaction: Correspondence added by [email protected] 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: http://rt.cpan.org/Ticket/Display.html?id=55923 >
On Thu, Mar 25, 2010 at 3:31 PM, kmx via RT <[email protected]> wrote: > 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? That depends where you want to implement it: Module::ScanDeps already contains special rules for certain "pathologic" modules where the simple rule: If we see "use Foo" then (a) add Foo.pm as a dependency and (b) add Foo.pm to the list of files to be scanned. isn't enough. IMHO it would be better to implement it as just another option for pp, similar to -MFoo that says: Add Foo.pm (and all its dependencies) in addition to what Module::ScanDeps determines from the script to pack. As Steffen already wrote: patches welcome. Cheers, Roderich
