Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 22574
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: smueller [...] cpan.org
Requestors: RSCHUPP [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.957
Fixed in: (no value)



While investigating a Module::Scandeps bug (#22573) it appears that the following are not equivalent (i.e. pack the same modules into foo.exe): pp -o foo.exe -M Foo -e 1 # (1) pp -o foo.exe 'use Foo; 1' # (2) when using Foo.pm: package Foo; 1; and Bar.pm: package Bar; 1; and the following addition to %Preload in Module/ScanDeps.pm: 'Foo.pm' => [qw( Bar.pm )], In case (1) foo.exe contains only Foo.pm, while for (2) it contains both Foo.pm and Bar.pm. Note that when I add "use Bar;" in Foo.pm (without any change to Module/ScanDeps.pm) it works as expected in both cases. Looks like Foo.pm is scanned in (1) and (2), but the implications of %Preload are only applied for (2). This could either be a problem with Module::ScanDeps or how it is used by PAR (pp).
On Mi. 25. Okt. 2006, 10:48:53, RSCHUPP wrote: Show quoted text
> While investigating a Module::Scandeps bug (#22573) it appears > that the following are not equivalent (i.e. pack the same > modules into foo.exe): > > pp -o foo.exe -M Foo -e 1 # (1) > pp -o foo.exe 'use Foo; 1' # (2)
[...] Fixed in the subversion repository. Needed changes in both Module::ScanDeps and PAR. M::SD on its way to CPAN. Won't make a PAR release just for this, though. Steffen