develooper Front page | perl.module.build | Postings from April 2007

Re: Adding configure_requires to META.yml

Thread Previous | Thread Next
From:
Eric Wilhelm
Date:
April 17, 2007 22:51
Subject:
Re: Adding configure_requires to META.yml
Message ID:
200704172251.14935.ewilhelm@cpan.org
# from Adam Kennedy
# on Sunday 18 March 2007 04:28 am:

>> Also - what happens if a user has an old CPAN, an old M::B, and
>> downloads a META.yml containing a configure_requires entry?
>>  Presumably that entry would be ignored and the user would miss the
>> dependency altogether.

>There is no graceful way to deal with this.
...
>As for putting something in the Build.PL... yes, I guess, but it would 
>be big, ugly, and stuck at the top of the Build.PL scripts for several 
>years.

What about:
  use Module::Build 0.29;

It's not particularly graceful, but I would hope it would be obvious 
enough what needed to be done.  When computer says:

  Module::Build version y.yy required--this is only version x.xx

even call-center-grade troubleshooting guides instruct the user to 
install version y.yy.  Maybe it's not always that easy?

Anyway, it's "I told you once" if configure_requires is in the META.yml, 
so detonation seems warranted.  Once one passes the "bridge out" sign, 
things get more complicated.

As for dragging older CPAN.pm's out of the stone age, I suppose we could 
try to detect what CPAN*.pm version was installing M::B and very, very 
loudly recommend an upgrade?

--Eric
-- 
"Everything goes wrong all at once."
--Quantized Revision of Murphy's Law
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About