On Wed, 2015-04-01 at 14:28 -0700, Zac Medico wrote: > On 04/01/2015 02:00 PM, Joakim Tjernlund wrote: > > On Mon, 2015-03-16 at 11:12 -0700, Zac Medico wrote: > > > On 03/16/2015 09:31 AM, Joakim Tjernlund wrote: > > > > On Sun, 2015-03-15 at 16:37 +0000, Joakim Tjernlund wrote: > > > > > On Sat, 2015-03-14 at 14:02 -0700, Zac Medico wrote: > > > > > > > > > > > > You can set default USE flags in the profile, and then the users > > > > > > can override those settings > > > > > > locally > > > > > > (both > > > > > > positively and negatively). You should not be using use.mask at all > > > > > > here. The profile can set > > > > > > USE="- > > > > > > flag" > > > > > > in make.defaults, or in packages.use, and the user can override > > > > > > that without having to mess with > > > > > > use.mask. > > > > > > > > > > That is how I started, I added -thin etc. to profile's package.use > > > > > and it didn't work so I moved > > > > > over > > > > > to package.mask. > > > > > Now when I try with -thin again in profile's package.use it actually > > > > > works! > > > > > I have no idea what got wrong the first time. > > > > > Anyhow, thank you for your patience. I will continue moving over all > > > > > Transmode stuff to our new > > > > > profile > > > > > the > > > > > next few days :) > > > > > > > > hmm, spoke too fast. Negative USE flags in profiles package.use works > > > > on other > > > > computers but mine :-( > > > > > > > > I have in profiles package.use: > > > > app-emulation/qemu usb usbredir vde qemu_user_targets_x86_64 xattr > > > > virtfs static-user -alsa - > > > > pulseaudio - > > > > bluetooth -opengl > > > > but on my computer the -USE flags(-alsa -pulseaudio -bluetooth -opengl) > > > > have no effect. > > > > I have been looking high and low what could case this but no luck, any > > > > pointers ? > > > > > > Maybe you have overridden the default USE_ORDER setting? You can use > > > this command to check it: > > > > > > portageq envvar USE_ORDER > > > > > > > That was not it, however: > > It seems like USE in /etc/portage/make.conf overrides any negative > > USE flags in profiles/package.use ? > > Yes, this is a direct result of the default > USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d" setting. Since > "conf" comes before "defaults", make.conf overrides make.defaults. This > allows local user settings to override profile settings, which should be > intuitive for most people (I think).
For make.conf vs make.defaults yes but I am talking about package.use I figured any USE setting in package.use for a specific pkg would override any general USE setting in make.conf or make.defaults. For package.use in /etc/portage this is true but not for package.use located in the profile. > > > Example > > /etc/portage/make.conf: USE=alsa > > .../profiles/package.use: app-emulation/qemu -alsa > > Here USE=alsa overides app-emulation/qemu -alsa ? > > > > Seems asymmetric that you can only add but not subtract USE flags > > in profiles/package.use. > > You can also subtract them, but it only works for settings that occurred > earlier in the profile's make.defaults, in IUSE defaults, or in env.d (a > direct result of the default USE_ORDER setting). No, I can not subtract USE flags in profile/package.use if the same flag is present in make.conf Jocke
