Bug 174357

Summary: port ftp/mirror uses disappearing Perl module
Product: Ports & Packages Reporter: Valentin Nechayev <netch>
Component: Individual Port(s)Assignee: Cy Schubert <cy>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Valentin Nechayev 2012-12-11 05:40:00 UTC
When running mirror under Perl 5.14, the latter complains:

Legacy library timelocal.pl will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at /usr/local/lib/mirror/dateconv.pl, line 50.

Fix: 

Add the patch:

=== cut here ===
--- dateconv.pl
+++ dateconv.pl
@@ -47,7 +47,7 @@
 }
 
 
-require 'timelocal.pl';
+use Time::Local qw(timelocal timegm);
 package dateconv;
 
 # Use timelocal rather than gmtime.
=== end cut ===
How-To-Repeat: 
Install and start it.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-11 05:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cy

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2012-12-11 15:19:45 UTC
State Changed
From-To: open->closed

Fixed. Thanks for the PR.