Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614124 - app-text/po4a-0.45-r3 Unescaped left brace in regex is illegal in Sgml.pm ( on Perl 5.26 )
Summary: app-text/po4a-0.45-r3 Unescaped left brace in regex is illegal in Sgml.pm ( ...
Status: RESOLVED DUPLICATE of bug 604428
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Fat-Zer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.26
  Show dependency tree
 
Reported: 2017-03-28 08:10 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2017-03-28 08:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,10.94 KB, text/plain)
2017-03-28 08:10 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-03-28 08:10:02 UTC
Created attachment 468500 [details]
build.log

This will be a real runtime bug in code that uses Sgml.pm, as exposed by a test-time "can load our own files" test:

>>> Test phase: app-text/po4a-0.45-r3
t/01-classes.t ........ ^Mt/01-classes.t ........ 1/14
#   Failed test 'Sgml.pm loadable'
#   at t/01-classes.t line 27.
# Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/<!--{ <-- HERE PO4A-ent-beg-(.*?)}(.*?){PO4A-ent-end}-->/ at /var/tmp/portage/app-text/po4a-0.45-r3/work/po4a-0.45/blib/lib/Locale/Po4a/Sgml.pm line 675.
# Compilation failed in require at (eval 24) line 1.
# BEGIN failed--compilation aborted at (eval 24) line 1.
# Looks like you failed 1 test of 14.
^M                               ^Mt/01-classes.t ........ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/14 subtests

t/20-sgml.t ........... 1/4
#   Failed test 'gettextize well simple xml documents runs'
#   at t/20-sgml.t line 44.
# perl ../po4a-gettextize -f sgml -o force -m data-20/text.xml -p tmp/xml.po
Unknown format type: sgml.


#   Failed test 'normalisation test runs'
#   at t/20-sgml.t line 44.
# cd tmp && perl ../../po4a-normalize -f sgml ../data-20/test2.sgml
# Looks like you failed 2 tests of 4.
^M                             ^Mt/20-sgml.t ........... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/4 subtests
        (less 2 skipped subtests: 0 okay)

t/24-tex.t ............ ^Mt/24-tex.t ............ 1/8
#   Failed test 'gettextize well a simple tex document runs'
#   at t/24-tex.t line 49.
# LC_ALL=C COLUMNS=80 perl ../po4a-gettextize -f latex -m data-24/simple.tex -p tmp/simple.pot > tmp/simple-gettextize.out 2>&1

#   Failed test 'updatepo for this document runs'
#   at t/24-tex.t line 49.
# cp data-24/simple.fr.po tmp/ && chmod u+w tmp/simple.fr.po && LC_ALL=C COLUMNS=80 perl ../po4a-updatepo -f latex -m data-24/simple.tex -p tmp/simple.fr.po > tmp/simple-updatepo.out 2>&1

#   Failed test 'translate this document runs'
#   at t/24-tex.t line 49.
# LC_ALL=C COLUMNS=80 perl ../po4a-translate -f latex -m data-24/simple.tex -p data-24/simple.fr.po -l tmp/simple.fr.tex > tmp/simple-translate.out 2>&1
# Looks like you failed 3 tests of 8.
^M                             ^Mt/24-tex.t ............ Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/8 subtests
        (less 3 skipped subtests: 2 okay)
Comment 1 Fat-Zer 2017-03-28 08:19:34 UTC
Isn't it a duplicate of bug #604428?
Does it goes fine for 0.47?

I'm about to request the 0.47 stabilization to actually resolve this...
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-03-28 08:32:44 UTC
(In reply to Fat-Zer from comment #1)
> Isn't it a duplicate of bug #604428?
> Does it goes fine for 0.47?
> 
> I'm about to request the 0.47 stabilization to actually resolve this...

Yeah. Looks like it. Only thing I had to do with 0.47 was side-step bug #614122 with the PERL_USE_UNSAFE_INC=1 temporary workaround.

*** This bug has been marked as a duplicate of bug 604428 ***