| Gentoo This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-06-2012, 10:54 AM
|
#1
|
|
LQ Newbie
Registered: Dec 2011
Location: East of Charlotte, NC
Distribution: Gentoo/Sabayon
Posts: 7
Rep: 
|
strategies to USE flags on a brand new system
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
|
|
|
|
01-07-2012, 01:13 PM
|
#2
|
|
Member
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376
Rep:
|
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.
|
|
|
|
01-07-2012, 04:53 PM
|
#3
|
|
Member
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 314
Rep:
|
Here are my USE flags in /etc/make.conf:
Code:
USE="vim-syntax jack dvd cdr dbus gtk qt4 alsa X cups foomaticdb ppds usb mmx sse sse2 -kde -gnome -ipv6 -handbook"
which I added up as I was growing my system, not from the begining.
And my entries in package.use:
Code:
$ wc /etc/portage/package.use
42 148 1600 /etc/portage/package.use
So, I tend to aggree with Konphine.
|
|
|
|
01-09-2012, 04:08 PM
|
#4
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,971
|
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.
|
|
|
|
01-25-2012, 08:39 PM
|
#5
|
|
Member
Registered: Dec 2011
Location: North America
Distribution: Gentoo
Posts: 50
Rep:
|
This is how my USE flags are set up in make.conf.
Code:
#------USE_FLAGS_START_HERE-------------
XUSE="truetype X new-login xorg xscreensaver xv xcomposite xinerama opengl aigl$
IMAGEUSE="jpeg gif tiff png svg pdf pdfimport jpeg2k jbig"
MEDIAUSE="alsa pulseaudio mad vidix asf amd64codecs gsm dvd ffmpeg mpeg mad wxw$
GENERAL="samba java bzip2 symlink sqlite python spell xml templates"
SYSTEM="hal fam dbus aoos thread cups hpcups usb symlink udev"
NOTUSE="-qt4 -ipv6 -kde"
GNOMEUSE="gnome gstreamer nautilus cairo glitz gtk -gnome-keyring"
USE="${XUSE} ${IMAGEUSE} ${MEDIAUSE} ${GENERAL} ${SYSTEM} ${NOTUSE} ${GNOMEUSE}"
#------USE_FLAGS_END_HERE---------------
Last edited by JESSEJJ89; 01-25-2012 at 08:40 PM.
|
|
|
|
05-13-2012, 09:55 AM
|
#6
|
|
LQ Newbie
Registered: May 2012
Posts: 18
Rep: 
|
I do agree
Quote:
Originally Posted by nclinuxredneck
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.
|
|
|
1 members found this post helpful.
|
05-14-2012, 08:22 AM
|
#7
|
|
Member
Registered: Mar 2011
Posts: 58
Rep:
|
My Two Pence Worth...
Hi,
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.
C Compiler cannot Compile executables.
|
|
|
|
05-26-2012, 07:54 AM
|
#8
|
|
Member
Registered: Mar 2011
Distribution: Slackware 64 Current
Posts: 264
Rep:
|
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.
|
|
|
|
05-26-2012, 09:21 AM
|
#9
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,971
|
Quote:
Originally Posted by fogpipe
Anyway, here are the USE flags im using, any comments?
|
Code:
USE="...x11-libs/libdrm-2.4.27 libkms x11-libs/fltk-1.3.0..."
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.
|
|
|
|
05-26-2012, 10:26 AM
|
#10
|
|
Member
Registered: Mar 2011
Distribution: Slackware 64 Current
Posts: 264
Rep:
|
Quote:
Originally Posted by i92guboj
Code:
USE="...x11-libs/libdrm-2.4.27 libkms x11-libs/fltk-1.3.0..."
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.
|
|
|
|
05-27-2012, 04:12 AM
|
#11
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,971
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:38 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|