Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Does this USE organization work or improper formatting?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
adversity
n00b
n00b


Joined: 15 Aug 2011
Posts: 45
Location: Louisville, KY

PostPosted: Mon Aug 22, 2011 9:57 pm    Post subject: Does this USE organization work or improper formatting? Reply with quote

Tried searching and couldn't find exactly what I was looking for. I was just curious if this will work in my make.conf? Or do I need to remove the custom USE titles?

Code:
USE="gnome gtk dbus X bash-completion alsa"
PROCUSE="${USE} mmx sse sse2 sse3 ssse3"
NOUSE="${PROCUSE} -kde -qt4 -plasma -bluetooth -cups"


OR does it need to be like this:

Code:
USE=""
USE="${USE} gnome gtk dbus X alsa bash-completion mmx sse sse2 sse3 ssse3"
USE="${USE} -kde -qt4 -plasma -bluetooth -cups"

?


Last edited by adversity on Mon Aug 22, 2011 10:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
dwbowyer
Apprentice
Apprentice


Joined: 18 Apr 2008
Posts: 155

PostPosted: Mon Aug 22, 2011 10:04 pm    Post subject: Re: Does this USE organization work or improper formatting? Reply with quote

EDIT: Your example would only use flags set in first line the other variables would be assigned (have values) that portage wouldn;t know to use
unless you hacked the .py files to use them.

Code:
# General USE flags
USE="gnome gtk dbus X bash-completion alsa"
# Processor USE flags
USE="${USE} mmx sse sse2 sse3 ssse3"
# Disabled USE flags
USE="${USE} -kde -qt4 -plasma -bluetooth -cups"


OR
Code:
# General USE flags
GENUSE="gnome gtk dbus X bash-completion alsa"
# Processor USE flags
PROCUSE="mmx sse sse2 sse3 ssse3"
# Disabled USE flags
NOUSE="-kde -qt4 -plasma -bluetooth -cups"
USE="${GENUSE} ${PROCUSE} ${NOUSE}"


Last edited by dwbowyer on Mon Aug 22, 2011 10:06 pm; edited 2 times in total
Back to top
View user's profile Send private message
adversity
n00b
n00b


Joined: 15 Aug 2011
Posts: 45
Location: Louisville, KY

PostPosted: Mon Aug 22, 2011 10:06 pm    Post subject: Reply with quote

Exactly what I was looking for, thank you my man ;) I'm a little bit OCD when it comes to config files heh
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Tue Aug 23, 2011 2:12 am    Post subject: Reply with quote

I recommend you use only the second style. Any definitions in /etc/make.conf affect the environment in which ebuilds run. I have seen people post problem reports that were traced back to them polluting their environment with "clever" custom names that happened to interact with various build systems.
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Thu Oct 11, 2012 12:07 pm    Post subject: Reply with quote

Just add:
Code:
unset GENUSE PROCUSE NOUSE

after the last line in dwbowyer's second example.

Or use:
Code:
# Fubar flags:
USE+=' foo bar -baz'

I'm assuming make.conf allows bash: if not, forget this part. :)

Note that there is a space there. If you want to be anal, at the end, add:
Code:
USE=${USE# }

..to get rid of any extra space that might be at the front.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum