1 |
All, |
2 |
|
3 |
mgorny opened up a bug[1], which requests for all eclasses that use the |
4 |
'prefix' USE-flag to be "fixed" to add 'prefix' to IUSE. |
5 |
|
6 |
While the 'prefix' USE-flag has since its introduction belonged to that |
7 |
group of USE-flags that are not supposed to be set by the user |
8 |
him/herself, it is not covered by any definition claiming it is. |
9 |
(Judging by PMS.) Other flags in this category are the userland_*, |
10 |
elibc_*, kernel_*, x86, amd64, etc. flags. |
11 |
|
12 |
With the introduction of IMPLICIT_IUSE (scheduled for EAPI 5), a phrase |
13 |
has been added to PMS, that finally makes a statement on what's supposed |
14 |
to be in IUSE, and what not[2]. To me, this patch means that things like |
15 |
userland_BSD, elibc_glibc, etc. do *NOT* belong in IUSE of an |
16 |
ebuild/eclass (and hence should b removed). 'prefix', on the other |
17 |
hand, should be added to IUSE of those ebuilds/eclasses that use them. |
18 |
|
19 |
For EAPI 5 (assuming it contains IMPLICIT_IUSE) the base profile can be |
20 |
enriched with IMPLICIT_IUSE="prefix". |
21 |
|
22 |
For all currently Council approved EAPIs this means 'prefix' has to be |
23 |
added to IUSE. While said bug[1] is assigned to the prefix team, I feel |
24 |
this is actually for the coordinating role, since prefix does not own |
25 |
most of the ebuilds/eclasses that would need changes. |
26 |
|
27 |
In case you wonder why this is a problem now, Portage/repoman has a rule |
28 |
that USE-flags that are masked in the profiles implicitly are defined. |
29 |
Since USE=prefix is masked in the base profile, for Portage this |
30 |
USE-flag is always defined. With the updated PMS documentation, |
31 |
however, it is supposed to act differently. |
32 |
|
33 |
Since this would require quite some work, I'd like to hear what the |
34 |
(dev) community thinks of this, if at all, before I'll Cc all |
35 |
responsible teams and maintainers to fix the eclasses, followed by |
36 |
ebuilds. |
37 |
|
38 |
|
39 |
[1] https://bugs.gentoo.org/show_bug.cgi?id=433894 |
40 |
[2] http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commitdiff;h=d9040ab3482af5f790368bac5d053bf1cd760ba8;hp=f9f7729c047300e1924ad768a49c660e12c2f906 |
41 |
|
42 |
-- |
43 |
Fabian Groffen |
44 |
Gentoo on a different level |