Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 586886 - dev-libs/libxml2-2.9.4 makes dev-perl/XML-LibXML-2.12.100 fail t/40reader.t test
Summary: dev-libs/libxml2-2.9.4 makes dev-perl/XML-LibXML-2.12.100 fail t/40reader.t test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2016-06-24 10:31 UTC by Paolo Pedroni
Modified: 2017-08-30 06:22 UTC (History)
5 users (show)

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


Attachments
0001-Fix-attribute-decoding-during-XML-schema-validation.patch (file_586886.txt,2.32 KB, patch)
2016-06-24 10:35 UTC, Paolo Pedroni
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2016-06-24 10:31:15 UTC
t/40reader.t .............................. 1/100 test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'partNum': [facet 'pattern'] The value '' is not accepted by the pattern '\d{3}-[A-Z]{2}'.
test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'partNum': '' is not a valid value of the atomic type 'SKU'.
test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'shipBy': [facet 'enumeration'] The value '' is not an element of the set {'air', 'land', 'any'}.
test/schema/demo.xml:1: Schemas validity error : Element 'Item', attribute 'shipBy': '' is not a valid value of the local atomic type.
# Looks like you planned 100 tests but ran 89.
# Looks like your test exited with 2 just after 89.
t/40reader.t .............................. Dubious, test returned 2 (wstat 512, 0x200)
Failed 11/100 subtests

Upstream bug for XML-LibXML: https://rt.cpan.org/Public/Bug/Display.html?id=114638

Upstream bug for libxml2: https://bugzilla.gnome.org/show_bug.cgi?id=766834

Do you still need build log and the like?
Comment 1 Paolo Pedroni 2016-06-24 10:35:24 UTC
Created attachment 438636 [details, diff]
0001-Fix-attribute-decoding-during-XML-schema-validation.patch

This patch (from the libxml2 bug) is supposed to fix the issue. I'm testing it now.
Comment 2 Paolo Pedroni 2016-06-24 10:44:56 UTC
(In reply to Paolo Pedroni from comment #1)
> Created attachment 438636 [details, diff] [details, diff]
> 0001-Fix-attribute-decoding-during-XML-schema-validation.patch
> 
> This patch (from the libxml2 bug) is supposed to fix the issue. I'm testing
> it now.

It does fix the bug.
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-07-11 06:38:59 UTC
Note: I just pushed 

> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb9676570dbba50c007e075d84ec2a405006a248

Which bumps XML-LibXML to 2.12.600, which contains a work-around for the XSD Schema regression in 2.9.4

However, libxml2 in tree is still broken here and still will need independent fixing. ( As are all versions of dev-perl/XML-LibXML prior to 2.12.600 with this version )
Comment 4 Jouni Kosonen 2016-12-05 10:13:55 UTC
(In reply to Kent Fredric (IRC: kent\n) from comment #3)
> libxml2 in tree is still broken here and still will need
> independent fixing. 

dev-libs/libxml2-2.9.4 also breaks schema validation with xmlstarlet. 
I just opened PR 3018 with the upstream fix, the same as in comment #2.
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-08-23 07:34:22 UTC
Patch for this issue has been pushed to 2.9.4-r2. Please check if it does fix your problem.
Comment 6 Jouni Kosonen 2017-08-24 05:29:23 UTC
(In reply to Gilles Dartiguelongue from comment #5)
> Patch for this issue has been pushed to 2.9.4-r2. Please check if it does
> fix your problem.

dev-libs/libxml2-2.9.4-r2 does fix the regression for XSD schema validation with app-text/xmlstarlet-1.6.1 mentioned in comment #4.
Comment 7 Paolo Pedroni 2017-08-29 14:02:33 UTC
I don't use the affected package anymore, but a quick check shows that everything works, now.
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-08-30 06:22:18 UTC
Thanks for the feedback. Closing then.