On Tue, Jun 11, 2002 at 06:44:18PM +0100, Matt Sergeant wrote:
> Using ExtUtils::AutoInstall is a real pain for smaller modules. I'm using it 
> in the CVS HEAD of AxKit, but I'm not about to use it in anything smaller due 
> to it not being a core module.

This is a reasonable concern, and one that I readily agree with.  Unless
CPANPLUS itself is adopted during perl 5.9.x, and/ot ExtUtils::AutoInstall
is included as well, I wouldn't consider using it for trivial Makefile.PLs.

> and CPANPLUS is obviously broken somewhere, as the right PREREQ_PM is *obviously*
> there.

I'm sorry, but the right PREREQ_PM is not obvious to either human or machines.

When I test this module manually, I get messages like this:

    Warning: prerequisite AxKit::XSP::WebUtils 1.3 not found.
    Writing Makefile for AxKit::XSP::PerForm
    No such module: AxKit::XSP::WebUtils, cannot satisfy dependency in
    CPANPLUS::Internals::Make::_make at Wed Jun 12 05:04:26 2002 at
    /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Make.pm line 209

The CPAN module list, which both CPAN.pm and CPANPLUS.pm are based, does not
contain such module.  So while the 'helpful' message of cpansmoke is way off,
the problem is not with its detection logic (although I agree that CPANPLUS
should detect on the 'No such module' message), but with how CPAN indexing
works:

    CPAN Terminal> f MSERGEANT
        28 AxKit-XSP-WebUtils-1.3_90.tar.gz                       3496 MSERGEANT 
    CPAN Terminal> m AxKit::XSP::WebUtils
    Your search generated no results

Since the only distribution that contains the module has a underscore in its
version string, it's considered "experimental" release and not included in the
module list, rendering it unavailable to CPAN.pm and CPANPLUS users.

Until this convention is changed, IMHO it should be wise to use only non-experimental
versions of modules in the PREREQ_PM list.

Thanks,
/Autrijus/

Attachment: msg37374/pgp00000.pgp
Description: PGP signature

Reply via email to