Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TeeJay (2309)

TeeJay
  (email not shown publicly)
http://www.aarontrevena.co.uk/

Working in Truro
Graduate with BSc (Hons) in Computer Systems and Networks
pm : london.pm, bath.pm, devoncornwall.pm
lug : Devon & Cornwall LUG
CPAN : TEEJAY [cpan.org]
irc : TeeJay
skype : hashbangperl
livejournal : hashbangperl [livejournal.com]
flickr :hashbangperl [flickr.com]

Journal of TeeJay (2309)

Thursday May 17, 2007
11:27 AM

generating ignore lists for cpan2dist

[ #33300 ]

cpan2dist is pretty cool, but it still lacks some really useful features.

I'd like to ignore core modules for a given perl version (i.e. that of the server I'll be deploying to) and those provided by debian. Ideally it could ignore modules by version number too, but that's just the icing on the cake.

anyway to get around this I've written a script that will produce an ignore file suitable for cpan2dist and takes arguments to point it at a dpkg available file, whether to include core perl modules, the version of perl to get the core modules for and filenames for input and output files. The ignore files it generates also include the version number of each module - cpan2dist will ignore that, but it can be handy if you need to check later on.

So is anybody interested in this script or is it only useful to me?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I was very surprised and happy to see this script - is this part of CPANPLUS? - as I am trying to improve the availability of CPAN modules in the various distros.

    Do I understand correctly that this could help me?

    See my pot about this here [mail-archive.com]

    --
    • cpan2dist is part of CPANPLUS and CPANPLUS::Dist::Deb is a seperate package which you can use to build debian packages with cpan2dist.

      One problem I found was that many packages leave their t/ dir in a different state after the tests have run which causes errors in the debian build and you have to build the .deb binary manually.

      --

      @JAPH = qw(Hacker Perl Another Just);
      print reverse @JAPH;