Skip Menu |

This queue is for tickets about the Test-LectroTest CPAN distribution.

Report information
The Basics
Id: 66114
Status: resolved
Priority: 0/
Queue: Test-LectroTest

People
Owner: tom [...] moertel.com
Requestors: MXEY [...] cpan.org
Cc: 614872 [...] bugs.debian.org
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.3600
Fixed in: 0.5001



CC: 614872 [...] bugs.debian.org
Subject: Deprecation warning with Perl 5.12
The following bug has been reported in Debian at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614872 From perl5120delta.pod, which lists significant changes with Perl 5.12.0: The method C<< UNIVERSAL->import() >> is now deprecated. Attempting to pass import arguments to a C<use UNIVERSAL> statement will result in a deprecation warning. From my build log on i386 with perl 5.12.3-1 from experimental: UNIVERSAL->import is deprecated and will be removed in a future perl at /build/dom-libtest-lectrotest-perl_0.3600-1-i386-r7hdZ4/libtest-lectrotest-perl-0.3600/blib/lib/Test/LectroTest/TestRunner.pm line 6
Patch supplied On Thu Feb 24 05:10:22 2011, MXEY wrote: Show quoted text
> The following bug has been reported in Debian at > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614872 > > From perl5120delta.pod, which lists significant changes with Perl > 5.12.0: > > The method C<< UNIVERSAL->import() >> is now deprecated. Attempting > to > pass import arguments to a C<use UNIVERSAL> statement will result in > a > deprecation warning. > > From my build log on i386 with perl 5.12.3-1 from experimental: > > UNIVERSAL->import is deprecated and will be removed in a future perl > at > /build/dom-libtest-lectrotest-perl_0.3600-1-i386-r7hdZ4/libtest- > lectrotest-perl-0.3600/blib/lib/Test/LectroTest/TestRunner.pm > line 6
Subject: universal.patch
Author: Nicholas Bamber <nicholas@periapt.co.uk> Subject: UNIVERSAL->import deprecated in perl 5.12 Last-Update: 2011-05-11 Bug: http://rt.cpan.org/Ticket/Display.html?id=66114 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614872 --- a/lib/Test/LectroTest/TestRunner.pm +++ b/lib/Test/LectroTest/TestRunner.pm @@ -2,9 +2,7 @@ use strict; use warnings; - -use UNIVERSAL qw( isa ); - +use Scalar::Util qw(blessed); use Carp; use Data::Dumper; @@ -399,7 +397,9 @@ =cut -sub _prop($) { isa $_[0], "Test::LectroTest::Property" } +sub _prop($) { + return blessed $_[0] && $_[0]->isa("Test::LectroTest::Property"); +} sub run_suite { local $| = 1;
Subject: Bug#614872: Info received ([rt.cpan.org #66114] Deprecation warning with Perl 5.12 )
Date: Thu, 12 May 2011 07:45:03 +0000
To: bug-Test-LectroTest [...] rt.cpan.org
From: owner [...] bugs.debian.org (Debian Bug Tracking System)
Thank you for the additional information you have supplied regarding this Bug report. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> nicholas@periapt.co.uk If you wish to submit further information on this problem, please send it to 614872@bugs.debian.org. Please do not send mail to owner@bugs.debian.org unless you wish to report a problem with the Bug-tracking system. -- 614872: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614872 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
On Thu May 12 03:45:20 2011, 614872@bugs.debian.org wrote: Show quoted text
> Thank you for the additional information you have supplied regarding > this Bug report. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org> > nicholas@periapt.co.uk > > If you wish to submit further information on this problem, please > send it to 614872@bugs.debian.org. > > Please do not send mail to owner@bugs.debian.org unless you wish > to report a problem with the Bug-tracking system. >
Thanks for the report and the patch! This problem should be fixed in release 0.5001, now on CPAN. Commit: https://github.com/tmoertel/LectroTest/commit/2c448bac0bbc301b500639d7c702bf2935ec4742 Cheers, Tom