Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384457 - Verify metadata.xml using Relax-NG schema (instead of DTD)
Summary: Verify metadata.xml using Relax-NG schema (instead of DTD)
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-25 19:11 UTC by Michał Górny
Modified: 2011-09-25 19:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.