Subject: | Issue with modules that have '>' or '>=' in requires |
Date: | Tue, 16 Nov 2010 18:04:54 -0500 |
To: | "bug-App-cpanminus [...] rt.cpan.org" <bug-App-cpanminus [...] rt.cpan.org> |
From: | Chris Simmons <chris.simmons [...] sophos.com> |
Hi there,
When trying to install version (http://search.cpan.org/~jpeacock/version-0.82/) on FreeBSD with Perl 5.10, I hit the following problem:
Invalid version format (non-numeric data) at /loader/0x483709a0/App/cpanminus/script.pm line 938.
After some experimentation, it looks like the problem is the Build.PL of version, which has a requires block like this:
requires => {
perl => '> 5.005',
'Test::More' => '>= 0.45',
'File::Temp' => '>= 0.13',
},
If I remove the ">=" from Test::More and File::Temp, everything works fine. It doesn't seem to mind the '>' in the perl line, but it still blows up if I replace ">=" with ">" in the Test::More line. The >= characters in META.yml don't seem to affect anything.
Let me know if you have any questions about my reproduction steps.
Chris Simmons
Development Manager, Email Gateway
email: chris.simmons@sophos.com<mailto:chris.simmons@sophos.com>
tel: 1-604-484-4325
SOPHOS - simply secure