Subject: | Version checks too strict? |
The following Build.PL works with older Module::Build, but not with the
MB bundled with perl 5.12.0:
#!perl
use Module::Build;
my $builder = Module::Build->new(
name => 'TEST',
module_name => 'TEST',
dist_version => '1.0',
requires => { HTML::Table => '1.0' },
);
$builder->create_build_script;
__END__
With perl 5.8.9 and MB 0.35 I get:
$ perl Build.PL
Checking prerequisites...
Looks good
Creating new 'Build' script for 'TEST' version '1.0'
With perl 5.12.0-RC0 I get:
$ /usr/perl-5.12.0-RC0/bin/perl Build.PL
Version '2.08a' from
/usr/perl-5.12.0-RC0/lib/site_perl/5.12.0/HTML/Table.pm does not appear
to be valid:
BEGIN { q# Hide from _packages_inside()
#; package Module::Build::ModuleInfo::_version::p1;
use Module::Build::Version;
no strict;
local $VERSION;
$VERSION=undef;
$vsub = sub {
$VERSION = '2.08a';;
$VERSION
};
}
The fatal error was: Invalid version format (non-numeric data) at
/usr/perl-5.12.0-RC0/lib/5.12.0/Module/Build/ModuleInfo.pm line 348,
<GEN6> line 6.
I see that there was a version.pm change with lax vs. strict version
numbers. Maybe something around this change is causing that problem?
BTW the real-world module where I encountered the problem was JQuery-1.06
Regards,
Slaven