in reply to own search.cpan.org

Check out cpan2dist as an alternative.

Replies are listed 'Best First'.
Re^2: own search.cpan.org
by svenXY (Deacon) on Mar 19, 2009 at 11:23 UTC
    Hi,

    thanks for all the suggestions. cpan2dist (which - for reference - comes with CPANPLUS) seemd to be the best choice as it saves me the hassle of creating all those indices...

    But unfortunately, I run into this error:

    # cpan2dist --format CPANPLUS::Dist::RPM --skiptest Net::Ping [MSG] No '/root/.cpanplus/custom-sources' dir, skipping custom sources [MSG] dry-run prepare with makemaker... Running [/usr/bin/perl /usr/bin/cpanp-run-perl /root/.cpanplus/5.8.8/b +uild/Net-Ping-2.35/Makefile.PL ]... Writing Makefile for Net::Ping [MSG] writing specfile for 'CPANPLUS::Dist::RPM=HASH(0x81b8330)->distn +ame'... [MSG] specfile for 'Net-Ping' written [MSG] dry-run build with makemaker... [MSG] Module 'Net::Ping' depends on 'Test', may need to build a 'CPANP +LUS::Dist::RPM' package for it as well [MSG] Building 'Net-Ping' from specfile /usr/src/redhat/perl-Net-Ping. +spec... Dist creation of 'Net::Ping' failed: 'Can't locate object method "spec +path" via package "CPANPLUS::Dist::RPM" at /usr/lib/perl5/site_perl/5.8.8/CPANPLUS/Dist/RPM.pm line 338. ' at /usr/bin/cpan2dist line 372.
    of which I do not know how to proceed. I did a full install of Bundle::CPANPLUS and of CPANPLUS::Dist::RPM.

    I have the strong feeling that it is already wrong where it says CPANPLUS::Dist::RPM=HASH(0x81b8330)->distname, but I am not skilled enough to know how to proceed from there...


    Regards,
    svenXY

      Got a similar result on my machine:

      > cpan2dist --format CPANPLUS::Dist::RPM --skiptest Net::Ping [MSG] No '/mnt/a/holger/.cpanplus/custom-sources' dir, skipping custom + sources [MSG] No '/mnt/a/holger/.cpanplus/custom-sources' dir, skipping custom + sources [MSG] No '/mnt/a/holger/.cpanplus/custom-sources' dir, skipping custom + sources [MSG] dry-run prepare with makemaker... Running [/usr/local/bin/perl /usr/local/bin/cpanp-run-perl /mnt/a/holg +er/.cpanplus/5.8.8/build/Net-Ping-2.35/Makefile.PL ]... Checking if your kit is complete... Looks good Writing Makefile for Net::Ping [MSG] writing specfile for 'CPANPLUS::Dist::RPM=HASH(0x50c0790)->distn +ame'... [MSG] specfile for 'Net-Ping' written [MSG] dry-run build with makemaker... [MSG] Module 'Net::Ping' depends on 'Test', may need to build a 'CPANP +LUS::Dist::RPM' package for it as well [MSG] Building 'Net-Ping' from specfile /mnt/a/holger/perl/perl-Net-Pi +ng.spec... [ERROR] Failed to create RPM package for 'Net-Ping': error: bad date i +n %changelog: Fr Mär 20 2009 %{packager} 2.35-0 [ERROR] Unable to create a new distribution object for 'Net::Ping' -- +cannot continue

      Contacting the author of CPANPLUS::Dist::RPM might be a good idea

        Hi,
        Contacting the author of CPANPLUS::Dist::RPM might be a good idea - yep, did that, no reply so far...

        I also looked at the code of this module and did some debugging:

      • 'writing specfile for 'CPANPLUS::Dist::RPM=HASH(0x50c0790)->distname'' is only an output error
      • the main problem (for me) is that the module does not honour the --skiptest parameter. As I'm behind firewalls, they fail (for Net::Ping). Other modules with no tests that require internet connectivity get built fine. But this is still a nuisance.

        Regards,
        svenXY