On Sat, Apr 17, 2010 at 6:31 AM, Douglas Wilson via RT
<bug-PAR-Packer@rt.cpan.org> wrote:
Show quoted text> I applied this patch and reinstalled PAR-Packer:
>
http://rt.cpan.org/Public/Bug/Display.html?id=52794#txn-723440
>
> All tests passed (or skipped), and there was no Archive/Zip.pm error on
> the target systems.
> I can still post the output before and/or after I applied the patch if
> you still want, but the problem appears to be fixed now. Archive/Zip*
> files were not in the pre-patch output, and now there are Archive/Zip*
> files/directories there.
Thanks, not necessary - that just proves that this the same problem
as in #52794.
I commited the above patch to PAR::Packer.
Show quoted text> Though I still had to include --link=libpng3.dll and
> --link=zlib1.dll (which I guess is a separate error). Even after I
> included --link=libpng3.dll, the error about zlib1.dll was while loading
> Tk::PNG, so I guess Module::ScanDeps is not working for Tk::PNG.
That depends on the defintion of "working" :) The problem here is:
(1) Tk::PNG is an XS module, i.e. actually consists of a Perl file,
Tk/PNG.pm, and a correspondig "glue" DLL PNG.dll
(2) PNG.dll references (via the OS-specific shared library mechanism)
the actual libpng3.dll
(3) libpng3.dll in turn references zlib1.dll
Module::ScanDeps only accounts for dependency (1).
If you also want (2) and (3) you would have to implement
highly OS-specific code that
(a) detects shared library references from one shared library to another
(b) mimicks the search for the file a shared library actually lives in
(which is usually referenced only by name, not by path),
so that we may pack it in
Of course, patches welcome :) But seriously, if you know of a Perl module
that does the heavy lifting described above, let me know...
Cheers, Roderich