Gentoo Archives: gentoo-dev

From: Ed Grimm <paranoid@××××××××××××××××××××××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Identifying inherit-only / usable profiles
Date: Sun, 05 Dec 2004 21:54:19
Message-Id: Pine.LNX.4.60.0412052148100.5557@mbeq.rq.iarg
In Reply to: Re: [gentoo-dev] Identifying inherit-only / usable profiles by Luke-Jr
1 On Fri, 3 Dec 2004, Luke-Jr wrote:
2
3 > On Friday 03 December 2004 5:19 pm, Donnie Berkholz wrote:
4 >> On Fri, 2004-12-03 at 23:32 +0900, Jason Stubbs wrote:
5 >>> Heh.. It'd take about 2 minutes to write and test the 3 lines of code to
6 >>> implement said enhancement. The question is, is this the correct
7 >>> enhancement. If so, why? I'd be more inclined to use a file to define a
8 >>> profile as being "valid" rather than "invalid".
9 >>
10 >> That's kinda like defining a profile as "non-deprecated" rather than
11 >> "deprecated." To me, it doesn't make sense to say when something works
12 >> properly -- that should be expected.
13 >
14 > A better comparison would be like defining them as "completed" instead of
15 > "incomplete".
16 > If a valid-marker is used, it can (and probably should) be inherited. If an
17 > invalid-marker is used, you almost *never* want to inherit it.
18 > Alternatively, it would be possible to mark profiles as either valid or
19 > invalid and inherit the value from parents.
20
21 We want to inherit valid/invalid for what reason?
22
23 I would think that each profile would specify on its own whether or not
24 it was valid; I'd hope the preference would be to specify invalid, and
25 assume valid, simply because the vast majority of profiles should be
26 valid. It seems to me that maintaining the valid list should be more
27 work than maintaining the invalid list, and if the reverse is true,
28 there is a problem in the way we are maintaining profiles.
29
30 Semantics can be argued either way; I personally feel the unix return
31 code is the best metaphor - there's one success code, but many failure
32 codes. A profile can be supported, unsupported, deprecated, incomplete,
33 or broken. There's quite possibly a number of other states as well.
34
35 Ed
36
37 --
38 gentoo-dev@g.o mailing list

Replies

Subject Author
[gentoo-dev] Re: Identifying inherit-only / usable profiles Duncan <1i5t5.duncan@×××.net>