View previous topic :: View next topic |
Author |
Message |
adversity n00b
Joined: 15 Aug 2011 Posts: 45 Location: Louisville, KY
|
Posted: Mon Aug 22, 2011 9:57 pm Post subject: Does this USE organization work or improper formatting? |
|
|
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 |
|
|
dwbowyer Apprentice
Joined: 18 Apr 2008 Posts: 155
|
Posted: Mon Aug 22, 2011 10:04 pm Post subject: Re: Does this USE organization work or improper formatting? |
|
|
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 |
|
|
adversity n00b
Joined: 15 Aug 2011 Posts: 45 Location: Louisville, KY
|
Posted: Mon Aug 22, 2011 10:06 pm Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Tue Aug 23, 2011 2:12 am Post subject: |
|
|
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 |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Thu Oct 11, 2012 12:07 pm Post subject: |
|
|
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:
..to get rid of any extra space that might be at the front. |
|
Back to top |
|
|
|