Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
good use of USE flags
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
bigbangnet
Apprentice
Apprentice


Joined: 11 Jun 2007
Posts: 174

PostPosted: Sat Jul 21, 2012 1:33 pm    Post subject: good use of USE flags Reply with quote

last time I installed my gentoo system, I think I didn't use the USE flag properly so I think I ended up with a somewhat bloated system (on a gentoo scale I mean...not ubuntu scale mwuahaha). So I went back to reading some docs on the Gentoo wiki and gentoo website.... and ended up a bit confused so I hope someone with more experience than me will help me.

First, I just wanna tell what type of system I want that way it should be clear from the start what I want that way theres no confusion later on. I want a gentoo as a multimedia gaming station. So video, photos, some games (using wine and not of course) and that's about it. There might be more but this should be a good start. First i choosed my profile which i set up as desktop...nothing more as I want XFCE. I love that desktop managment. Just simple look and light too... I love it.

The way I understand it, the profile already have some use flag set up in it. Also, when I "install" through portage, I also read that it it uses the neccessary use flags even if its not in the use flag variable in make.conf.

I guess my question is what USE flags should I use...or how should I read the results of "emerge --pretend --verbose [package name here] ?

I just don't want to end up with unneccessary files, packages in my system as this takes a hell of a time to compile anyway.
_________________
I'm a noob, be gentle with me. TEACH ME
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10273
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Jul 21, 2012 1:54 pm    Post subject: Re: good use of USE flags Reply with quote

bigbangnet wrote:
The way I understand it, the profile already have some use flag set up in it. Also, when I "install" through portage, I also read that it it uses the neccessary use flags even if its not in the use flag variable in make.conf.
No, Portage will not automatically use necessary USE flags to get a package to compile. Instead, it will complain and say something like, "Package X needs package Y with USE flag Z. Please make the necessary USE flag changes."

Now, that said, as of EAPI 1, ebuilds are allowed to default USE flags, but these defaults never overrides an explicit USE flag setting, be it from the profile, /etc/make.conf, or /etc/portage/package.use/*.

The only way to know the answer to your question is for you to do the research. If you see a package being pulled in, then find out what the package does by using "emerge -s". If you don't want it, see what depends on it with "equery depends". If it's a USE dependency, then explicitly turn off a USE flag. If not, decide whether to live with it or unmerge the package that depends on it. Wash, rinse, repeat. :wink:

For what it's worth, I believe you've selected the best profile for your intended setup.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43365
Location: 56N 3W

PostPosted: Sat Jul 21, 2012 2:07 pm    Post subject: Reply with quote

bigbangnet,

Hmm, thats difficult. Youe question is like walking into the Scotch Whisky Soicety in Edinburgh as aksing for a Scotch, they have well over 300 different ones.

Since I can't tell you what USe flags to set and unset, I will tall you how to choose.
As you say, your profile, sets some use flags.
Code:
 emerge --info
will show you the flags you have set in your global scope. That include your profile and your make.conf but not /etc/portage/package/.use.

When you do an emerge add -av to the command. This wil show you the flags used by each package to be installed/updated and how they are set.
If there is a flag set you don't want, add -flag in your USE. If there is a flag unset that you would like like, add it to your USE.
Should you require package by packager USE flag control, the entries go in /etc/portage/package.use.

MAke friends with ufed. Thats one of the Use Flag EDitors. It shows you your settings and allows you to change them. A little like make menuconfig for the kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bigbangnet
Apprentice
Apprentice


Joined: 11 Jun 2007
Posts: 174

PostPosted: Sat Jul 21, 2012 2:31 pm    Post subject: Reply with quote

Equery command. I almost forgot about that one. That's a great tool... I gotta use that one, that's gonna help me a lot. thanks for the input guys.
_________________
I'm a noob, be gentle with me. TEACH ME
Back to top
View user's profile Send private message
thens
n00b
n00b


Joined: 07 Apr 2012
Posts: 12

PostPosted: Wed Jul 25, 2012 6:18 pm    Post subject: Reply with quote

Yeh, equery is simply one amazing tool! I'm not even sure, but do i really need portage-utils (anymore?)
Sure, from my experience, they are pretty fast, but equery is actually fast enough for me :-)
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10273
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jul 25, 2012 6:27 pm    Post subject: Reply with quote

You can use equery to find out :wink:
Code:
equery depends portage-utils
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
monicajae
Guru
Guru


Joined: 03 Sep 2003
Posts: 363
Location: Dorset, VT

PostPosted: Fri Aug 17, 2012 3:28 am    Post subject: Re: good use of USE flags Reply with quote

bigbangnet wrote:
last time I installed my gentoo system, I think I didn't use the USE flag properly so I think I ended up with a somewhat bloated system (on a gentoo scale I mean...not ubuntu scale mwuahaha). So I went back to reading some docs on the Gentoo wiki and gentoo website.... and ended up a bit confused so I hope someone with more experience than me will help me.

First, I just wanna tell what type of system I want that way it should be clear from the start what I want that way theres no confusion later on. I want a gentoo as a multimedia gaming station. So video, photos, some games (using wine and not of course) and that's about it. There might be more but this should be a good start. First i choosed my profile which i set up as desktop...nothing more as I want XFCE. I love that desktop managment. Just simple look and light too... I love it.

The way I understand it, the profile already have some use flag set up in it. Also, when I "install" through portage, I also read that it it uses the neccessary use flags even if its not in the use flag variable in make.conf.

I guess my question is what USE flags should I use...or how should I read the results of "emerge --pretend --verbose [package name here] ?

I just don't want to end up with unneccessary files, packages in my system as this takes a hell of a time to compile anyway.
HEHE i like your ubuntu comment :)
Back to top
View user's profile Send private message
Horacius
n00b
n00b


Joined: 19 Aug 2012
Posts: 7

PostPosted: Tue Aug 21, 2012 2:27 am    Post subject: Noob question about use Reply with quote

Hello! Im trying gentoo for the first time, and I would like to knwo if I should mess with hte USE settings in make.conf or should I leavr it alone for now; My only goal now is to learn and I want to start with something functional, maybe install soem window manager and desktop in the future but thats it, so Im wondering if its safe to leave the default settings alone?

Tia!
Back to top
View user's profile Send private message
Kidov
n00b
n00b


Joined: 20 Jul 2006
Posts: 56
Location: Finland

PostPosted: Tue Aug 21, 2012 5:24 am    Post subject: Reply with quote

^yes, it's safe to leave them to defaults. You can play with them later if you wish. When you update your global USE flags you should run
Code:
emerge --update --deep --newuse world


Btw. During the installation you can select a profile to be used. The profile sets most of the required USE flags to get things running.
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