GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been using Gentoo now for a while now and love it! But I still seem to be getting into trouble with setting too many USE flags on new systems (emerge compains about random deps that I don't have, and chokes.) So usually I set the ones that are absolutely necessary, install X or apache/sql (depending on the type of system,) and MAKE WORLD NEWUSE. Is this a dumb newbie method, or should you add them all in at once at bootstrap time, or maybe a little at a time. For new sytems it sure would save time only compiling everything once! What are some other people's philosophies with USE flags being added, and installing dependencies for them?
Last edited by nclinuxredneck; 01-06-2012 at 11:19 AM.
Reason: sometimes I type too fast
Are you putting all USE flags in /etc/make.conf? You should only be using a few USE flags in that file for OVERALL general purposes. Other packages should have their separate USE flags in /etc/portage/package.use.
There's no problem in setting them at the install stage, that is, as long as you know how to deal with cricular dependencies and probably a couple other issues that could arise in between.
Otherwise, just continue doing as you do now and you will be fine.
I still seem to be getting into trouble with setting too many USE flags on new systems (emerge compains about random deps that I don't have, and chokes.) So usually I set the ones that are absolutely necessary, install X or apache/sql (depending on the type of system,) and MAKE WORLD NEWUSE.
I think you hit the nail on the head there. In my opinion it is better to keep the USE flags in you make.conf generic to prevent issues later on. For the more specific USE flags I always update /etc/portage/package.use. This prevents inadvertent issues with portage.
For reference, here is a good list of USE flags, just in case you wish to add more.
On a related side note, I have personally experience similar issues with compiling due to improper CFLAGS being set in my make.conf. This is an excellent wiki for Gentoo safe CFLAGS.
Last edited by unassailable; 05-13-2012 at 09:56 AM.
Had a look at this and then remembered what happened when I had issues with my USE flags. I'd say to read the thread I'm linking here and then for anyone using SYSTEM (or anything similarly generic) in their USE flags to re-think using that, as apparently it could cause issues. I would like to think that this would not be the case, however, better safe than sorry, I feel. I feel this particularly after having been through the incident referred to below.
I havent had a gentoo install since about 2006 and i had forgotten the USE flags thing. I installed gentoo today from another linux install, booted to it, installed just enough stuff to get fluxbox started with startx, started firefox by Xforwarding from another machine and thought hey, ill jsut install XDM to manage xlogins whle im configuring some stuff.
Well during the above, and from some examples i had seen, i had been adding to the USE flags line in make.conf. So when i typed emerge XDM 217 packages started to emerge . Its been a few hours now and i beleive i saw somethng about the plasma desktop go by
Anyway, here are the USE flags im using, any comments?
Code:
USE="mmx sse sse2 gtk gnome qt4 kde dvd alsa cdr x11-libs/libdrm-2.4.27 libkms x
11-libs/fltk-1.3.0 flac mad nls ogg opengl vorbis"
The fltk was for dillo befor it occured to me that i could Xforward firefox.
These are not USE flags. They are package names. If you want them, you emerge them, you don't add them to USE. But, in any case, you don't usually emerge things like libkms, fltk or libdrm. Libraries are not intended to be installed directly unless you are involved in development. When needed, they'll be pushed as dependencies.
These are not USE flags. They are package names. If you want them, you emerge them, you don't add them to USE. But, in any case, you don't usually emerge things like libkms, fltk or libdrm. Libraries are not intended to be installed directly unless you are involved in development. When needed, they'll be pushed as dependencies.
Ah ok thanks, i must have misunderstood some of the output from emerge.
Surely at some point you meant to add these to /etc/portage/package.keywords (or maybe unmaks or mask). These are used to diverge from the official stable tree for some packages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.