1 |
On Wed, 2015-04-01 at 14:28 -0700, Zac Medico wrote: |
2 |
> On 04/01/2015 02:00 PM, Joakim Tjernlund wrote: |
3 |
> > On Mon, 2015-03-16 at 11:12 -0700, Zac Medico wrote: |
4 |
> > > On 03/16/2015 09:31 AM, Joakim Tjernlund wrote: |
5 |
> > > > On Sun, 2015-03-15 at 16:37 +0000, Joakim Tjernlund wrote: |
6 |
> > > > > On Sat, 2015-03-14 at 14:02 -0700, Zac Medico wrote: |
7 |
> > > > > > |
8 |
> > > > > > You can set default USE flags in the profile, and then the users can override those settings |
9 |
> > > > > > locally |
10 |
> > > > > > (both |
11 |
> > > > > > positively and negatively). You should not be using use.mask at all here. The profile can set |
12 |
> > > > > > USE="- |
13 |
> > > > > > flag" |
14 |
> > > > > > in make.defaults, or in packages.use, and the user can override that without having to mess with |
15 |
> > > > > > use.mask. |
16 |
> > > > > |
17 |
> > > > > That is how I started, I added -thin etc. to profile's package.use and it didn't work so I moved |
18 |
> > > > > over |
19 |
> > > > > to package.mask. |
20 |
> > > > > Now when I try with -thin again in profile's package.use it actually works! |
21 |
> > > > > I have no idea what got wrong the first time. |
22 |
> > > > > Anyhow, thank you for your patience. I will continue moving over all Transmode stuff to our new |
23 |
> > > > > profile |
24 |
> > > > > the |
25 |
> > > > > next few days :) |
26 |
> > > > |
27 |
> > > > hmm, spoke too fast. Negative USE flags in profiles package.use works on other |
28 |
> > > > computers but mine :-( |
29 |
> > > > |
30 |
> > > > I have in profiles package.use: |
31 |
> > > > app-emulation/qemu usb usbredir vde qemu_user_targets_x86_64 xattr virtfs static-user -alsa - |
32 |
> > > > pulseaudio - |
33 |
> > > > bluetooth -opengl |
34 |
> > > > but on my computer the -USE flags(-alsa -pulseaudio -bluetooth -opengl) have no effect. |
35 |
> > > > I have been looking high and low what could case this but no luck, any pointers ? |
36 |
> > > |
37 |
> > > Maybe you have overridden the default USE_ORDER setting? You can use |
38 |
> > > this command to check it: |
39 |
> > > |
40 |
> > > portageq envvar USE_ORDER |
41 |
> > > |
42 |
> > |
43 |
> > That was not it, however: |
44 |
> > It seems like USE in /etc/portage/make.conf overrides any negative |
45 |
> > USE flags in profiles/package.use ? |
46 |
> |
47 |
> Yes, this is a direct result of the default |
48 |
> USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d" setting. Since |
49 |
> "conf" comes before "defaults", make.conf overrides make.defaults. This |
50 |
> allows local user settings to override profile settings, which should be |
51 |
> intuitive for most people (I think). |
52 |
|
53 |
For make.conf vs make.defaults yes but I am talking about package.use |
54 |
I figured any USE setting in package.use for a specific pkg would override |
55 |
any general USE setting in make.conf or make.defaults. |
56 |
For package.use in /etc/portage this is true but not for |
57 |
package.use located in the profile. |
58 |
|
59 |
> |
60 |
> > Example |
61 |
> > /etc/portage/make.conf: USE=alsa |
62 |
> > .../profiles/package.use: app-emulation/qemu -alsa |
63 |
> > Here USE=alsa overides app-emulation/qemu -alsa ? |
64 |
> > |
65 |
> > Seems asymmetric that you can only add but not subtract USE flags |
66 |
> > in profiles/package.use. |
67 |
> |
68 |
> You can also subtract them, but it only works for settings that occurred |
69 |
> earlier in the profile's make.defaults, in IUSE defaults, or in env.d (a |
70 |
> direct result of the default USE_ORDER setting). |
71 |
|
72 |
No, I can not subtract USE flags in profile/package.use if the same |
73 |
flag is present in make.conf |
74 |
|
75 |
Jocke |