manwar/Syntax-Highlight-Engine-Kate

0.9: 'warn', 'klingon', 'basecontext' test failures on Amazon Linux AMI release 2014.03

Closed this issue · 2 comments

Hopefully-relevant sections inline:

cpanm (App::cpanminus) 1.7004 on perl 5.016003 built for x86_64-linux-thread-multi
Work directory is /root/.cpanm/work/1406322836.669
You have make /usr/bin/make
You have LWP 6.08
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Syntax::Highlight::Engine::Kate on cpanmetadb ...
--> Working on Syntax::Highlight::Engine::Kate
Fetching http://www.cpan.org/authors/id/S/SZ/SZABGAB/Syntax-Highlight-Engine-Kate-0.09.tar.gz
-> OK
Unpacking Syntax-Highlight-Engine-Kate-0.09.tar.gz
Entering Syntax-Highlight-Engine-Kate-0.09
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (6.68)
Configuring Syntax-Highlight-Engine-Kate-0.09
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Syntax::Highlight::Engine::Kate
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Term::ANSIColor 0 ... Yes (3.01)
Checking if you have ExtUtils::MakeMaker 6.59 ... Yes (6.68)
Checking if you have Data::Dumper 0 ... Yes (2.145)
Checking if you have Carp 0 ... Yes (1.26)
Checking if you have Test::More 1.00 ... Yes (1.001003)
Checking if you have Test::Differences 0.61 ... Yes (0.62)
Checking if you have Test::Warn 0.30 ... Yes (0.30)
Checking if you have File::Basename 0 ... Yes (2.84)
Checking if you have Path::Tiny 0 ... Yes (0.055)
Building and testing Syntax-Highlight-Engine-Kate-0.09
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 /root/.cpanm/work/1406322836.669/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.

    #   Failed test 'warn'
    #   at t/02-perl.t line 45.
    # found carped warning: undefined language: 'PHP (HTML) ' at t/02-perl.t line 40.
    # found warning: Use of uninitialized value in concatenation (.) or string at /root/.cpanm/work/1406322836.669/Syntax-Highlight-Engine-Kate-0.09/blib/lib/Syntax/Highlight/Engine/Kate/Template.pm line 499.
    # found carped warning: cannot create plugin for language 'PHP (HTML) '
    # expected to find carped warning: (?^:undefined language: 'PHP \(HTML\) ')
    # expected to find carped warning: (?^:cannot create plugin for language 'PHP \(HTML\) ')
    # Looks like you failed 1 test of 2.

#   Failed test 'basecontext'
#   at t/02-perl.t line 47.
# Looks like you failed 2 tests of 5.
t/02-perl.t ............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/5 subtests
t/10-case.t ............ ok
t/Kate.t ............... ok
# We don't actually know if these are highlighted correctly, but this
# makes decent regression tests when we refactor.
t/perl_highlighting.t .. ok
t/perl_todo.t .......... ok

Test Summary Report
-------------------
t/02-perl.t          (Wstat: 512 Tests: 5 Failed: 2)
  Failed tests:  4-5
  Non-zero exit status: 2
Files=5, Tests=542, 27 wallclock secs ( 0.08 usr  0.01 sys + 26.84 cusr  0.06 csys = 26.99 CPU)
Result: FAIL
Failed 1/5 test programs. 2/542 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing Syntax::Highlight::Engine::Kate failed. See /root/.cpanm/work/1406322836.669/build.log for details. Retry with --force to force install it.

I got the same error and I found out that problem was related to the old version of ExtUtils::MakeMaker.
Your version is 6.68 and it was fixed at 6.77_7 by following commit
Perl-Toolchain-Gang/ExtUtils-MakeMaker@37c20b4

Thx for the tip! No longer using this to confirm, but I'll go ahead and close.