[Rt-commit] rt branch, 4.0/perl-5.19-cgi-deprecation, created. rt-4.0.20-20-g4eabed9
Alex Vandiver
alexmv at bestpractical.com
Tue May 27 13:39:34 EDT 2014
The branch, 4.0/perl-5.19-cgi-deprecation has been created
at 4eabed9f10d3b080cea3eb85d082e13d8967e4e3 (commit)
- Log -----------------------------------------------------------------
commit 4eabed9f10d3b080cea3eb85d082e13d8967e4e3
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Thu Feb 13 16:06:16 2014 -0500
CGI.pm will be removed in 5.22; install from CPAN on 5.20 and up
Perl 5.22 will remove CGI.pm from core; using the installed-from-core
version in perl 5.20 produces warnings. On perl 5.20 and above,
increase the dependency to one that was never provded in core, to force
an install from CPAN.
diff --git a/sbin/rt-test-dependencies.in b/sbin/rt-test-dependencies.in
index 729b0df..d8d3bed 100644
--- a/sbin/rt-test-dependencies.in
+++ b/sbin/rt-test-dependencies.in
@@ -181,6 +181,12 @@ sub text_to_hash {
return %hash;
}
+sub set_dep {
+ my ($name, $module, $version) = @_;
+ my %list = @{$deps{$name}};
+ $list{$module} = ($version || '');
+ $deps{$name} = [ %list ];
+}
$deps{'CORE'} = [ text_to_hash( << '.') ];
Class::Accessor 0.34
@@ -253,6 +259,8 @@ Plack 0.9971
Plack::Handler::Starlet
CGI::Emulate::PSGI
.
+set_dep( PSGI => CGI => 4.00 ) if $] > 5.019003;
+
$deps{'MAILGATE'} = [ text_to_hash( << '.') ];
Getopt::Long
-----------------------------------------------------------------------
More information about the rt-commit
mailing list