Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Beginner help with USE flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Tristan401
n00b
n00b


Joined: 08 Jan 2014
Posts: 5

PostPosted: Wed Jan 08, 2014 5:21 am    Post subject: Beginner help with USE flags Reply with quote

I have been using Ubuntu for around 2 years now and I have spent SO much time configuring it to perfection.
So I decided I would try Gentoo (after an unsuccessful LFS build)

I am installing from within Ubuntu (see this tutorial: http://www.wikihow.com/Install-Gentoo-Linux-from-Ubuntu)

I am at the part where I set the USE flags in /etc/portage/make.conf

I have no idea what USE flags i need.
Which ones should I put in there?


If it matters, I will be installing Xfce4, Firefox, LibreOffice, Gedit, Guake, Alsa, and Gparted (I'm sure theres a few more, but those are the main ones)
Back to top
View user's profile Send private message
Trovalds
n00b
n00b


Joined: 16 Jun 2011
Posts: 13
Location: Cuiaba/MT - Brazil

PostPosted: Wed Jan 08, 2014 5:47 am    Post subject: Reply with quote

At this phase, you do not need to config any USE flags. I left mine blank all times on a fresh install.

To a desktop with XFCE, look a few lines before USE flags on handbook: "Choosing the Right Profile".

Do it in your chrooted enviroment, then choose the "desktop" profile. It lists other ones, like GNOME and KDE. Do not choose any of these except if you are planning use one of. You can perform this on your new gentoo box too.

Then in your brand new Gentoo box, when you starts to install your new packages (XFCE, etc), portage automatically informs you about dependencies on this or that flag accordling.

At last, BEFORE installing XFCE, KDE, GNOME or anything else related, install xorg-server: http://wiki.gentoo.org/wiki/X_server

PS: sorry my bad english, not my native language.
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Jan 08, 2014 7:53 am    Post subject: Reply with quote

My last full build was using these USE flags. I have a tendency to build all buildable ports in the tree. I exclude ports that are perpetual frustrations for a build up but leave what I can to insure closure.

The CFLAGS here are altered but roughly this was the build. /lib dates 27/06/2013.

Code:
FEATURES variable contains unknown value(s): nodistlocks
Portage 2.1.12.3 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.17, 3.6.6-gentoo i686)
=================================================================
System uname: Linux-3.6.6-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_3.40GHz-with-gentoo-2.2
KiB Mem:     2851516 total,    177996 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 04 Jan 2014 18:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8-r1, 2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.22-r1, 2.23, 2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Wl,-O1,--sort-common,--hash-size=8161,--enable-new-dtags,-z,now,-z,combreloc,--allow-shlib-undefined,--allow-multiple-definition,-z,muldefs -Wno-error -O3 -mfpmath=sse -pipe -finline-limit=4096 -march=nocona -mcx16 -mno-sahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -fbranch-target-load-optimize2 -fdelete-null-pointer-checks -fgcse-las -fgcse-sm -fgraphite-identity -finline-functions -floop-block -floop-interchange  -floop-parallelize-all -floop-strip-mine -fomit-frame-pointer -fsched-stalled-insns-dep=2 -fsched-stalled-insns=2 -fschedule-insns2 -ftree-ccp -ftree-dce -ftree-loop-distribution -ftree-loop-ivcanon -ftree-loop-linear  -ftree-loop-optimize -ftree-pre -ftree-pta -ftree-reassoc -ftree-sink -ftree-sra -ftree-switch-conversion -ftree-ter -funit-at-a-time -funroll-loops -fpeel-loops -funswitch-loops -fvariable-expansion-in-unroller -fweb --param max-vartrack-size=0 --param tracer-max-code-growth=150 --param max-vartrack-size=0 --param tracer-max-code-growth=150 --param max-grow-copy-bb-insns=16 --param max-vartrack-size=0 --param min-insn-to-prefetch-ratio=2 --param max-goto-duplication-insns=11 --param max-gcse-memory=200000000 --param max-inline-insns-single=512 --param max-inline-insns-auto=128 --param max-unrolled-insns=14 --param max-unroll-times=10 --param max-completely-peeled-insns=26 --param max-completely-peel-times=12 --param max-completely-peel-loop-nest-depth=4 --param max-unswitch-insns=18 --param max-unswitch-level=8 --param align-loop-iterations=25 --param tracer-max-code-growth=150 --param max-cse-path-length=20 --param max-cse-insns=2096 --param max-reload-search-insns=4192 --param simultaneous-prefetches=2 --param graphite-max-bbs-per-function=512 -ffast-math -fno-sched-spec-load-dangerous -fno-ivopts -fno-sched-spec-load-dangerous -fprefetch-loop-arrays -ftracer -fmodulo-sched -funsafe-loop-optimizations -Wunsafe-loop-optimizations -fsingle-precision-constant"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3/share/config /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev"
CXXFLAGS="-Wl,-O1,--sort-common,--hash-size=8161,--enable-new-dtags,-z,now,-z,combreloc,--allow-shlib-undefined,--allow-multiple-definition,-z,muldefs -Wno-error -O3 -mfpmath=sse -pipe -finline-limit=4096 -march=nocona -mcx16 -mno-sahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=2048 -fbranch-target-load-optimize2 -fdelete-null-pointer-checks -fgcse-las -fgcse-sm -fgraphite-identity -finline-functions -floop-block -floop-interchange  -floop-parallelize-all -floop-strip-mine -fomit-frame-pointer -fsched-stalled-insns-dep=2 -fsched-stalled-insns=2 -fschedule-insns2 -ftree-ccp -ftree-dce -ftree-loop-distribution -ftree-loop-ivcanon -ftree-loop-linear  -ftree-loop-optimize -ftree-pre -ftree-pta -ftree-reassoc -ftree-sink -ftree-sra -ftree-switch-conversion -ftree-ter -funit-at-a-time -funroll-loops -fpeel-loops -funswitch-loops -fvariable-expansion-in-unroller -fweb --param max-vartrack-size=0 --param tracer-max-code-growth=150 --param max-vartrack-size=0 --param tracer-max-code-growth=150 --param max-grow-copy-bb-insns=16 --param max-vartrack-size=0 --param min-insn-to-prefetch-ratio=2 --param max-goto-duplication-insns=11 --param max-gcse-memory=200000000 --param max-inline-insns-single=512 --param max-inline-insns-auto=128 --param max-unrolled-insns=14 --param max-unroll-times=10 --param max-completely-peeled-insns=26 --param max-completely-peel-times=12 --param max-completely-peel-loop-nest-depth=4 --param max-unswitch-insns=18 --param max-unswitch-level=8 --param align-loop-iterations=25 --param tracer-max-code-growth=150 --param max-cse-path-length=20 --param max-cse-insns=2096 --param max-reload-search-insns=4192 --param simultaneous-prefetches=2 --param graphite-max-bbs-per-function=512 -ffast-math -fno-sched-spec-load-dangerous -fno-ivopts -fno-sched-spec-load-dangerous -fprefetch-loop-arrays -ftracer -fmodulo-sched -funsafe-loop-optimizations -Wunsafe-loop-optimizations -fsingle-precision-constant -fabi-version=0"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodistlocks parallel-fetch preserve-libs protect-owned sfperms unknown-features-warn unmerge-logs userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1,--sort-common,--hash-size=8161,--enable-new-dtags,-z,now,-z,combreloc,--allow-shlib-undefined,--allow-multiple-definition,-z,muldefs"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/VAR_OLD/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="4mb-mod S3TC X X509 Xaw3d a52 aac aalib abook acl acpi activefilter adns aim alsa amr ansi antlr apache ares artworkextra asf asm aspell asterisk async atm attica audiofile authdaemond authfile automap bash-completion bcmath bdf berkdb big-tables binary-drivers bindist bittorrent bl blas blender-game bluetooth bonobo bzip2 cairo cal cal3d calendar canna caps cdb cdda cddb cdf cdio cdparanoia cdr cdrom cgi charmap chroot clamav clearpasswd cli client clisp cluster cmucl colors consolekit corefonts courier cpio cracklib crypt cscope css csv ctype cups curl curlwrappers cursors custom-cflags custom-cpuopts custom-optimization custreloc cvs cxx dbus dc1394 dcc_video dcc_voice declarative dedicated device-mapper dga dhcp dict dillo distribution djbfft dlopen dmx dnd dnotify dnsdb dot3 downloadorder drac dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdarchive dvdchapjump dvdnav dvdr dvi dvlrecscriptaddon eap-sim ecc editor edp eds elf emacs emf emoticon encode enscript escreen evo exif exim exiscan-acl expat extensions extraengine extras faac faad facedetect faillog fam fastcgi fat fax fbcon ffmpeg fftw fi fifo flac flash fltk fmod fontconfig fontforge fonts foomaticdb fortran fpx freetds freetts freetype freewnn ftp g3dvl gcdmaster gcj gconf gd gdbm gdu geoip ggi gif gimp git gkrellm glade glep glgd glib glut gmail gmp gmtfull gmthigh gmttria gnome gnome-keyring gnome-print gnomecanvas gnomecards gnuplot gnutls google google-gadgets gpg gphoto2 gps grammar graph graphite graphviz grub gsettings gsl gssapi gstreamer gtk gtkhtml gtkspell gudev guile gzip h224 h281 h323 hbci hddtemp hdf hdf5 heterogeneous hfs high-ints hpcups hpijs hpn html http httpd ical iconv icq icu ide idea ieee1394 ifc image imagemagick imap inifile ipalias iplayer irc irda ithreads jack java java6 javascript jce jemalloc joystick jpeg jsch kdcraw kde kdecards kdepim kdrive kino lame lapack lcd lcms leim libcaca libffi libkms libmpeg2 libsamplerate libssh2 libxml2 lids lighttpd live lm_sensors lmtp log4j long-double lpsol lto lua lucene lvm lynxkeymap lzma lzo mad mailbox maildir maildrop map maps marble math mathml matrox mbrola md md5 md5sum mdadm mdb mecab mediaplayer memoryview menubar messages mew mgetty mhash migemo milter mime mimencode mixer mjpeg mktemp mmap mms mmx mmxext mng modules mount mouse mozilla mp3 mp3rtp mp3tunes mp4 mpd mpeg mpg123 mpi mplayer mppe-mppc mpx msn mtp mudflap mule multicall multimedia multiprocess multislot mumble mysql nagios-dns nagios-ntp nagios-ping nagios-ssh nas native nautilus ncurses neXt net netboot netcdf network networking new-login nfs nfsv4 nis nntp nokia npp nptl nsplugin nss ntfs ntlm nvidia objc objc++ odbc ode offensive ofx ogdi ogg openal openexr opengl openmp openntpd openssl openxml optimisememory optimization orathreads oro oscar ots pam pango parport parse-clocks passfile pbs pcap pch pcntl pcre pda pdf perl perlsuid pg-intdatetime phonon php physfs picasa pipe player plotutils plugins png pnp policykit portaudio posix postfix postgres postscript povray ppds prelink priority procmail pvr pyqt4 python python3 qdbm qhull qmax qt3support qt4 quotes raw rdesktop readline real recode regex regexp reiserfs remote reports rogue romio rplay rrdtool rss rtc samba sasl savedconfig scanner script sdk sdl secure-delete semantic-desktop sendmail sendto sensord serial server session sguil sharedmem silc simplexml sip skey skk slang slp smime smp smtp sndfile sockets socks5 softquota sound soundtouch source sox spacenav spamassassin speech speex spell sql sqlite sqlite3 srp sse sse2 ssh ssl startup-notification stats stream subject-rewrite subversion svg symlink syslog system-ffmpeg system-sqlite sysvipc szip t1lib tcl tcpd teamarena templates tga theora thesaurus threads tidy tiff timidity tk tokenizer toolkit-scroll-bars tools tos transcode translator transparent-proxy truetype tslib type3 udev uim uml unicode unlock-notify unzip ups urandom usb userlocales utils uudeview uuencode v4l vala vda vdesktop vhosts videos vidix vim vim-pager vlm vnc voice vorbis vserver wav waveout wavpack wddx webdav webkit wifi wiki win32 win32codecs wma wma-fixed wmf word-perfect wordperfect wpg wxwidgets x11vnc x86 xanim xatrix xbase xcb xchatdccserver xcomposite xerces xface xforms xfs xft xim xine xinerama xml xmlrpc xmms2 xosd xpm xprint xrandr xrender xscreensaver xsl xslt xv xvid xvmc yahoo yaz yp zlib zvbi" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="coreboot multiboot pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

You will be asked to package.use, or, mask USE flags for ports during portions of the tree. You can rebuild these later on.


Last edited by augury on Wed Jan 08, 2014 8:01 am; edited 1 time in total
Back to top
View user's profile Send private message
666threesixes666
Veteran
Veteran


Joined: 31 May 2011
Posts: 1248
Location: 42.68n 85.41w

PostPosted: Wed Jan 08, 2014 8:01 am    Post subject: Reply with quote

id just leave it blank and blank. as is, as the config ships....... then when you want to add goodies like avahi, or zeroconf after reading up on the features they are on the wiki you may want to enable them globally......

i generally keep uses to packages ONLY. unless i know i want them system wide. if i want them system wide ill place them in make.conf.
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Wed Jan 08, 2014 8:30 am    Post subject: This is blank. Reply with quote

Etherape smells zeroconf farts the network. Wheres the etherape? This distro is junk man.
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 771
Location: over here

PostPosted: Wed Jan 08, 2014 12:48 pm    Post subject: Re: Beginner help with USE flags Reply with quote

Tristan401 wrote:


If it matters, I will be installing Xfce4, Firefox, LibreOffice, Gedit, Guake, Alsa, and Gparted (I'm sure theres a few more, but those are the main ones)


Reads like you're mainly going to be using gtk apps, so perhaps -qt4 (negative qt4) is a flag you should enable globally. Likewise -pulseaudio if you're not going to be using it since lot's of packages have those flags.
Most things imho should be in /etc/portage/package.use (unless of course you're certain it's a flag you want set/unset in absolutely everything that it can be), that way the flags are set on a by package basis which can make tracking problems down a lot easier.

I also think you should make sure your CFLAGS, INPUT_DEVICES, VIDEO_CARDS and ALSA_CARDS are set correctly and tested before thinking about useflags.

Once you've finished your installation I highly recommend emerging gentoolkit: https://wiki.gentoo.org/wiki/Gentoolkit

This is a list of use flags, I've found it quite useful: http://www.gentoo.org/dyn/use-index.xml
Back to top
View user's profile Send private message
mreff555
Apprentice
Apprentice


Joined: 10 Mar 2011
Posts: 231
Location: Philadelphia

PostPosted: Sat Jan 11, 2014 2:14 pm    Post subject: Reply with quote

Yes, I agree with mrbassie.

You probably don't need a whole lot up front, but you may want to negate -qt, -kde and -pulseaudio
The rest of the settings will come with time. It's actually better to keep these flags pretty sparce and use /etc/portage/package.use
whenever possible.

regardless... here is my make.conf

http://bpaste.net/show/166983/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum