1 |
On 26-10-2013 10:13:29 +0200, Ruud Koolen wrote: |
2 |
> On Saturday 26 October 2013 09:41:28 Fabian Groffen wrote: |
3 |
> > As you may or may not know, the prefix USE-flag is a hack that works in |
4 |
> > Portage, but violates specifications, because it is never defined in |
5 |
> > ebuilds that need it. Discussions here go back to not wanting to show |
6 |
> > elibc_XXX, kernel_XXX in IUSE (because user can't influence them) and |
7 |
> > prefix likewise. We should still solve this problem. While we're at |
8 |
> > it, I'd like to tackle bug #473598 [1] at the same time. |
9 |
> |
10 |
> Not so! Any USE flags that are globally masked or forced are in the |
11 |
> implicit-iuse list. Or is that what you meant as the hack? I think it's |
12 |
> specified somewhere. |
13 |
|
14 |
Last thing I understood, forcing it -- making it global -- is a Portage |
15 |
behaviour, eapi-5 introduced some variable to define it or so. So maybe |
16 |
my entire comment is moot considering we aim for >=eapi-5. |
17 |
|
18 |
> > Anyway, I was thinking more along the lines of using USE_EXPAND. |
19 |
> > There's also a USE_EXPAND_HIDDEN, and something like this [2] looks |
20 |
> > good. |
21 |
> |
22 |
> USE_EXPAND is fine too, it's just a special case of a USE flag, after all. It |
23 |
> is perhaps more elegant than plain USE flags, and my plan was based on |
24 |
> kernel_* and friends anyway. |
25 |
> |
26 |
> > In other words, I could think of having EPREFIX="$classic" or |
27 |
> > EPREFIX_TARGET="$rap", which could default to $classic in |
28 |
> > base/make.defaults. |
29 |
> |
30 |
> It should default to "" in base/make.defaults. Only the prefix profiles should |
31 |
> set it to anything nonempty. |
32 |
|
33 |
Have given this some thoughts, and maybe we need the global switch |
34 |
whether or not prefix is enabled, and an additional features list to |
35 |
select the variant of prefix (rap in this case). Maybe that's complete |
36 |
overkill, and your variant's nicer. Anyway, a migration path or |
37 |
backwards compatability is also important since use prefix is widely |
38 |
adopted in gx86 nowadays... |
39 |
|
40 |
Fabian |
41 |
|
42 |
-- |
43 |
Fabian Groffen |
44 |
Gentoo on a different level |