Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4507 - useflag does not compute "net" USE var contents correctly.
Summary: useflag does not compute "net" USE var contents correctly.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Michael Thompson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-03 18:42 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2003-02-04 19:42 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 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-07-03 18:42:24 UTC
/etc/make.conf is a modification to the USE env var in
/etc/make.profile/make.defaults, not a replacement for it. To obtain the proper
set of active USE flags that emerge/ebuild use, you will have to apply a masking
algorithm.

The "net" USE flag result should be calculated, thus:

1) source /etc/make.profile/make.defaults  and pick out the contents of the USE
var into a tmp env var, say default_use
2) source /etc/make.conf and pick out the contents of the USE var into a
different tmp env var, say conf_use
3) A USE var foo is in the "net" USE flag set either of the follow cases is correct:
 a) It appears in default_use and -foo is not in conf_use
 b) It appears in conf_use (without a - sign in front, obviously)
Comment 1 Michael Thompson 2002-07-09 19:16:25 UTC
I'll begin work adding the net USE value calculation to any areas where the 
USE variable is displayed.  Would you like me to break "show" into two 
features, one that displays what the user has placed into /etc/make.conf, and 
one displaying the net value of USE?

I'm just now getting my primary workstation back online after a hard drive 
failure (HD was < 4 months old), so I didn't know about this until a couple of 
days ago.  Please give me a few days while I get everything together.  Thanks.
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-07-28 21:48:03 UTC
You may add a --no-calc option or somesuch that allows the user to see what's in
/etc/make.conf, but I consider that unecessary, as what one really wants to know
is the end-result.
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-08-26 09:36:04 UTC
Gaarde <gaarde@yahoo.com> is working on a new version of useflag, so I'm closing
this one. If you're interested in joining the useflag party, please contact Gaarde.