Tue Aug 24 15:52:08 2010: Request 60697 was acted upon.
Transaction: Correspondence added by SMUELLER
       Queue: PAR-Packer
     Subject: Re: [rt.cpan.org #60697] Switch to pp pack only  
architecture-independent (pure-perl) code
   Broken in: (no value)
    Severity: Wishlist
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=60697 >


Hi,

> Tue Aug 24 14:07:40 2010: Request 60697 was acted upon.
> I propose that PAR::Packer be given a switch to strip out
> architecture-dependent (i.e. XS) modules from the dependency inclusion
> list when packing a PAR. If I missed a method of doing this, then please
> direct me to it.

I suggest that you take a look at PAR::Dist::FromCPAN. It can generate
individual .par files for CPAN distributions (and follow dependencies!).
It can also merge the result.

Since you want to exclude XS modules, you may want to skip the merging
bit. Use the automatic detection of XS modules and then delete all
produced .par files that aren't "anyarch". Thereafter, you can merge the
remaining, pure-Perl .par's with, I believe, the merging function of
PAR::Dist.

Obviously, this is easily scripted.

Best regards,
Steffen


Reply via email to