![]() |
|
|
|||
|
Gentoo - Questions about USE flags
In Gentoo:
In the make.conf configuration file, is there a way to disable all USE flags by default, for example by using a wildcard, then explicitly set the ones that I want? For example, all flags disabled, except the foo and bar flags: USE="-* foo bar" Is it possible to have more than one USE= line in the /etc/make.conf file? For example: USE="foo" USE="bar" Currently my make.conf file has one long USE line which explicitly sets or clears each of the known global flags. Regards, Mark. -- Mark Hobley, 393 Quinton Road West, Quinton, BIRMINGHAM. B32 1QE. |
|
|||
|
Re: Gentoo - Questions about USE flags
Mark Hobley wrote:
> In Gentoo: > > In the make.conf configuration file, is there a way to disable all USE > flags by default, for example by using a wildcard, then explicitly set the > ones that I want? > > For example, all flags disabled, except the foo and bar flags: > > USE="-* foo bar" As far as I know, no. > Is it possible to have more than one USE= line in the > /etc/make.conf file? > > For example: > > USE="foo" > USE="bar" Yes, you can have multiple, but not in the way you suggest, the method would imply that the last USE line would be used and all the previous ones would be "ignored". This is how it's done: USE="line one \ line two \ line three" -- //Aho |
|
|||
|
Re: Gentoo - Questions about USE flags
Mark Hobley wrote:
> In Gentoo: > > In the make.conf configuration file, is there a way to disable all USE > flags by default, for example by using a wildcard, then explicitly set the > ones that I want? > > For example, all flags disabled, except the foo and bar flags: > > USE="-* foo bar" As far as I know, no. > Is it possible to have more than one USE= line in the > /etc/make.conf file? > > For example: > > USE="foo" > USE="bar" Yes, you can have multiple, but not in the way you suggest, the method would imply that the last USE line would be used and all the previous ones would be "ignored". This is how it's done: USE="line one \ line two \ line three" -- //Aho |
|
|||
|
Re: Gentoo - Questions about USE flags
Mark Hobley <markhobley@hotpop.donottypethisbit.com> wrote:
> > Is it possible to have more than one USE= line in the > /etc/make.conf file? > > For example: > > USE="foo" > USE="bar" It's a shell script, so you can do: USE="foo" USE="$USE bar" -- *Art |
|
|||
|
Re: Gentoo - Questions about USE flags
Mark Hobley <markhobley@hotpop.donottypethisbit.com> wrote:
> > Is it possible to have more than one USE= line in the > /etc/make.conf file? > > For example: > > USE="foo" > USE="bar" It's a shell script, so you can do: USE="foo" USE="$USE bar" -- *Art |
|
|||
|
Re: Gentoo - Questions about USE flags
On Sunday 20 April 2008 22:48, J.O. Aho wrote:
>> For example, all flags disabled, except the foo and bar flags: >> >> USE="-* foo bar" > > As far as I know, no. It's indeed possible, and it used to be a widely-used practice for some time for some people. Doing that nowadays is more risky, since there have been cases where stuff has broken due to that, see eg bug #183451. |
|
|||
|
Re: Gentoo - Questions about USE flags
On Sunday 20 April 2008 22:48, J.O. Aho wrote:
>> For example, all flags disabled, except the foo and bar flags: >> >> USE="-* foo bar" > > As far as I know, no. It's indeed possible, and it used to be a widely-used practice for some time for some people. Doing that nowadays is more risky, since there have been cases where stuff has broken due to that, see eg bug #183451. |
|
|||
|
Re: Gentoo - Questions about USE flags
On 04/20/08 16:08, Mark Hobley wrote:
> In Gentoo: > > In the make.conf configuration file, is there a way to disable all USE > flags by default, for example by using a wildcard, then explicitly set the > ones that I want? Yes. USE=-* foo bar > > For example, all flags disabled, except the foo and bar flags: > > USE="-* foo bar" > > Is it possible to have more than one USE= line in the > /etc/make.conf file? > > For example: > > USE="foo" > USE="bar" Never tried it since continuing the USE statement across lines is already easy. USE="-* foo bar" USE=-* \ foo \ bar > > Currently my make.conf file has one long USE line which explicitly sets > or clears each of the known global flags. > > Regards, > > Mark. Doug |
|
|||
|
Re: Gentoo - Questions about USE flags
On 04/20/08 16:08, Mark Hobley wrote:
> In Gentoo: > > In the make.conf configuration file, is there a way to disable all USE > flags by default, for example by using a wildcard, then explicitly set the > ones that I want? Yes. USE=-* foo bar > > For example, all flags disabled, except the foo and bar flags: > > USE="-* foo bar" > > Is it possible to have more than one USE= line in the > /etc/make.conf file? > > For example: > > USE="foo" > USE="bar" Never tried it since continuing the USE statement across lines is already easy. USE="-* foo bar" USE=-* \ foo \ bar > > Currently my make.conf file has one long USE line which explicitly sets > or clears each of the known global flags. > > Regards, > > Mark. Doug |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|