Bug 25357

Summary: pkg_update won't work under STABLE since warnings.pm isn't supported in Perl 5.00%, only 5.6
Product: Base System Reporter: gabriel_ambuehl <gabriel_ambuehl>
Component: miscAssignee: Paul Richards <paul>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description gabriel_ambuehl 2001-02-25 18:00:01 UTC
The newly introduced pkg_update utility (which I really would like to use) doesn't work under Perl 5.005 since that one hasn't got warnings.pm. CPAN lists it as standard module for =>5.6 but not for 5.005:
http://search.cpan.org/search?mode=module&query=warnings

Fix: 

My 5 Current box lies down, so I can't test it just now. Might be enough to integrate warnings.pm into 4-STABLE.
How-To-Repeat: Take a 4.2 STABLE box after the commit of pkg_update and try to start pkg_update:
$ pkg_update
Can't locate warnings.pm in @INC (@INC contains: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 .) at /usr/sbin/pkg_update line 32.
BEGIN failed--compilation aborted at /usr/sbin/pkg_update line 32.
Comment 1 Bruce A. Mah freebsd_committer freebsd_triage 2001-04-03 16:38:04 UTC
State Changed
From-To: open->closed

PR 25302 contained a fix, committed 2001/03/16 by paul. 


Comment 2 Bruce A. Mah freebsd_committer freebsd_triage 2001-04-03 16:38:04 UTC
Responsible Changed
From-To: freebsd-bugs->paul

paul wrote pkg_update.