1 |
On Wed, Jun 15, 2005 at 12:16:18PM +0200, Thomas de Grenier de Latour wrote: |
2 |
> On Mon, 13 Jun 2005 16:40:48 +0200 |
3 |
> Sven Wegener <swegener@g.o> wrote: |
4 |
> |
5 |
> > We just had a short discussion over in #gentoo-portage and the |
6 |
> > idea of an use.force file for profiles came up. It allows us to |
7 |
> > force some USE flags to be turned on for a profile. It's not |
8 |
> > possible to disable this flag by make.conf, the environment or |
9 |
> > package.use. But we would not be Gentoo, if we don't leave a |
10 |
> > backdoor. You can disable the flag by putting -flag in /etc/ |
11 |
> > portage/profile/use.force if you really need to. Same goes for |
12 |
> > sub-profiles that need to disable this flag. |
13 |
> |
14 |
> Why a file rather than a make.default variable? I'm thinking of |
15 |
> something like REQUIRED_USE, which would behave just like USE and |
16 |
> friends (the so called "incremental" vars in portage). Its |
17 |
> contents could simply be added to USE after all other steps of |
18 |
> there respective "incrementation" (profiles, make.conf, user |
19 |
> env, etc.). And sure there would also be a REQUIRED_USE_EXPAND |
20 |
> var, similar in purpose to the existing USE_EXPAND but targeting |
21 |
> REQUIRED_USE, where important things like USERLAND or ELIBC could |
22 |
> be moved. |
23 |
|
24 |
The result is the same. I prefer to use files, because they yield better |
25 |
cvs diff results. Seeing someone change the REQUIRED_USE line involves |
26 |
looking over the complete line to find the changes. We could split the |
27 |
line over multiple lines to make it easier, but then we could just use a |
28 |
flat file. Well we're talking about a couple of flags here, but we don't |
29 |
know what we'll use these REQUIRE_USE for in the future |
30 |
|
31 |
> Well, i'm not saying that vars are better than files though, the |
32 |
> same can be achieved both ways, so it's just another option to |
33 |
> consider. |
34 |
> |
35 |
> (and feel free to replace, in the above, "REQUIRED" by "FORCE", |
36 |
> "IMPORTANT", or any other kind of "DO_NOT_TOUCH"-like prefix) |
37 |
|
38 |
I actually like the required one. |
39 |
|
40 |
Sven |
41 |
|
42 |
-- |
43 |
Sven Wegener |
44 |
Gentoo Linux Developer |
45 |
http://www.gentoo.org/ |