View previous topic :: View next topic |
Author |
Message |
garo Bodhisattva


Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Wed Oct 23, 2002 9:19 am Post subject: What if a ebuild needs a particular use flag ? |
|
|
Suppose ebuild "a" realy needs a library provided by use flag "b", but you don't have "b" in your USE-flags . Does "a" still gets compiled (with "b" support) ? |
|
Back to top |
|
 |
pjp Administrator


Joined: 16 Apr 2002 Posts: 20589
|
Posted: Wed Oct 23, 2002 4:11 pm Post subject: |
|
|
You would type Code: | # USE="b"
# emerge a | Which tells the environment to set USE to 'b', which will be recognized during emerges in that terminal. I've not done this, so someone correct me if I'm wrong.
When I've had "-bar" in my USE varialbe (in make.conf), and package foo requires bar, emerge foo has failed. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
 |
SmegTheLight Tux's lil' helper

Joined: 05 Jul 2002 Posts: 97 Location: 3rd Planet
|
Posted: Wed Oct 23, 2002 7:33 pm Post subject: |
|
|
You can also just put the USE="xxx" in front of the ebuild command so it only affects that run of emerge instead of all emerges from that terminal session.
As for the "a" needs "b" question, my understanding is that if ebuild "A" really needs a library, then it is a dependancy in the ebuild that will get built regardless of the USE flags.
For instance, XMMS depends on gtk. If you emerge it, it will also merge the gtk package even if you have USE="-gtk"
On the flip side, libxml is an optional dependancy for XMMS. If "xml" is one of your use flags, then when you emerge XMMS, it will also emerge libxml, and build xml features into XMMS.
This is why you use the "-p" option with emerge - to see what other packages it wants to/needs to install. (ie. emerge -p xmms) |
|
Back to top |
|
 |
garo Bodhisattva


Joined: 15 Jul 2002 Posts: 860 Location: Edegem,BELGIUM
|
Posted: Sat Oct 26, 2002 9:17 am Post subject: |
|
|
SmegTheLight wrote: |
For instance, XMMS depends on gtk. If you emerge it, it will also merge the gtk package even if you have USE="-gtk" |
Thanks, i wanted to delete gtk from my use flags but i didn't know if some packages like xmms could be installed. |
|
Back to top |
|
 |
|