Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156191 - ufed should honour /etc/portage/profile/use.mask
Summary: ufed should honour /etc/portage/profile/use.mask
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Harald van Dijk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-25 02:30 UTC by Martin Väth
Modified: 2006-11-25 19:29 UTC (History)
0 users

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 Martin Väth 2006-11-25 02:30:05 UTC
The file /etc/portage/profile/use.mask can be used to modify the profile use.mask, in particular to unmask locally some flags originally masked for the profile.

However, these locally unmasked flags do not show up in ufed and thus cannot be set. (This is particularly annoying since there is no clean way to set these flags at least "manually" without editing /etc/make.conf *every time* after calling ufed, although currently the source command might be misused to this purpose).

I guess the correct solution would be that ufed "appends" /etc/portage/profile to the list of directories to be read for the cascaded profile.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2006-11-25 06:37:19 UTC
I happen to have that in the patch for bug #154628, I'm just waiting for it to be tested, since that specific bug is amd64-specific and I have no amd64 machine.
Comment 2 Martin Väth 2006-11-25 09:46:28 UTC
I had misread your comment 4 to #14628 and had (falsely) thought that this patch is already contained in 0.40-r4.

I have amd64 and tested the patch now:
The flags mmx sse sse2 (e.g.) showed up and were saved as any other flags.
Locally unmasking also worked as it should (i.e. the unmasked flags were treated as any other "normal" flag).
Local masking had the expected effect on "normal" flags like e.g. readline (i.e. readline did not show up anymore and was unselected).
However, local masking had no effect on the "special" flags mmx sse sse2. This is not a real problem, of course...
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2006-11-25 19:29:46 UTC
(In reply to comment #2)
> However, local masking had no effect on the "special" flags mmx sse sse2. 

Thanks for testing. As it turns out, that's because use.mask overrides package.use.mask in parent profiles, but I was only letting it override parent profiles' use.mask. A fixed patch is now in the tree (for ufed-0.40-r5), which also addresses your bug.