1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Hi everyone, |
5 |
|
6 |
I've written a patch for portage [1] that implements per-package default USE flags at |
7 |
both the ebuild and profile levels (discussed a couple of months ago [2] on this |
8 |
list). At the ebuild level, default flags are specified in IUSE with a + prefix as |
9 |
described in bug #61732 [3]. At the profile level, I've added support for |
10 |
package.use which behaves like /etc/portage/package.use that everyone is familiar |
11 |
with. The intention is that the IUSE defaults will be used for default flags that |
12 |
should be enabled regardless of profile. Then, package.use will be used for flags |
13 |
that might vary depending on the profile. For example, a server profile might enable |
14 |
server flags and a desktop profile might enable client flags. |
15 |
|
16 |
Aside from being package specific, the per-package default USE flags behave much like |
17 |
USE flags that are currently listed in profiles' make.defaults. The flags are |
18 |
stacked incrementally as usual. The ebuild level defaults are at the bottom of the |
19 |
stack, followed by make.defaults, and finally package.use. The user can override |
20 |
these new flags in the same was as make.defaults USE flags could always be overridden |
21 |
(make.conf and package.use). |
22 |
|
23 |
Should we include support in portage for one or both types of per-package default USE |
24 |
flags? If support is included for IUSE defaults now, we won't be able to use them in |
25 |
the tree until after a waiting period or an EAPI bump [4]. |
26 |
|
27 |
Zac |
28 |
|
29 |
[1] http://dev.gentoo.org/~zmedico/portage/branches/2.1/patches/iuse_defaults.patch |
30 |
[2] http://marc.theaimsgroup.com/?t=115506512600002 |
31 |
[3] https://bugs.gentoo.org/show_bug.cgi?id=61732 |
32 |
[4] http://article.gmane.org/gmane.linux.gentoo.devel/43081 |
33 |
|
34 |
|
35 |
-----BEGIN PGP SIGNATURE----- |
36 |
Version: GnuPG v1.4.5 (GNU/Linux) |
37 |
|
38 |
iD8DBQFFL18p/ejvha5XGaMRAicHAKDzUIrmYgYigs64KHRSh+uCMtoBXgCeMTNp |
39 |
joj8t36uvjOO82N8uZXVzTY= |
40 |
=WedH |
41 |
-----END PGP SIGNATURE----- |
42 |
-- |
43 |
gentoo-dev@g.o mailing list |