Skip Menu |

This queue is for tickets about the ExtUtils-AutoInstall CPAN distribution.

Report information
The Basics
Id: 113923
Status: new
Priority: 0/
Queue: ExtUtils-AutoInstall

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.63
Fixed in: (no value)



Subject: t/1-basic.t test fails with ExtUtils::MakeMaker-7.12: Bareword "Symbol::gensym" not allowed while "strict subs"
t/1-basic.t test fails after upgrading ExtUtils-MakeMaker from 7.10 to 7.12: PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/1-basic.t Bareword "Symbol::gensym" not allowed while "strict subs" in use at t/1-basic.t line 25. Execution of t/1-basic.t aborted due to compilation errors. t/1-basic.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 6/6 subtests This can be reduced to: perl -w -e 'use strict; use ExtUtils::MakeMaker; require Symbol; my $a = Symbol::gensym' This passes with 7.10, fails with 7.12. See code without using ExtUtils::MakeMaker: $ perl -w -e 'use strict; require Symbol; my $a = Symbol::gensym' Bareword "Symbol::gensym" not allowed while "strict subs" in use at -e line 1. Execution of -e aborted due to compilation errors. It looks like EU::MM 7.12 stopped disabling "strict subs" warning.
From: ppisar [...] redhat.com
Dne Pá 22.dub.2016 07:39:01, ppisar napsal(a): Show quoted text
> t/1-basic.t test fails after upgrading ExtUtils-MakeMaker from 7.10 to > 7.12: > > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'inc', 'blib/lib', 'blib/arch')" t/1-basic.t > Bareword "Symbol::gensym" not allowed while "strict subs" in use at > t/1-basic.t line 25. > Execution of t/1-basic.t aborted due to compilation errors. > t/1-basic.t .. > Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 6/6 subtests >
Fix is atteched. -- Petr
Subject: ExtUtils-AutoInstall-0.63-Fix-tests-with-ExtUtils-MakeMaker-7.12.patch
From 86e1abc218fb35de7fc7bc58ed19cded39fba8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> Date: Fri, 22 Apr 2016 13:50:24 +0200 Subject: [PATCH] Fix tests with ExtUtils-MakeMaker-7.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since EU::MM 7.12, strict subs are in effect resulting in this test failure: [test@fedora-25 ExtUtils-AutoInstall-0.63]$ perl -Ilib t/1-basic.t 1..6 Bareword "Symbol::gensym" not allowed while "strict subs" in use at t/1-basic.t. Execution of t/1-basic.t aborted due to compilation errors. This parch changes how Symbol module is loaded to silent the warning / compile time error. CPAN RT#113923 Signed-off-by: Petr Písař <ppisar@redhat.com> --- t/1-basic.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/1-basic.t b/t/1-basic.t index 8718c43..00ffbd9 100644 --- a/t/1-basic.t +++ b/t/1-basic.t @@ -21,7 +21,7 @@ sub PRINTF { my $self = shift; $$self .= sprintf(shift, @_); } sub TIEHANDLE { my $self = ''; return bless \$self, shift; } sub READ {} sub READLINE {} sub GETC {} sub FILENO {} -require Symbol; +use Symbol (); my $fh = Symbol::gensym; my $out = tie *$fh, __PACKAGE__; select(*$fh); -- 2.5.5