On 2015-06-26 04:56:15, RSCHUPP wrote:
Show quoted text> OK, time for some code exegesis...
Perhaps the bug is not in PAR::Packer, but rather in Module::ScanDeps
(which is used by PAR::Packer to determine what modules etc to "pack in").
$ scandeps.pl -V eg/foo
# Foo.pm [module]
# Foo/Bar.pm [module]
# foo [data] <--- ???
# Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN
'Foo::Bar' => '0', # ? # Foo
'Foo' => '0', # ? # foo
But when I move foo to the cwd:
$ scandeps.pl -V foo
# Foo.pm [module]
# Foo/Bar.pm [module]
# Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN
'Foo::Bar' => '0', # ? # Foo
'Foo' => '0', # ? # foo
also
$ scandeps.pl -V ./foo
# Foo.pm [module]
# Foo/Bar.pm [module]
# foo [data] <--- ???
# Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN
'Foo::Bar' => '0', # ? # Foo
'Foo' => '0', # ? # foo
The line "# foo [data]" is probably responsible for the spurious zip member lib/foo:
$ pp -o good.exe foo
$ unzip -l good.exe
Archive: good.exe
Length Date Time Name
--------- ---------- ----- ----
0 2015-06-29 21:42 lib/
0 2015-06-29 21:42 script/
455 2015-06-29 21:42 MANIFEST
215 2015-06-29 21:42 META.yml
80 2015-06-29 21:42 lib/Foo.pm
71 2015-06-29 21:42 lib/Foo/Bar.pm
55 2015-06-29 21:42 script/foo
676 2015-06-29 21:42 script/main.pl
--------- -------
1552 8 files
Note: no lib/foo!
To be continued.
Cheers, Roderich