Skip Menu |

This queue is for tickets about the Time-Piece CPAN distribution.

Report information
The Basics
Id: 18358
Status: resolved
Priority: 0/
Queue: Time-Piece

People
Owner: Nobody in particular
Requestors: LTHEGLER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.08
Fixed in: (no value)



Subject: [PATCH] 'redefined' warnings
There seem to be some collision between Class::DBI::mysql and Time::Piece: --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. 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-- The attached patch avoids this. The patch is against 1.09. /Lars PS: Strange... filling in this form, I find that the RT field 'Broken in' does not contain version number '1.09'. It's been over a month since 1.09 was released, so one would think that RT had caught up by now...
Subject: patch-Piece.pm
--- ./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);
On Sat Mar 25 09:04:18 2006, LTHEGLER wrote: Show quoted text
> There seem to be some collision between Class::DBI::mysql and Time::Piece: > > --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. > 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-- > > The attached patch avoids this. The patch is against 1.09. > > /Lars > > PS: Strange... filling in this form, I find that the RT field 'Broken > in' does not contain version number '1.09'. It's been over a month since > 1.09 was released, so one would think that RT had caught up by now...
Applied, thanks.