Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Mar 2006 15:16:09 +0100 (CET)
From:      Lars Thegler <lth@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        tobez@FreeBSD.org
Subject:   ports/94926: [PATCH] devel/p5-Time-Piece: Silence 'redefined' warnings
Message-ID:  <20060325141610.16E683F65@dask.thegler.dk>
Resent-Message-ID: <200603251420.k2PEKCkV080514@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94926
>Category:       ports
>Synopsis:       [PATCH] devel/p5-Time-Piece: Silence 'redefined' warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 25 14:20:12 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Lars Thegler
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD dask.thegler.dk 4.11-STABLE FreeBSD 4.11-STABLE #6: Thu Dec 30 14:06:09 CET 2004
>Description:

Time::Piece boldly redefines gmtime and localtime. If these are
already redefined, Time::Piece throws fugly warnings:

--cut--
Subroutine Class::DBI::mysql::localtime redefined at /usr/local/lib/perl5/site_perl/5.8.8/mach/Time/Piece.pm line 124.
Subroutine Class::DBI::mysql::gmtime redefined at /usr/local/lib/perl5/site_perl/5.8.8/mach/Time/Piece.pm line 124.
--cut--

This patch has also been sent upstream:

 http://rt.cpan.org//Ticket/Display.html?id=18358

Added file(s):
- files/patch-Piece.pm

Port maintainer (tobez@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- p5-Time-Piece-1.09_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/p5-Time-Piece/Makefile,v
retrieving revision 1.6
diff -u -u -r1.6 Makefile
--- Makefile	14 Feb 2006 08:36:23 -0000	1.6
+++ Makefile	25 Mar 2006 14:11:30 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	Time-Piece
 PORTVERSION=	1.09
+PORTREVISION=	1
 CATEGORIES=	devel perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	Time
Index: files/patch-Piece.pm
===================================================================
RCS file: files/patch-Piece.pm
diff -N files/patch-Piece.pm
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-Piece.pm	25 Mar 2006 14:11:30 -0000
@@ -0,0 +1,10 @@
+--- ./Piece.pm.orig	Sun Feb 26 20:49:20 2006
++++ ./Piece.pm	Sun Feb 26 20:49:50 2006
+@@ -121,6 +121,7 @@
+   for my $method (@methods) {
+     if (exists $_special_exports{$method}) {
+       no strict 'refs';
++      no warnings 'redefine';
+       *{$to . "::$method"} = $_special_exports{$method}->($class);
+     } else {
+       $class->SUPER::export($to, $method);
--- p5-Time-Piece-1.09_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060325141610.16E683F65>