Gentoo Archives: gentoo-dev

From: "Justin <jlec>" <jlec@g.o>
To: Ulrich Mueller <ulm@g.o>, gentoo-dev@l.g.o
Cc: Davide Pesavento <pesa@g.o>, qa@g.o, cardoe@g.o
Subject: Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing
Date: Sun, 06 Mar 2016 20:22:40
Message-Id: 56DC917A.9010402@gentoo.org
In Reply to: Re: [gentoo-dev] XML Schema files for metadata.xml, projects.xml and repositories.xml, for review and testing by Ulrich Mueller
1 On 06/03/16 19:28, Ulrich Mueller wrote:
2 >>>>>> On Sun, 6 Mar 2016, Micha³ Górny wrote:
3 >
4 >> On Sun, 6 Mar 2016 19:26:15 +0100
5 >> Davide Pesavento <pesa@g.o> wrote:
6 >
7 >>> So I guess we could use the following form when SLOTs are needed:
8 >>> <pkg>media-libs/gstreamer</pkg>:1.0
9 >>> ?
10 >
11 >> Prolly.
12 >
13 >> Just to be clear, I have no clue what the original use of <pkg/>
14 >> was and what the final outcome of this will be. This thread was
15 >> established mostly in order to determine that. I'd wait for ulm to
16 >> turn up and have some suggestions ;-).
17 >
18 > :)
19 >
20 > No idea what the original purpose was, but <pkg> and <cat> are
21 > specified in GLEP 56 [1]:
22 >
23 > - Each <flag> XML tag allows 0 or more nested <pkg> XML tags whose
24 > character data is a valid CP or CPV as defined by the Gentoo
25 > Development Manual - Ebuild File Format [2].
26
27 Micha³, your current syntax breaks with multiple pkg
28
29 (<pkg>sci-libs/metis</pkg> or <pkg>sci-libs/parmetis</pkg>)
30
31 results in
32
33 metadata.xml:21: element pkg: Schemas validity error : Element 'pkg':
34 [facet 'pattern'] The value '' is not accepted by the pattern
35 '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
36 metadata.xml:21: element pkg: Schemas validity error : Element 'pkg': ''
37 is not a valid value of the atomic type 'pkgType'.
38 metadata.xml:24: element pkg: Schemas validity error : Element 'pkg':
39 [facet 'pattern'] The value '' is not accepted by the pattern
40 '[A-Za-z0-9_][A-Za-z0-9+_.-]*/[A-Za-z0-9_][A-Za-z0-9+_-]*'.
41 metadata.xml:24: element pkg: Schemas validity error : Element 'pkg': ''
42 is not a valid value of the atomic type 'pkgType'.
43
44
45 Justin

Replies