ports/174357: port ftp/mirror uses disappearing Perl module
Valentin Nechayev
netch at netch.kiev.ua
Tue Dec 11 05:40:01 UTC 2012
>Number: 174357
>Category: ports
>Synopsis: port ftp/mirror uses disappearing Perl module
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 11 05:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Valentin Nechayev
>Release: FreeBSD 8.3-RELEASE-p3 i386
>Organization:
private
>Environment:
FreeBSD 8.3
Perl 5.14
>Description:
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.
>How-To-Repeat:
Install and start it.
>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 ===
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list