On 7/19/07, Eric Wilhelm <[EMAIL PROTECTED]> wrote:
>The way MakeMaker traditionally handles a perl prerequisite is by
> sticking "require 5.xxx" at the top of the Makefile.PL.

That's what I was fishing for.

I think we want to keep the current behavior, but print 'require' in the
Makfile.PL.

To be clear -- you're suggesting that M::B::Compat continue to drop
'perl' from the requires list when creating PREREQ_PM, but that if
'perl' is detected in requires, M::B::Compat should add the
appropriate 'require 5.XXXXXX' at the top of the generated
Makefile.PL?

I think that would be excellent and would eliminate the need for
EU::MM to do special handling for 'perl'.  (Well, maybe it should in
case people writing Makefile.PL themselves don't realize they
shouldn't use 'perl'.)

The one detail I'd note is that some distros use dotted decimal
('perl' => '5.8.0') so M::B::Compat should convert that (5.008000) in
a 'require 5.XXXXXX' line for older versions of Perl.

David

Reply via email to