Subject: | 'version' is not supported by Module::Build::Compat - should not apply to 'perl'. |
The requires->{perl} entry should not be tested by _simple_prereq(), as it is not being passed to PREREQ_PM
. It is only being used in the
require VERSION; line of Makefile.PL.
versions like 'v5.10.1' will work fine there if the perl version is new enough.
- Module::Build::Compat will now die with an error if advanced, non-numeric prerequisites are given, as these are not supported by ExtUtils::MakeMaker in PREREQ_PM
I am also a little concerned that '5.6.0' is being converted to 'v5.6.0' in the generated META.yml file. I would think it would be better to let the author use the version string that they think is best. This breaks Test-YAML-Meta-0.11, at it will take '1.1.1' but not 'v1.1.1'.
Subject: | Module-Build-0.3601.patch |
--- Module-Build-0.3601/lib/Module/Build/Compat.pm.orig 2010-01-05 08:41:07.000000000 -0500
+++ Module-Build-0.3601/lib/Module/Build/Compat.pm 2010-01-05 15:22:59.000000000 -0500
@@ -76,6 +76,7 @@
# validate formats
for my $p ( $req, $breq ) {
for my $k (keys %$p) {
+ next if $k eq 'perl';
die "Prereq '$p->{$k}' for '$k' is not supported by Module::Build::Compat\n"
unless _simple_prereq($p->{$k});
}