[Rt-commit] rt branch, 4.0/perl-5.19-cgi-deprecation, created. rt-4.0.20-20-gfb1fecb

Alex Vandiver alexmv at bestpractical.com
Tue May 27 13:44:54 EDT 2014


The branch, 4.0/perl-5.19-cgi-deprecation has been created
        at  fb1fecb5943704590268cf2aa0708c3bec96254a (commit)

- Log -----------------------------------------------------------------
commit fb1fecb5943704590268cf2aa0708c3bec96254a
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.
    
    Fixes I#29053.

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