Bug 174357 - port ftp/mirror uses disappearing Perl module
port ftp/mirror uses disappearing Perl module
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Any Any
: Normal Affects Only Me
Assigned To: Cy Schubert
Depends on:
  Show dependency treegraph
Reported: 2012-12-11 05:40 UTC by netch
Modified: 2012-12-11 15:20 UTC (History)
0 users

See Also:


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


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 ===
Install and start it.
Comment 1 Edwin Groothuis freebsd_committer 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 2012-12-11 15:19:45 UTC
State Changed
From-To: open->closed

Fixed. Thanks for the PR.