Hi Roderich,
Roderich Schupp via RT wrote:
Show quoted text> Queue: PAR-Packer
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=57494 >
>
> Following up on my previous post:
>
> - JSON::XS needs "attributes.pm" which can't be autodetected.
> We could add a special rule to Module::ScanDeps for this.
Ah, another one of those ugly implicit dependencies.
Show quoted text> But as it turns out, "attributes.pm" is another one of those modules
> that might be implicitly require'd by the Perl runtime itself
> (like "Errno.pm" or "PerlIO.pm"), I'm inclined to add it to the
> list of "always pack" modules (cf. sub require_modules
> in PAR-Packer/script/par.pl).
>
> @Steffen: What do you think?
I don't think have have a choice other than to do that.
Show quoted text> - JSON needs a special rule in Module::ScanDeps to add all of
>
> JSON/PP.pm
> JSON/PP5005.pm
> JSON/PP58.pm
> JSON/PP
> JSON/PP/Boolean.pm
> JSON/PP56.pm
>
> This will do the trick:
>
> 'JSON.pm' => sub {
> # ignore other JSON::* modules (e.g. JSON::Syck, JSON::Any),
> # but accept JSON::XS (because JSON.pm might use it if present)
> return( grep /^JSON\/(PP|XS)/, _glob_in_inc('JSON', 1) );
> },
This looks correct.
Best regards,
Steffen