Bug 1172131

Summary: libxml2 2.9.7 fails on updated yast Relax NG schema
Product: [openSUSE] openSUSE Distribution Reporter: Martin Vidner <mvidner>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: igonzalezsosa, jreidinger
Version: Leap 15.2   
Target Milestone: ---   
Hardware: All   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Vidner 2020-05-26 13:38:37 UTC
In response to https://bugzilla.suse.com/show_bug.cgi?id=1170886 YaST has
updated the RelaxNG schemas for its control.xml and autoinst.xml files:
yast2-installation-control-4.3.0 https://github.com/yast/yast-installation-control/pull/96
autoyast2-4.3.0 https://github.com/yast/yast-installation-control/pull/96

On Tumbleweed things are fine with libxml2-2.9.10 but on Leap 15.2,
libxml2-2.9.7 has a bug which fails the build of yast2-installation-control
with errors like

[   65s] ../control/control.rng:47: element attribute: Relax-NG parser error : Found anyName attribute without oneOrMore ancestor
[   65s] Relax-NG schema ../control/control.rng failed to compile

This will not hit users of SLE15-SP2/Leap 15.2 because the above packages went
to Tumbleweed only, but it will be a problem for us developers and later 15.3
users.

Fortunately there is a workaround in rephrasing the schema file, will update
the schemas.
Comment 1 Martin Vidner 2020-05-26 13:58:01 UTC
- https://github.com/yast/yast-installation-control/pull/98
- (autoyast2: todo)
Comment 2 Martin Vidner 2020-05-26 19:33:37 UTC
For AutoYaST (profile.rng) we don't have a build time schema correctness check yet, which means problems will get discovered too late. Adding it:
- https://github.com/yast/yast-schema/pull/76
Comment 3 Martin Vidner 2020-05-27 13:53:26 UTC
- https://github.com/yast/yast-autoinstallation/pull/619 fixes the problem in comment 0 and also a schema bug where we introduced a duplicate ;option' define.
Comment 4 Martin Vidner 2020-06-03 08:13:51 UTC
Fixes submitted, yast2-schema-4.3.0 has been built.