Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
use variable question ?
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
kemu
n00b
n00b


Joined: 19 Mar 2003
Posts: 32
Location: Belgium

PostPosted: Wed Mar 19, 2003 2:58 pm    Post subject: use variable question ? Reply with quote

I've read all the how to's on this subject I get how to use this var
but I don't get one thing lke if I set this simple use var use="python gnome"
what does this do then , if I compile an application. Will it use python more optimal if there is python in the software and if I added -python and there was python in the software would it then compile the package less optimal ??
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Wed Mar 19, 2003 3:55 pm    Post subject: Reply with quote

Let's say package foobar has optional Python modules. If "python" is in USE, then those will get installed, otherwise they won't.

On the other hand, let's say package frob is written in Python, or for some other reason requires Python. Then if you emerg frob Python will get installed whether or not "python" is in USE.

The point of USE is to enable or disable optional functionality in ebuilds; it has no effect when a package depends on another.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Wed Mar 19, 2003 4:24 pm    Post subject: Reply with quote

Fantastic job on explaining USE variables Carlos! That's the very best quick and precise description I have seen. For anyone looking for my very very very long winded description and a questions and answers thread can check out this thread.

[sigh] I still don't get the USE variables. (I do now)

Regards,
BonezTheGoon
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Thu Mar 20, 2003 2:16 am    Post subject: Reply with quote

BonezTheGoon wrote:
Fantastic job on explaining USE variables Carlos!
Thanks. :)

I just realized one thing I should clarify, though. Let's say I'm emerging nethack, which is influenced by the "qt" USE variable. Now, even though I have QT installed, if I put "-qt" in USE then nethack's QT-based GUI won't get compiled. This could be useful if, say, I only played nethack from the console.

So with USE flags you can make your system lean in two ways: by preventing the merging of unnecessary optional dependencies, and by preventing the building of optional functions that would make a package larger.
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Mar 20, 2003 5:26 am    Post subject: Reply with quote

Moved from Other Things Gentoo.
_________________
Quis separabit? Quo animo?
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