Bug 32817

Summary: Base system includes outdated CGI module
Product: Base System Reporter: Dag-Erling Smorgrav <des>
Component: binAssignee: Anton Berezin <tobez>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   

Description Dag-Erling Smorgrav 2001-12-14 00:10:01 UTC
The base system Perl includes an outdated version of the CGI module which
overrides the one installed from ports, so applications which require
newer versions of the CGI module cannot run on -CURRENT.

Fix: 

Do not install the CGI module with the base system.
How-To-Repeat: 
# porteasy -ku www/p5-CGI.pm
# pkg_info -L p5-CGI.pm-2.753  | grep Cookie
/usr/local/lib/perl5/5.6.0/man/man3/CGI::Cookie.3.gz
/usr/local/lib/perl5/site_perl/5.6.0/CGI/Cookie.pm
# grep VERSION /usr/local/lib/perl5/site_perl/5.6.0/CGI/Cookie.pm
$CGI::Cookie::VERSION='1.20';
# perl -e 'use CGI::Cookie 1.20'
CGI::Cookie version 1.2 required--this is only version 1.12 at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
# perl -e 'use CGI::Cookie; print "$CGI::Cookie::VERSION\n"'
1.12
# find /usr/src/contrib/perl5 -name Cookie.pm
/usr/src/contrib/perl5/lib/CGI/Cookie.pm
# grep VERSION /usr/src/contrib/perl5/lib/CGI/Cookie.pm
$CGI::Cookie::VERSION='1.12';
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2001-12-30 12:34:36 UTC
Responsible Changed
From-To: freebsd-bugs->tobez

Anton has a plan for handling base system modules and ports modules 
sanely, but the rest of us don't really know about it. :-)
Comment 2 Anton Berezin freebsd_committer freebsd_triage 2002-06-17 21:08:05 UTC
State Changed
From-To: open->closed

The @INC order was changed both in lang/perl5 port and in the -stable 
base system perl.  www/p5-CGI.pm should do the trick now.