Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What if a ebuild needs a particular use flag ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Wed Oct 23, 2002 9:19 am    Post subject: What if a ebuild needs a particular use flag ? Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20589

PostPosted: Wed Oct 23, 2002 4:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
SmegTheLight
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2002
Posts: 97
Location: 3rd Planet

PostPosted: Wed Oct 23, 2002 7:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
garo
Bodhisattva
Bodhisattva


Joined: 15 Jul 2002
Posts: 860
Location: Edegem,BELGIUM

PostPosted: Sat Oct 26, 2002 9:17 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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