Gentoo Archives: gentoo-dev

From: Brian Harring <ferringb@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] GLEP ??: Critical News Reporting
Date: Wed, 02 Nov 2005 00:42:22
Message-Id: 20051102012959.GA16594@nightcrawler
In Reply to: Re: [gentoo-dev] GLEP ??: Critical News Reporting by Ciaran McCreesh
1 On Tue, Nov 01, 2005 at 10:16:35PM +0000, Ciaran McCreesh wrote:
2 > On Tue, 1 Nov 2005 22:57:13 +0100 Jan Kundrát <jkt@g.o> wrote:
3 > | On Tuesday 01 of November 2005 19:25 Ciaran McCreesh wrote:
4 > | > On Tue, 1 Nov 2005 17:22:29 +0100 Jan Kundrát <jkt@g.o>
5 > | > wrote:
6 > | > | What's wrong with XML format similar to the one that is used for
7 > | > | our GLSAs?
8 > | >
9 > | > 1. Portage does not handle XML. Portage will not handle XML in the
10 > | > near future.
11 > |
12 > | How will it handle GLSAs then? [1]
13 >
14 > gentoolkit != portage.
15 Correct. Course, also incorrect.
16
17 We already have a module for parsing metadata.xml in use in the
18 experimental 2.1 branch (which can be backported to 2.0 if anyone
19 wants it and does the work).
20
21 Python comes bundled with xml as long as you don't have the build flag
22 enabled.
23
24
25
26 > | > 5. XML is merely adding another problem to the one we have already.
27 > |
28 > | Could you please explain?
29 >
30 > Parsing XML is complicated. Writing XML is complicated. I put together
31 > a complete working client that can show news items in the plain text
32 > format proposed -- it took me fifteen minutes to write. I threw
33 > together a script which can be called after a cron sync that mails news
34 > items to root in under a minute. There is no way this could be done if
35 > XML were being used -- any task involving news items would be a major
36 > chore.
37
38 Come on now, this is a bit of bullshit.
39 http://dev.gentoo.org/~ferringb/portage_metadata.py,
40 47 lines
41
42 Might be a pain in the ass under the frameworks you deal in, but
43 something as simple as news items can be done pretty quickly.
44
45 > | > I have an eselect module which can read these news files. The whole
46 > | > thing is about the same size as the DTD would need to be for an
47 > | > XML-based solution. I have a parser written for the format in
48 > | > question. The whole thing is smaller than the initialisation code
49 > | > for an off the shelf XML parser.
50 > |
51 > | Great. Why haven't you just used existing code from `glsa-check`, BTW?
52 >
53 > Because merely figuring out the XML DTD takes longer than it does to
54 > write an entire client for plain text news items.
55
56 Not arguing for, or against, just pointing out certain arguements are
57 questionable...
58 ~harring

Replies

Subject Author
Re: [gentoo-dev] GLEP ??: Critical News Reporting Michiel de Bruijne <m.debruijne@××××××.nl>
Re: [gentoo-dev] GLEP ??: Critical News Reporting Chris Gianelloni <wolf31o2@g.o>
Re: [gentoo-dev] GLEP ??: Critical News Reporting Ciaran McCreesh <ciaranm@g.o>