Gentoo Archives: gentoo-dev

From: Grobian <grobian@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] GLEP 47: Creating 'safe' environment variables
Date: Sat, 11 Feb 2006 07:31:11
Message-Id: 20060211072834.GC461@gentoo.org
In Reply to: Re: [gentoo-dev] GLEP 47: Creating 'safe' environment variables by Ciaran McCreesh
1 On 10-02-2006 20:22:06 +0000, Ciaran McCreesh wrote:
2 > On Fri, 10 Feb 2006 19:25:47 +0100 Grobian <grobian@g.o> wrote:
3 > | On 09-02-2006 23:50:08 +0000, Ciaran McCreesh wrote:
4 > | > On Thu, 9 Feb 2006 22:48:32 +0100 Grobian <grobian@g.o>
5 > | > wrote:
6 > | > > Instead of proposing a 4-tuple [3]_ keyword, a 2-tuple
7 > | > > keyword is chosen for archs that require them.
8 > | >
9 > | > Provision should be made for future ports that require more than two
10 > | > keywords. There's no particular reason to artificially limit this to
11 > | > two at this stage.
12 > |
13 > | Can you come up with an example?
14 >
15 > kfreebsd-gnu is, in effect, one example you're using already. You'd have
16 > x86 as the arch, FreeBSD as the kernel and GNU as the userland.
17
18 Yes, but you're actually mixing two things here now. The right hand
19 side of the 2-tuple is not a kernel or userland, it is an OS, which
20 includes this in itself. macos (even though the x is missing) implies a
21 darwin kernel, and mixed BSD/GNU userland.
22 If you really want to have kernel and userland in the keyword, then the
23 definition of the keyword should be different, and probably state that
24 it is always a 3-tuple and that the defaults are 'linux' and 'gnu' for
25 the 2nd and 3rd fields respectively.
26 I argue however, that this is not necessary, hence a 2-tuple of
27 "arch-os" is enough to just distinguish it from the others, while also
28 being descriptive to human readers.
29 --
30 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] GLEP 47: Creating 'safe' environment variables Ciaran McCreesh <ciaranm@g.o>