LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   strategies to USE flags on a brand new system (https://www.linuxquestions.org/questions/gentoo-87/strategies-to-use-flags-on-a-brand-new-system-922424/)

nclinuxredneck 01-06-2012 10:54 AM

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?

Konphine 01-07-2012 01:13 PM

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.

segmentation_fault 01-07-2012 04:53 PM

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.

i92guboj 01-09-2012 04:08 PM

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.

JESSEJJ89 01-25-2012 08:39 PM

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---------------


unassailable 05-13-2012 09:55 AM

I do agree
 
Quote:

Originally Posted by nclinuxredneck (Post 4568054)
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.

MarcusWebb1966 05-14-2012 08:22 AM

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.

fogpipe 05-26-2012 07:54 AM

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 :p. Its been a few hours now and i beleive i saw somethng about the plasma desktop go by :banghead:

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.

i92guboj 05-26-2012 09:21 AM

Quote:

Originally Posted by fogpipe (Post 4688087)
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.

fogpipe 05-26-2012 10:26 AM

Quote:

Originally Posted by i92guboj (Post 4688134)
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.

i92guboj 05-27-2012 04:12 AM

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.


All times are GMT -5. The time now is 09:53 PM.