Subject: | Build.PL Broken |
Date: | Tue, 22 Feb 2011 11:10:22 -0800 |
To: | bug-Text-MediawikiFormat [...] rt.cpan.org |
From: | "David E. Wheeler" <dwheeler [...] cpan.org> |
The Text-MediawikiFormat Build.PL is broken:
Show quoted text
> perl Build.PL
Invalid metadata structure. Errors: '' for 'URI' is not a valid version. (prereqs -> runtime -> requires -> URI) [Validation: 2], '' for 'URI::Escape' is not a valid version. (prereqs -> runtime -> requires -> URI::Escape) [Validation: 2], '' for 'HTML::Parser' is not a valid version. (prereqs -> runtime -> recommends -> HTML::Parser) [Validation: 2], '' for 'HTML::Tagset' is not a valid version. (prereqs -> runtime -> recommends -> HTML::Tagset) [Validation: 2]
at /usr/local/lib/perl5/5.12.2/Module/Build/Base.pm line 1934
Here's the fix:
--- a/Build.PL
+++ b/Build.PL
@@ -36,14 +36,14 @@ my $build = $class->new(
requires =>
{
'Scalar::Util' => '1.14',
- 'URI' => '',
- 'URI::Escape' => '',
+ 'URI' => 0,
+ 'URI::Escape' => 0,
'version' => '0.74',
},
recommends =>
{
- 'HTML::Parser' => '',
- 'HTML::Tagset' => '',
+ 'HTML::Parser' => 0,
+ 'HTML::Tagset' => 0,
},
build_requires =>
{
Best,
David