Gentoo Archives: gentoo-dev

From: Jonathan Callen <abcd@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: metdata.dtd should require <herd/>
Date: Tue, 15 Dec 2009 18:38:35
Message-Id: 4B27CC07.8090005@gentoo.org
In Reply to: Re: [gentoo-dev] metdata.dtd should require by Peter Volkov
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Peter Volkov wrote:
5 > В Пнд, 07/12/2009 в 21:20 +0100, Thilo Bangert пишет:
6 >> Hans de Graaff <graaff@g.o> said:
7 >>> On Mon, 2009-12-07 at 12:56 +0100, Thilo Bangert wrote:
8 >>>> dev-util/cucumber <herd> missing
9 >>> Fixed, but this is really a bug in metadata.dtd, which specifies
10 >>> <!ELEMENT pkgmetadata ( (herd|maintainer|longdescription|use|
11 >>> upstream)* )>
12 >
13 >> indeed: http://bugs.gentoo.org/show_bug.cgi?id=279206
14 >
15 > So what we will do with this? It'll be great to fix dtd to follow our
16 > requirements, but there is a problem:
17 >
18 > if we change dtd like this:
19 >
20 > <!ELEMENT pkgmetadata ( herd+, (maintainer|longdescription|use|upstream)* )>
21 >
22 > we will force all metadata.xml files have strict order of tags: first
23 > <herd/> then other tags. Currently there are about 200 ebuilds with
24 > different order http://bugs.gentoo.org/show_bug.cgi?id=279206#c4 .
25 >
26 > Hans's suggestion http://bugs.gentoo.org/show_bug.cgi?id=279206#c7 works
27 > but it is not nice and prohibits another order: herd, other tags, herd.
28 >
29 > Personally I'd kept dtd simple and forced ordering.
30 >
31 > So actually two questions here:
32 >
33 > 1. How should we fix dtd?
34 > 2. Are there any problems if we fix dtd first and let maintainers fix
35 > metadata.xml on bumps (iow, what will became broken if metadata.xml
36 > became not valid)?
37 >
38
39 One way to allow for any ordering, would be:
40
41 <!ELEMENT pkgmetadata (
42 (maintainer|longdescription|use|upstream)*,
43 herd,
44 (herd|maintainer|longdescription|use|upstream)*
45 )>
46
47 - --
48 Jonathan Callen
49 -----BEGIN PGP SIGNATURE-----
50 Version: GnuPG v2.0.13 (GNU/Linux)
51 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
52
53 iEYEARECAAYFAksnzAcACgkQOypDUo0oQOo3TQCgnvrr5r54RE5q2LVRYoT+Q2nR
54 6Q4AniRGhT0Tq1KnY1wAoZt7c+ZEfBvQ
55 =Inet
56 -----END PGP SIGNATURE-----