generating ignore lists for cpan2dist

TeeJay on 2007-05-17T16:27:54

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?


to be used by CPAN::Porters?

gabor on 2007-05-18T12:20:12

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

Re:to be used by CPAN::Porters?

TeeJay on 2007-05-19T18:38:42

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.