On 10/27/03  Andrew Gaffney wrote:

> Mike Frysinger wrote:
> > On Tuesday 28 October 2003 10:04, Andrew Gaffney wrote:
> > 
> >>Is there a quicker
> >>way to determine the USE flags on the fly?
> > 
> > portageq envvar USE
> 
> How does Portage determine USE? I assume it gets the default from 
> '/etc/make.profile/make.defaults'. Does it then add any that are in
> '/etc/make.conf' and remove any that are in '/etc/make.conf' preceeded
> by a '-'? Is the same process then repeated for any USE that may be
> passed on the command line?

It's a bit more complex: It's adding the USE settings from make.globals,
make.defaults, make.conf and the environment (you can specify a
different order, but I don't think anybody is using that feature). Then
it has a big list like USE="foo bla -* bar foo -bar". So it iterates
over the space delimited elements, adds all flags without - to the final
list, removes flags with - from that list (if present) and clears the
list if it finds a -* (one exception is the x86/ppc/... flag, that is
always in the list).

Marius

-- 
Public Key at http://www.genone.de/info/gpg-key.pub

In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to