[Bug 1143822] New: Do not set default switches in Test::Harness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1143822

            Bug ID: 1143822
           Summary: Do not set default switches in Test::Harness
           Product: Fedora
           Version: 20
         Component: perl-ExtUtils-MakeMaker
          Assignee: ppisar@xxxxxxxxxx
          Reporter: jplesnik@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: mmaslano@xxxxxxxxxx,
                    perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx
            Blocks: 1127476, 1127477



Created attachment 938748
  --> https://bugzilla.redhat.com/attachment.cgi?id=938748&action=edit
Patch with fix

I tried to update perl-Syntax-Highlight-Engine-Kate to version 0.09, but it
failed with following error

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'inc', 'blib/lib', 'blib/arch')" t/*.t

    #   Failed test 'warn'
    #   at t/02-perl.t line 31.
    # found carped warning: undefined language: 'Klingon' at t/02-perl.t line
26.
    # found warning: Use of uninitialized value in concatenation (.) or string
at
/builddir/build/BUILD/Syntax-Highlight-Engine-Kate-0.09/blib/lib/Syntax/Highlight/Engine/Kate/Template.pm
line 499.
    # found carped warning: cannot create plugin for language 'Klingon'
    # expected to find carped warning: (?^:undefined language: 'Klingon')
    # expected to find carped warning: (?^:cannot create plugin for language
'Klingon')
    # Looks like you failed 1 test of 2.
#   Failed test 'klingon'
#   at t/02-perl.t line 33.
[..]    


The source of the issue is old version of perl-ExtUtils-MakeMaker, which allows
to set default switches (e.g. -w) in Test::Harness.
It was fixed at version 6.77_7

commit 37c20b4442e87cb678301cf742604f23a8d30a82
Author:     Ricardo Signes <rjbs@xxxxxxxx>
AuthorDate: Sat Sep 21 10:12:51 2013 +0900
Commit:     Ricardo Signes <rjbs@xxxxxxxx>
CommitDate: Sat Sep 21 10:12:51 2013 +0900

    do not set default switches in Test::Harness; not even -w


New test command generated by updated EU::MM passed.

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/02-perl.t
t/02-perl.t .. ok   
All tests successful.


Fedora 19 is also affected.

The patch works for both (F19 and F20).


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1127476
[Bug 1127476] Please update to upstream version >= 0.09
https://bugzilla.redhat.com/show_bug.cgi?id=1127477
[Bug 1127477] Please update to upstream version >= 0.09
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=zVmtfMnHdi&a=cc_unsubscribe
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux