Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 524218

Summary: dev-lang/perl-5.20.1 emits warnings about "CGI will be removed..." - need dev-perl/CGI* ebuilds
Product: Gentoo Linux Reporter: Hank Leininger <hlein>
Component: [OLD] DevelopmentAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 511590    

Description Hank Leininger 2014-10-01 17:23:20 UTC
After upgrading to perl 5.20.1, running some existing code & modules that 'use CGI' get "CGI will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at... [my module path]".  There is a similar complaint about CGI::Util, emitted by /usr/lib64/perl5/5.20.1/CGI.pm

I haven't actually tried running these CGIs through a webserver; it could be that those warnings will go to STDERR at runtime, and if that happens before the Content-Type: header is printed, httpd might regard that as a failure and return a 500 error code.

I guess we need separate dev-perl/CGI ebuild(s) that install CPAN versions.

The list of recently deprecated modules seems to be:

foo /usr/lib/perl5 # find . -type f -print0 | xargs -0 egrep "if \\$] >= 5.019, 'deprecate'"
./5.20.1/Module/Build.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Push.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Switch.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Fast.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Cookie.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Util.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Apache.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Carp.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI/Pretty.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/inc/latest/private.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/inc/latest.pm:use if $] >= 5.019, 'deprecate';
./5.20.1/CGI.pm:use if $] >= 5.019, 'deprecate';

Of those CGI/ ones, I see most are contained in the main CGI module except for:

CGI::Apache
CGI::Fast
CGI::Switch


Reproducible: Always

Steps to Reproduce:
1. emerge perl-5.20
2. Run some code that uses CGI or one of the mentioned CGI::Foo modules
3. Get the errors
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2014-10-02 14:11:39 UTC
Ack. We know. Will be done soon.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2014-10-08 22:36:07 UTC
+*perl-CGI-3.650.0-r1 (08 Oct 2014)
+
+  08 Oct 2014; Andreas K. Huettel <dilfridge@gentoo.org>
+  -perl-CGI-3.650.0.ebuild, +perl-CGI-3.650.0-r1.ebuild:
+  Bump virtual to enforce perl-core package in 5.20 (otherwise we get
+  deprecation warnings), bug 524218
+