Thu Mar 25 18:10:49 2010: Request 55923 was acted upon.
Transaction: Correspondence added by KMX
Queue: PAR-Packer
Subject: 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 >
> As Steffen already wrote: patches welcome.
OK, so I have done more investigation and come to the enclosed patch (it is a
patch for Module::ScanDeps, sorry for posting it here).
With the enclosed patch the content of module/distribution sharedirs is
automatically packed into PAR archive. As far as I was able to test the usage
of File::Sharedir works - there is no need for the special File::Sharedir::PAR.
My patch is just an idea that seems to work splendid for my test cases, however
I do know just a very little about pp / PAR / ScanDeps guts so my patch might
be totally out of concept.
Note1: the patch is against latest SVN trunk
Note2: small testing sample_script.pl
use File::ShareDir 'dist_file';
my $f = dist_file('File-ShareDir', 'sample.txt');
print "FILE=$f\n\n";
print "RESULT=" . ((-f $f) ? "OK" : "FAILED!!!") . "\n\n";
just try (on Win box): pp -o sample_script.exe sample_script.pl
--
kmx
scandeps-sharedir-support.patch
Description: Binary data
