Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87173 - Cannot override use.mask in /etc/portage
Summary: Cannot override use.mask in /etc/portage
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-29 14:19 UTC by Andy Lutomirski
Modified: 2005-06-14 07:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Lutomirski 2005-03-29 14:19:34 UTC
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:
Comment 1 SpanKY gentoo-dev 2005-03-29 15:23:45 UTC
`man portage` -> /usr/portage/profiles/use.mask
Comment 2 Andy Lutomirski 2005-03-29 17:27:45 UTC
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.
Comment 3 SpanKY gentoo-dev 2005-03-29 17:32:51 UTC
copy & pasted wrong path from manpage

/etc/portage/profile/ is correct path
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-03-29 17:35:31 UTC
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"
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-03-29 17:36:18 UTC
Never mind.. it says that already. :/
Comment 6 Andy Lutomirski 2005-03-29 17:46:19 UTC
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/
Comment 7 SpanKY gentoo-dev 2005-03-29 17:52:35 UTC
done
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2005-06-14 04:14:57 UTC
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.
Comment 9 Marius Mauch (RETIRED) gentoo-dev 2005-06-14 07:57:29 UTC
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.