Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 384457

Summary: Verify metadata.xml using Relax-NG schema (instead of DTD)
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Conceptual/Abstract IdeasAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: pms
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-09-25 19:11:18 UTC
Shortly saying, DTD is a little old and limited format for XML file descriptions. Relax-NG is simpler and more powerful. Most importantly, it allows elements to appear in any order while DTD needs hacks for that. It can also put further restrictions on data types.

If the idea is accepted, I can prepare necessary patches to repoman and the Relax-NG schema.
Comment 1 SpanKY gentoo-dev 2011-09-25 19:42:58 UTC
isn't this an EAPI change ?
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-09-25 19:53:02 UTC
(In reply to comment #1)
> isn't this an EAPI change ?

Hm, hard to say. We can't bind this to a specific EAPI as metadata.xml is independent of single ebuilds in the package dir. PMS denotes only the metadata.dtd location.

If we add Relax-NG schema as an additional spec to metadata, leaving DTD intact, I guess PMS would be fine as-is. Relax-NG could effectively impose further restrictions on our metadata while keeping it compliant with the DTD.