We have our own portage profiles, a base which is common for all, gentoo64-common and then gentoo64-nosym which inherits: gentoo64-nosym # cat parent gentoo:default/linux/amd64/17.1/desktop ../gentoo64-common The problem I notice is that if I add in gentoo64-common sub profile, package.use: sys-apps/fwupd -modemmanager that will not take, modemmanager USE flag is still active. If I move that setting to gentoo64-nosym it works, no modemmanager USE set for fwupd. Is this a bug in portage, out profile setup or the way it is supposed to work ?
The ../gentoo64-common/package.use setting that you've described should work, though it could be overridden by a USE=modemanager or similar package.use setting in the profile that inherits ../gentoo64-common.
hmm, I got USE=modemmanager in gentoo64-nosym/make.defaults, I guess that might override sys-apps/fwupd -modemmanager in gentoo64-common/package.use ? I always figured a sys-apps/fwupd -modemmanager would take precedence but maybe only if they are in the same profile ?
(In reply to Joakim Tjernlund from comment #2) > hmm, I got USE=modemmanager in gentoo64-nosym/make.defaults, I guess > that might override sys-apps/fwupd -modemmanager in > gentoo64-common/package.use ? Yes, it will. > I always figured a sys-apps/fwupd -modemmanager would take precedence but > maybe only if they are in the same profile ? Yes, that's right.
The interaction of USE in make.defaults with package.use is analogous to interactions between settings in use.mask and package.use.mask as defined in Algorithm 5.1 of PMS: https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-54002r1