LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 01-06-2012, 10:54 AM   #1
nclinuxredneck
LQ Newbie
 
Registered: Dec 2011
Location: East of Charlotte, NC
Distribution: Gentoo/Sabayon
Posts: 7

Rep: Reputation: Disabled
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
 
Old 01-07-2012, 01:13 PM   #2
Konphine
Member
 
Registered: Jul 2011
Location: Phoenix, New York
Distribution: Slackware 13.37
Posts: 376

Rep: Reputation: 11
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.
 
Old 01-07-2012, 04:53 PM   #3
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
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.
 
Old 01-09-2012, 04:08 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 01-25-2012, 08:39 PM   #5
JESSEJJ89
Member
 
Registered: Dec 2011
Location: North America
Distribution: Gentoo
Posts: 50

Rep: Reputation: 5
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.
 
Old 05-13-2012, 09:55 AM   #6
unassailable
Member
 
Registered: May 2012
Distribution: gentoo, debian, qubes, openELEC
Posts: 42

Rep: Reputation: 2
Talking I do agree

Quote:
Originally Posted by nclinuxredneck View Post
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.
Old 05-14-2012, 08:22 AM   #7
MarcusWebb1966
Member
 
Registered: Mar 2011
Posts: 58

Rep: Reputation: 0
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.
 
Old 05-26-2012, 07:54 AM   #8
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Talking

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.
 
Old 05-26-2012, 09:21 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by fogpipe View Post
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.
 
Old 05-26-2012, 10:26 AM   #10
fogpipe
Member
 
Registered: Mar 2011
Distribution: Slackware 64 -current,
Posts: 550

Rep: Reputation: 196Reputation: 196
Quote:
Originally Posted by i92guboj View Post
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.
 
Old 05-27-2012, 04:12 AM   #11
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu - White Screen of Death (brand new system install) rgp007 Linux - Newbie 11 02-07-2010 03:16 PM
brand new to Slackware....... and already lost...... cannot boot system Perquisitor Slackware 19 01-31-2008 06:22 PM
Brand new to Linux. Want to install on new system Warpspasm Linux - Newbie 5 12-27-2007 01:05 PM
A brand new system fenice1976 Linux - General 2 05-16-2004 07:26 PM
How to rebuild glibc with compiler flags designed for my system davidas Debian 1 04-19-2004 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration