Bug 174357 - port ftp/mirror uses disappearing Perl module
Summary: port ftp/mirror uses disappearing Perl module
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 05:40 UTC by Valentin Nechayev
Modified: 2012-12-11 15:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.