Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] colon separated variables in /etc/env.d/
Date: Mon, 11 Sep 2006 21:45:50
Message-Id: 4505D7F6.7020908@gentoo.org
In Reply to: Re: [gentoo-dev] colon separated variables in /etc/env.d/ by Paul de Vrieze
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Paul de Vrieze wrote:
5 > On Monday 11 September 2006 03:44, Zac Medico wrote:
6 >> What is the best way to propagate information about these two
7 >> variable types? For example, we can have a list of variable names
8 >> stored in a new variable called "COLON_SEPARATED" that will reside
9 >> in either the profiles or /etc/env.d/ itself. Variable names not
10 >> listed in COLON_SEPARATED can be assumed to be space separated.
11 >> Does anyone have any ideas to share about how this information
12 >> should be propagated?
13 >
14 > There should also be a third list (or the absense of inclusion in the above).
15 > That is those variables that can only have one value and are overridden
16 > instead of appended.
17
18 I think it will be sufficient to have COLON_SEPARATED and
19 SPACE_SEPARATED lists, with all other variables assumed to be
20 overridden instead of appended.
21
22 To sumarize what I've said in my other replies, COLON_SEPARATED and
23 SPACE_SEPARATED will be stored in /etc/env.d/ itself. The
24 env-update tool (or whatever tool will process /etc/env.d/) will be
25 hard coded to consider COLON_SEPARATED and SPACE_SEPARATED as being
26 implicitly within the SPACE_SEPARATED class. The tool will make one
27 pass to accumulate those two variables, and then another pass to
28 process the rest of the variables. The COLON_SEPARATED and
29 SPACE_SEPARATED variables will automatically be initialized with the
30 old hard coded values. Moving forward, packages that install files
31 in /etc/env.d/ should include COLON_SEPARATED and SPACE_SEPARATED
32 definitions as necessary for the other variables that they define.
33
34 Zac
35 -----BEGIN PGP SIGNATURE-----
36 Version: GnuPG v1.4.5 (GNU/Linux)
37
38 iD8DBQFFBdf1/ejvha5XGaMRAtzkAKDupzkoiuD5LxyklTr5odvBMoiHxwCfYKYx
39 h3jGTEn6YQhqau17fFhNkKQ=
40 =OUrp
41 -----END PGP SIGNATURE-----
42 --
43 gentoo-dev@g.o mailing list