Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Proposal: pre-emerge advisories
Date: Thu, 14 Jul 2005 07:55:00
Message-Id: 20050714075238.GA552488@lion.gg3.net
In Reply to: Re: [gentoo-dev] Proposal: pre-emerge advisories by "Robin H. Johnson"
1 maillog: 14/07/2005-00:36:15(-0700): Robin H. Johnson types
2 > On Thu, Jul 14, 2005 at 09:17:38AM +0200, Kevin F. Quinn wrote:
3 > > On 14/7/2005 7:24:03, Craig Lawson (craig.lawson@××××××××.edu) wrote:
4 > > > [...] To be more concrete, I'm thinking of something like a database [...]
5 > > I don't think a separate database is a good idea; too many sources for information.
6 > How about using metadata.xml? I'd think this data is ideally suited for
7 > it. It's metadata about the package, and it's already distributed with
8 > the tree.
9 >
10 > > > [...] For example [...]
11 > > > current: any
12 > > > target: =gnome-base/gnome-menus-2.10.0
13 > > > advisory: Menu editing disabled until follow-up release.
14 > > > Work-around is to install Python 4 + smeg. See
15 > > > forum topic http://forums.gentoo.org/blah...
16 > >
17 > > How about adding:
18 > >
19 > > ADVICE="Menu editing disabled until follow-up release.
20 > > Work-around is to install Python 4 + smeg. See
21 > > forum topic http://forums.gentoo.org/blah..."
22 > >
23 > > to the gnome-menus-2.10.0 ebuild (sorry Chris, no parsing needed :} ).
24 > > It'd be trivial to knock up a widget to extract and display this data,
25 > > and I'd guess trivial to add an '--advice' option to emerge to do the
26 > > same. Perhaps it'd be simpler just to include it alongside the
27 > > changelog data with the '--changelog' option.
28 > Putting it in the ebuild becomes a bit complex when you want to include
29 > lots of text, or if you want to display a message for a specific
30 > downgrade or something else like that. Basically while you have the
31 > 'target' attribute, you have no way to specify the 'current' attribute,
32 > and you can't have multiple advisories per ebuild.
33 >
34 > metadata.xml variant:
35 > <pkgmetadata><advisory target="=gnome-base/gnome-menus-2.10.0">
36 > Menu editing disabled until follow-up release.
37 > Work-around is to install Python 4 + smeg. See
38 > forum topic http://forums.gentoo.org/blah...
39 > </advisory></pkgmetadata>
40 > ('current' attribute defaulting to any version, and both the 'target'
41 > and 'current' attributes should be full package atoms.)
42 >
43 > > Of course such advice could be just written into the changelog in the first place...
44 > The problem is that users complain and don't read the changelog, since
45 > it's too long. They want only specific advisories that are needed, not
46 > every little change notice.
47
48 Since the changelog was mentioned, and since there is already a
49 --changelog switch (that I don't use because of the above-stated
50 reason), maybe some changelog entries could be marked as having a higher
51 priority (somehow reminds me of einfo and ewarn). If it were possible to
52 omit the "info" level entries and only show the important stuff from the
53 changelog with --changelog it would have been really useful.
54
55 emerge --changelog=warn ;)
56
57 There is no need for "current" or "target" either, since --changelog
58 already does the parsing.
59
60 --
61 *> Georgi Georgiev *> An age is called Dark not because the *>
62 <* chutz@×××.net <* light fails to shine, but because people <*
63 *> +81(90)2877-8845 *> refuse to see it. -- James Michener, *>
64 <* ------------------- <* "Space" <*