Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-20-2008, 08:08 PM
Mark Hobley
 
Posts: n/a
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.
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 08:48 PM
J.O. Aho
 
Posts: n/a
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
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 09:53 PM
Arthur Hagen
 
Posts: n/a
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

Reply With Quote
  #4 (permalink)  
Old 04-21-2008, 08:13 AM
pk
 
Posts: n/a
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.

Reply With Quote
  #5 (permalink)  
Old 04-21-2008, 12:50 PM
Douglas O'Neal
 
Posts: n/a
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
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:59 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Loans | Blog5 Game Cheats | Home Loan | Loan | Mortgage Calculator



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109