Sat May 15 08:04:59 2010: Request 57494 was acted upon.
Transaction: Correspondence added by roderich.sch...@googlemail.com
       Queue: PAR-Packer
     Subject: Re: [rt.cpan.org #57494] JSON::Any doesn't package in PAR?
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: thakore.kar...@gmail.com
      Status: open
 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.

  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?

- 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) );
    },


Cheers, Roderich

Reply via email to