Thu Mar 25 09:52:46 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: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=55923 >
Hi there,
kmx via RT wrote:
> I have tried to create a PAR archive from a perl script using a module with so
> called share dir (see
> http://search.cpan.org/dist/Module-Install/lib/Module/Install/Share.pm or
> http://search.cpan.org/dist/File-ShareDir/lib/File/ShareDir.pm).
>
> What I have expected is that in my_perl_script.pl does "use
> MyModule::WithShare;" that PAR packer will also include the content of
> distribution share dir of the distribution containing MyModule::WithShare.
> However the resulting PAR file does not seem to contain files installed into
> dist share dir.
>
> I am not saying this is a bug; maybe I have not specified some necessary
> parameter when running pp command (I simply run: pp -o test.par
> my_perl_script.pl) or perhaps this issue should be discussed somewhere else
> (Module::ScanDeps?).
>
> Some details about my test environment:
> - Win32 Strawberry Perl 5.10.1
> - PAR::Packer 1.002
> - Module::ScanDeps 0.96
>
> Could you please give me some hint on how to get share dir content into a PAR
> archive? I gues that it should be possible as there exists File::ShareDir::PAR
> that solves a problem how to find share dir inside PAR (I am currently not
> even
> able to create such a PAR).
>
> Thanks in advance for any feedback.
Essentially, you'll have to use the -a (or -A) option of pp to manually
add files to the .par file. Module::ScanDeps has no way to determine
that/whether a given module has "share"-like data attached. Or maybe it
could find out, but I don't think it does. (Patches welcome!)
Cheers,
Steffen