Commit 2b8ade66 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 593887: Perl 5.14 requires HTML::Parser 3.67 and DBI 1.614

r/a=mkanat
parent 9ea6b6d3
...@@ -126,7 +126,7 @@ sub REQUIRED_MODULES { ...@@ -126,7 +126,7 @@ sub REQUIRED_MODULES {
{ {
package => 'DBI', package => 'DBI',
module => 'DBI', module => 'DBI',
version => '1.41' version => (vers_cmp($perl_ver, '5.13.3') > -1) ? '1.614' : '1.41'
}, },
# 2.22 fixes various problems related to UTF8 strings in hash keys, # 2.22 fixes various problems related to UTF8 strings in hash keys,
# as well as line endings on Windows. # as well as line endings on Windows.
...@@ -165,6 +165,7 @@ sub REQUIRED_MODULES { ...@@ -165,6 +165,7 @@ sub REQUIRED_MODULES {
}; };
sub OPTIONAL_MODULES { sub OPTIONAL_MODULES {
my $perl_ver = sprintf('%vd', $^V);
my @modules = ( my @modules = (
{ {
package => 'GD', package => 'GD',
...@@ -273,7 +274,7 @@ sub OPTIONAL_MODULES { ...@@ -273,7 +274,7 @@ sub OPTIONAL_MODULES {
# We need the 'utf8_mode' method of HTML::Parser, for HTML::Scrubber. # We need the 'utf8_mode' method of HTML::Parser, for HTML::Scrubber.
package => 'HTML-Parser', package => 'HTML-Parser',
module => 'HTML::Parser', module => 'HTML::Parser',
version => '3.40', version => (vers_cmp($perl_ver, '5.13.3') > -1) ? '3.67' : '3.40',
feature => ['html_desc'], feature => ['html_desc'],
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment