Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Gentoo Linux Help > What combination of USE flags work for you ?

Forgot Password?
 Gentoo Linux Help   For help and discussion related to Gentoo Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 01-31-2009   #1 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
What combination of USE flags work for you ?

I think it could be useful for new Gentoo users to have USE flag combinations that others use/know work. On a few early Gentoo installs I ran into trouble with the default USE flags ... which forced me to try other combinations to get the system up and running.

My last build (on an Acer Laptop) has the following make.conf file
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.

#next lines original file entries
#CFLAGS="-O2 -pipe"
#CXXFLAGS="-O2 -pipe"

#next line replacement for above
CFLAGS="-march=athlon64 -O2 -pipe"
CXXFLAGS="${CFLAGS}"

#next line added to optimise for dual processors
MAKEOPTS="-j3"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult Gentoo Linux Documentation -- Changing the CHOST variable before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

#next line original file entry
#USE="mmx sse sse2"

#next line replacement for above - added symlink for kernel symlink auto update
USE="X alsa cairo cdr clamav dvd firefox ieee1394 kde opengl qt4 qt3 xine symlink esd gnome imlib minimal nls spell truetype xinerama"
#USE = “X alsa cairo cdr clamav dvd firefox ieee1394 kde opengl qt4 qt3 xine”
# added esd gnome imlib minimal nls spell truetype xinerama for IceWM install

#next lines added to allow portage to function until mirrorselect can be emerged
#GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
So what USE flags work for you ?
Jonathan183 is offline  


Reply With Quote
Old 01-31-2009   #2 (permalink)
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 439
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
My current make.conf:

Code:
CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j9 -l8"
ACCEPT_KEYWORDS="~amd64"
FEATURES="buildpkg parallel-fetch fixpackages -userfetch"
PORTDIR_OVERLAY="/usr/local/portage/quad"
PKGDIR="/usr/local/portage/packages"
DISTDIR="/usr/local/portage/distfiles"
RPMDIR="/usr/local/portage/rpm"
PORTAGE_TMPDIR="/var/tmp"
VIDEO_CARDS="nvidia nv v4l vesa"
INPUT_DEVICES="keyboard mouse evdev"
ALSA_CARDS="hda-intel"
LINGUAS="en en_US"
USE="
# A
acpi addressbook alsa applet -arts avahi
# B
bluetooth branding browserplugin bzip2
# C
cairo calendar camera cdaudio cdda cddb cdr cdrkit crypt css cups curl
# D
dbus designer-plugin dga dhcp dhcpcd disk-partition divx dvd dvdr dvdread
# E
eac3 eds emovix encode esd extrafilters exif
# F
fam fax fbcondecor ffmpeg flac fuse
# G
gdl gedit geolocation gif git glitz gnome gpg gphoto2 gpm gstreamer gtk guile
# H
hal hddtemp htmlhandbook hvm
# I
ieee1394 imagemagick inotify -ipv6 irc
# J
java javascript jpeg jpeg2k
# K
-kde
# L
lame lm_sensors libburn libnotify
# M
mad matroska messenger mjpeg mmx mmxext mp3 mp4 mp3tunes mpeg mplayer msn mtp multilib musepack musicbrainz mysql mysqli
# N
nautilus network networking newspr nfs npp nptl nptlonly nvidia nsplugin
# O
offensive opengl ogg oss
# P
pdf php plasma plugins png ppds pulseaudio
# Q
qt3 qt4 quicktime
# R
rdesktop real realmedia ruby
# S
samba sdl smp sms sndfile spell sse sse2 ssse3 startup-notification subversion svg svn
# T
taglib tagwriting theora tiff tools totem transparency truetype type1
# U
usb
# V
v4l v4l2 vcd vnc visualization vorbis
# W
wav wavpack webkit wifi win32codecs wma wmf wmp
# X
X x264 xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid
# Y
yahoo
# Z
zeroconf zip"
source /usr/local/portage/layman/make.conf
It should be noted that I run the "Funtoo" variant (Daniel Robbins portage tree) and I usually make my own make.conf by hand, and not even use the one provided by the build scripts.
__________________

Linux User #376741
Preferred Linux Distro: Funtoo
Screenshots
Remember, Ubuntu is A Linux distribution, not THE Linux distribution.

There is no need to login to the GUI as root!
gruven is offline   Reply With Quote
Old 01-31-2009   #3 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
Thanks for sharing gruven ... thats quite a USE flag string ...
Funtoo but I think I'd better stick with stable ...
Jonathan183 is offline   Reply With Quote
Old 02-01-2009   #4 (permalink)
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 439
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
Quote:
Originally Posted by Jonathan183 View Post
Thanks for sharing gruven ... thats quite a USE flag string ...
Funtoo but I think I'd better stick with stable ...
Yeah, my use flags are backed up with every install I have ever had, and I am sure there are some that aren't needed anymore, but it hasn't caused any problems. I like to customize my builds as I see fit, and I have some in /etc/portage/package.use/files.

I also like to specify different directories for my distfiles, packages, etc... because I can switch between funtoo and portage easily as my mind sees fit (not just switch branches, but remove /usr/portage and download a new tarball and not lose anything.

I have been using Gentoo for quite a few years now, and I can handle the instability in funtoo, although it is actually quite stable.
__________________

Linux User #376741
Preferred Linux Distro: Funtoo
Screenshots
Remember, Ubuntu is A Linux distribution, not THE Linux distribution.

There is no need to login to the GUI as root!
gruven is offline   Reply With Quote
Old 02-01-2009   #5 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,100
I use Gentoo also and my USE flags look quiet like those gruven uses with the exception of one two plus/minus flags. gruven, I like how you have split the use flags Alphabetically, it keeps everything nice and pretty. I think I'm going to use your idea because it makes sense too. Anything I should be aware of by using this method?
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 02-01-2009   #6 (permalink)
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 439
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
Just make sure you comment out anything you don't plan on using as a use flag, and keep everything in the parenthesis like so: USE="everything goes here no matter what".
__________________

Linux User #376741
Preferred Linux Distro: Funtoo
Screenshots
Remember, Ubuntu is A Linux distribution, not THE Linux distribution.

There is no need to login to the GUI as root!
gruven is offline   Reply With Quote
Old 02-01-2009   #7 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
Hi MikeTbob - any chance of posting the magic combination that works for you? ... maybe I've gone mad but I'm sure the original post had use as one long string ... I would have commented on the seperation as well if I had seen it ... the custom portage tree had not really crossed my mind - I probably would run separate root partitions and share user data . Maybe I'll get a bit more creative with the config when I'm more familiar with Gentoo ...
Jonathan183 is offline   Reply With Quote
Old 02-01-2009   #8 (permalink)
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 439
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
Quote:
Originally Posted by Jonathan183 View Post
Hi MikeTbob - any chance of posting the magic combination that works for you? ... maybe I've gone mad but I'm sure the original post had use as one long string ... I would have commented on the seperation as well if I had seen it ... the custom portage tree had not really crossed my mind - I probably would run separate root partitions and share user data . Maybe I'll get a bit more creative with the config when I'm more familiar with Gentoo ...
They weren't seperated before, I edited it to do that.

I usually keep the normal portage tree, layman trees, a funtoo tree, and my own local overlay, but this time I left out the regular portage tree and just went with the funtoo tree because it is being updated daily and I like the changes Daniel is making.
__________________

Linux User #376741
Preferred Linux Distro: Funtoo
Screenshots
Remember, Ubuntu is A Linux distribution, not THE Linux distribution.

There is no need to login to the GUI as root!
gruven is offline   Reply With Quote
Old 02-01-2009   #9 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,100
Quote:
Originally Posted by Jonathan183 View Post
Hi MikeTbob - any chance of posting the magic combination that works for you? ... maybe I've gone mad but I'm sure the original post had use as one long string ... I would have commented on the seperation as well if I had seen it ... the custom portage tree had not really crossed my mind - I probably would run separate root partitions and share user data . Maybe I'll get a bit more creative with the config when I'm more familiar with Gentoo ...
Hiya Jonathan, my use flags are on just one line as you mentioned but I edited it here so it wouldn't mess up the forum borders and width.

Code:
 CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j2"
USE="symlink 3dnow x86 acc acpi acl alsa apm arts asf avi avahi bitmap-fonts
cddb cdparanoia cdr crypt cups dbus dvd eds encode ffmpeg firefox flac fortran
f77 foomaticdb ftp gdbm gnome gphoto2 gif glitz gpm gstreamer gtk hal imlib 
java jpeg kerberos kde ldap libg++ libwww lmsensors mad mailwrapper mbox 
mcal mdnsresponder-compat mikmod mime mmx motif mp3 mpeg mplayer mysql 
ncurses nls nsplugin nvidia oggvorbis opengl pam parport pdflib png ppds python 
oav qt3 qt4 quicktime readline ruby samba sdl snmp spell ssl startup-notification 
svga tcpd truetype type1 usb win32codecs yahoo X xcomposite xine xml xml2 
xmms xcb xvid xv xvmc zeroconf zlib"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="nvidia"
ALSA_CARDS="intel"
NOCOLOR="color=no"
PORTDIR="/mnt/portage"
DISTDIR="/mnt/portage/distfiles"
PORT_LOGDIR="/var/log/portage"
I just realized I use wayyyyy to many use flags and I haven't changed my CFLAGS or MAKEOPTS since before I purchased a new MOBO, which is a
Code:
cpu:0
          description: CPU
          product: Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz
          vendor: Intel Corp.
          physical id: 4
          bus info: cpu@0
          version: 6.7.6
          serial: 0001-0676-0000-0000-0000-0000
          slot: CPU 1
          size: 2500MHz
          capacity: 2500MHz
          width: 64 bits
          clock: 200MHz
. So MAKEOPTS="-j3" is better for dual CPU's?
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 02-01-2009   #10 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
Quote:
Originally Posted by MikeTbob View Post
So MAKEOPTS="-j3" is better for dual CPU's?
From the handbook section 5.d ...
Quote:
MAKEOPTS
With MAKEOPTS you define how many parallel compilations should occur when you install a package. A good choice is the number of CPUs in your system plus one, but this guideline isn't always perfect.
Thats why I set -j3 for my dualcore setup. But I guess its a guide. Gruven has quite different values ... I was going to ask but thought I'd do a bit more reading first

I'm sure last time I looked at USE flag list it was a bit shorted than this ... but I also remember reading somewhere about causing problems having too many USE flags. Which is why I was a bit suprised by the long string.

As you know Gentoo is not my main distro (so absolute optimisation is not my aim) ... I ran into trouble because the default flags didn't really work for me. I thought having some more combinations of things that work might help others (and me next time I get in trouble). Having said that I'm picking up some great tips along the way
Jonathan183 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 02:04 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2