Portage currently doesn't seem to check /etc/portage for overrides to the profile's use.mask It would be nice to be able to create a /etc/portage/use.mask to unmask things. (The particular case I have in mind is that amd64 masks mono, both the package and the use flag, which is fine, except that I've (successfully) unmasked the packages, but I can't use mono. I want to add -mono to /etc/portage/use.mask.) Reproducible: Always Steps to Reproduce:
`man portage` -> /usr/portage/profiles/use.mask
Works, but doesn't solve the problem. # echo '# Test' >>/usr/portage/profiles/use.mask # emerge sync # cat /usr/portage/profiles/use.mask cat: /usr/portage/profiles/use.mask: No such file or directory It would either need to be magically protected by emerge sync or live somewhere else in order to avoid getting clobbered. Feel free to make fun of me for reopening this if I'm missing something obvious.
copy & pasted wrong path from manpage /etc/portage/profile/ is correct path
The file you want is /etc/portage/profile/use.mask. Spanky, want to update the docs? You should be able to cut out the entire section on /etc/portage/profile and just replace it with something that says "anything that's supported under make.profile - other than parent"
Never mind.. it says that already. :/
Thanks, and sorry for the invalid bug. It looks like the manpage is correct in the synopsis but is incorrect (or at least misleading) in the specific file descriptions: /usr/portage/profiles/ Global Gentoo settings that are controlled by the developers. To override these settings, you can use the files in /etc/portage/. /etc/portage/use.mask does not work, as seems to be implied here. It's also unclear from the docs whether a custom package.mask ought to be in /etc/portage or /etc/portage/profiles. At the very least, /etc/portage/ should probably be corrected to /etc/portage/profile/
done
Hmm, that correction isn't good either, now people expect things like /etc/portage/profile/thirdpartymirrors to work (just seen one on IRC). Actually, since when do we have $PORTDIR/profiles/use.mask? I don't see it in the tree.
so it turned out profiles/use.mask didn't exist in the first place and that reference was wrong. Reverting the "fix" and removing the reference to actually fix this.