Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
post your make.conf
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 13, 14, 15  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3753
Location: sleeping in the bathtub

PostPosted: Mon Sep 21, 2009 6:27 pm    Post subject: Reply with quote

Beat this one, suckers;
Code:
CHOST='i686-gentoo-linux-uclibc'

UCLIBC_CPU='PENTIUMIII'

#CFLAGS="-Os -march=pentium3 -pipe"
CFLAGS="-Os -march=pentium3 -fforce-addr -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"

LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
LDFLAGS="${LDFLAGS} -Wl,--as-needed"

MAKEOPTS='-j2'

FEATURES='strict sandbox userfetch userpriv usersandbox parallel-fetch sfperms'
FEATURES="${FEATURES} collision-protect"
FEATURES="${FEATURES} noinfo nodoc noman"
FEATURES="${FEATURES} buildpkg"

USE="png jpeg threads
nocxx -readline -xml -cracklib -python -cxx -crypt -perl -openmp -tcpd"

PORTAGE_NICENESS='19'

EMERGE_DEFAULT_OPTS='--verbose'
EMERGE_WARNING_DELAY='3'

EBEEP_IGNORE='yes'

CLEAN_DELAY='3'

GENTOO_MIRRORS='http://ftp.heanet.ie/pub/gentoo/'

PORTAGE_BANDWIDTH='200'

PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes --bwlimit=${PORTAGE_BANDWIDTH}"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O \${DISTDIR}/\${FILE} \${URI} --limit-rate=${PORTAGE_BANDWIDTH}k"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O \${DISTDIR}/\${FILE} \${URI} --limit-rate=${PORTAGE_BANDWIDTH}k"

DISTDIR='/var/portage/distfiles'
PORTDIR_OVERLAY='/var/portage/overlay'
PORTAGE_TMPDIR='/var/portage/tmp'
PKGDIR='/var/portage/packages'

GRUB_MAX_KERNEL_SIZE='2'


:P
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
pdw_hu
Apprentice
Apprentice


Joined: 02 Jun 2008
Posts: 200
Location: Budapest, Hungary

PostPosted: Mon Sep 21, 2009 6:52 pm    Post subject: Reply with quote

Mine, tried to keep it minimized, most of the customizations are in /etc/portage/packages.use

Code:
CFLAGS="-O2 -march=core2 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"

USE="-*"
USE="${USE} X alsa bzip2 cairo cups consolekit mmx ncurses nptl readline unicode pam pch sse sse2 ssse3 ssl sqlite threads zlib"
USE="${USE} xorg dri xcb"
USE="${USE} mad jpeg png truetype opengl"
USE="${USE} hal dbus"

MAKEOPTS="-j3"
ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="*"
VIDEO_CARDS="intel"
INPUT_DEVICES="synaptics evdev"
LINGUAS="en_US"
FEATURES="noinfo nodoc usersync userpriv userfetch"
ACCEPT_KEYWORDS="~amd64"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
Back to top
View user's profile Send private message
sunoterra
n00b
n00b


Joined: 04 Jun 2004
Posts: 39
Location: Michigan

PostPosted: Wed Oct 07, 2009 2:07 pm    Post subject: using on a dell optiplex gx260 at work Reply with quote

mine's pretty simple.

Code:

# Build-time functionality
# ========================
USE="avahi cddb ffmpeg gstreamer kpathsea lcms mmx nsplugin sse sse2
     startup-notification schroedinger svga threads threadsafe xprint
     xscreensaver -arts -eds -emboss -esd -evo -firefox -fortran -gnome
     -gnome-keyring -gstreamer -isdnlog -kde -kerberos -ldap -nls -oss
     -qt3 -qt3support -qt4"

# Host Setting
# ============
CHOST="i686-pc-linux-gnu"

# Host and optimization settings
# ==============================
CFLAGS="-O3 -march=i686 -mtune=pentium4 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

# Language(s)
# ==========
LINGUAS="en"

# Peripheral(s)
# ===========
INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="radeon"

# Advanced Features
# =================
CCACHE_DIR="/media/disk/ccache"
CCACHE_SIZE="2G"
PORTAGE_NICENESS=6


i specify most of my use flags, per-package, within /etc/portage/package.use and from time-to-time, add the most commonly used ones to this file.

/proc/cpuinfo
Code:

processor   : 0
vendor_id   : GenuineIntel
cpu family   : 15
model      : 2
model name   : Intel(R) Pentium(R) 4 CPU 2.26GHz
stepping   : 4
cpu MHz      : 2266.391
cache size   : 512 KB
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 2
wp      : yes
flags      : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pebs bts
bogomips   : 4532.78
clflush size   : 64
power management:
Back to top
View user's profile Send private message
aguettinger
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 84

PostPosted: Sun Nov 08, 2009 9:29 pm    Post subject: Reply with quote

Pretty simple, I use a desktop profile.

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.
CFLAGS="-mcpu=G5 -O2 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="powerpc-unknown-linux-gnu"
MAKEOPTS="-j5"
PORTAGE_NICENESS=3
USE="altivec apache2 avahi clamav ctype emacs exif ffmpeg gd gnome gtk java
     libwww mplayer mysql php sqlite -kde -vhosts"
GENTOO_MIRRORS="ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://mirror.netcologne.de/gentoo/ ftp://mirror.leaseweb.com/gentoo/"
FEATURES="ccache"
CCACHE_SIZE="2G"
PORTDIR_OVERLAY="/usr/local/portage/"
INPUT_DEVICES="evdev keyboard mouse"
VIDEO_CARDS="nv"
#LINGUAS="en en_GB de fr"
#ALSA_CARDS="aoa usb-audio"
#PORT_LOGDIR="/var/log/portage/"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save"

_________________
regards
- andy
Back to top
View user's profile Send private message
dylix
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 261
Location: Atlanta

PostPosted: Mon Nov 09, 2009 4:31 am    Post subject: Reply with quote

:oops:
Code:
# These settings were set by the metro build script that automatically built this stage.
# Please consult /etc/make.conf.example for a more detailed example.

ACCEPT_KEYWORDS="~amd64"
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
USE="-zeroconf -gnome aspell 3dnow a52 aac acpi alsa bzip2 composite cdr cleartype crypt dbus dts dvdr gmplayer ffmpeg firefox gimp gzip gtk hal jpeg jpeg2k lame mmx mp3 mp4 mpeg mplayer ogg opengl png quicktime samba smp spell sse sse2 ssl svg thunar tcl tk v4l2 x264 xscreensaver xv xvid startup-notification xcomposite X xinerama vdpau -cups -kde threads -qt -qt3 -qt4 -arts -esd"
VIDEO_CARDS="nvidia"
PORTDIR_OVERLAY=/usr/local/portage
INPUT_DEVICES="evdev"

_________________

Rape is such a strong word, I prefer surprise sex.
http://plutonic.mine.nu/
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Mon Nov 09, 2009 12:43 pm    Post subject: Reply with quote

Which WM are you using ? Something that use GTK ?
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
cookiecrusher
n00b
n00b


Joined: 10 Jun 2008
Posts: 23

PostPosted: Mon Nov 09, 2009 2:11 pm    Post subject: Reply with quote

I tend to comment my (config) files a lot :~ (damn habit, but everyone (as in programmer and sysadmin :s) knows: Comments are essential 8])

Code:
####################################################################################
### Sometimes real bitchy home-/media-/fileserver that ruins most of my time T_T ###
####################################################################################
### Atom330, RAID10 ###
#######################
### ICH7, HDA Intel ###
###  RTL8169, i915  ###
### bitchy Escalade ###
#######################

#####################
### Standard Crap ###
#####################

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5"

###########################
### Sync + Mirror Crap ####
###########################
### slow servers suck! ####
###########################

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/
ftp://mirror.netcologne.de/gentoo/ "

#####################################
### Portage + Emerge Options Crap ###
#####################################

EMERGE_DEFAULT_OPTS="--verbose"
PORTAGE_NICENESS=10
AUTOCLEAN="yes"
FEATURES="metadata-transfer ccache"
CCACHE_SIZE="512M"
PORTAGE_TMPDIR=/var/tmp
CCACHE_DIR="${PORTAGE_TMPDIR}/ccache"

#########################
### Portage Mail Crap ###
#########################

PORTAGE_ECLASS_WARNING_ENABLE="0"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_ELOG_MAILURI="user@localhost localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for \${PACKAGE} on \${HOST}"
PORTAGE_ELOG_MAILFROM="portage@localhost"

##############################
### External Hardware Crap ###
##############################

INPUT_DEVICES="evdev"
VIDEO_CARDS="intel"

################################################################################
### languages (I do love programs that need their extra thingy going on ~_~) ###
################################################################################

LINUGAS="en en_US en_GB de"

########################################
### local overlay for bitchy ebuilds ###
########################################

PORTDIR_OVERLAY="/usr/local/portage"

######################
### Use Flags Crap ###
######################
### all hail Icewm ###
######################

USE="-gtk -gnome -kde -qt3 -qt4 -cups -ipv6 -apache2"
USE="${USE} a52 aac alsa audiofile authdaemond"
USE="${USE} bash-completion"
USE="${USE} cddb crypt cjk curl cvs"
USE="${USE} fam ffmpeg flac"
USE="${USE} gdbm git gnutls"
USE="${USE} hal"
USE="${USE} icecast id3 imap"
USE="${USE} java"
USE="${USE} lame libsamplerate libwww loop-aes"
USE="${USE} maildir mmx mp3 musepack mysql"
USE="${USE} network nls"
USE="${USE} ogg opengl oss"
USE="${USE} ruby"
USE="${USE} sasl sqlite speex sse sse2 ssl ssse3 subversion"
USE="${USE} tcl threads tk truetype"
USE="${USE} vim-syntax vorbis"
USE="${USE} wavpack"
USE="${USE} X x264 xml xvid"
USE="${USE} zsh-completion"


#################################################
###             ALL HAIL LELOUCH!             ###
#################################################
###                Baka Hayate!               ###
#################################################
###          Uruchai uruchai uruchai!         ###
#################################################


Kill those comments and it's a pretty ordinary make.conf :[
(and it definitely should be revised ~_~)
_________________
~ If love can kill people, surely hatred can save them ~
Noir - Altena, Ep 26
Back to top
View user's profile Send private message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3327

PostPosted: Tue Dec 15, 2009 4:34 pm    Post subject: Reply with quote

Code:
CFLAGS="-march=core2 -O2 -pipe -ggdb"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j6"
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
USE="X gtk gnome -kde -qt mmx sse sse2 mozbranding dvd alsa mad jpeg jpg mp3 cdr truetype win32codecs unicode nvidia png xine tabs samba vorbis wma imagemagick xvid scrobbler xulrunner artworkextra apache2 php mysql webkit ffmpeg xcb glitz emerald mng htmlhandbook msn consolekit nsplugin sql wav h323 sip pipechan dns aspell kdrive extra svg extras divx ogg dbus opengl flac mpeg gstreamer pdf dvdr tiff unsupported esd hal networkmanager nautilus wavpack ctype filter openssl simplexml xml"
FEATURES="splitdebug ccache sandbox nostrip fixpackages parallel-fetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="mouse keyboard evdev"
LINGUAS="en_GB en"
PORTAGE_ELOG_CLASSES="warn error log info"
CCACHE_DIR="/var/tmp/ccache/"
CCACHE_SIZE="5G"
source /usr/portage/local/layman/make.conf
**Update**
_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi

Cold is gods way to tell us to burn more Catholics
Back to top
View user's profile Send private message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 82
Location: Central Washington

PostPosted: Tue Dec 15, 2009 9:41 pm    Post subject: Reply with quote

My Netbook
Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--warn-once"
MAKEOPTS="-j1"
FEATURES="userfetch parallel-fetch"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ "
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
#SYNC="rsync://192.168.0.1/gentoo-portage"
USE="sasl bluetooth 3dnow X a52 aac acpi alsa apm arts bash-completion bzip2 cario cdparanoia cdr
crypt css cups cxx dbus dri dts dvd dvdr encode exif ffmpeg firefox flac gd gif gimp gpm gzip
gtk hal hpn java kde kdehiddenvisibility -gnome lame -lm_sensors lzo mad mmap mmx mp3 mpeg mplayer nsplugin
offensive pdf plasma png qt4 quicktime rdesktop samba session snmp sse sse2 sse3 ssse3 mmxext ssl szip
unicode usb vcd vnc v4l v4l2 vorbis wavpack wifi win32codecs wxwidgets x264 xcb xinerama xosd xpm xv
xvmc xulrunner xvid zlib zeroconf"
VIDEO_CARDS="intel"
source /usr/local/portage/layman/make.conf

_________________
"Sarah" - AMD Athlon X2 4450B 45W, 4GB DDR2-667, 120GB, (Gentoo Hardened amd64; gcc-4.7.3; 3.15.5-hardened)
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Tue Dec 15, 2009 10:55 pm    Post subject: Reply with quote

Update ***

Code:

CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j5 -l5"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
USE="kde -gnome kdeenablefinal xcomposite nls truetype userlocales unicode -firefox xulrunner apache2 mysql mysqli simplexml"
LINGUAS="fr"
INPUT_DEVICES="keyboard mouse evdev"
VIDEO_CARDS="vesa nvidia"

#SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage"
#SYNC="rsync://rsync2.ca.gentoo.org/gentoo-portage"

PORTAGE_ELOG_CLASSES="log warn error info"
PORTAGE_ELOG_SYSTEM="echo:log,warn,error,info  save:log,warn,error,info syslog:error"
EMERGE_DEFAULT_OPTS="--jobs=5 --load-average=5.0 --with-bdeps y"

#PORTDIR="/home/sylvain/git/portage"

_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2289
Location: Canada

PostPosted: Tue Dec 15, 2009 11:47 pm    Post subject: Reply with quote

Boring

Code:

CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-32bit -3dnow -3dnowext -abiword accessibility acpi alsa -arts bluetooth -cddb
 -cdio -cdparanoia cups dbus djvu -doc -encode  -faac -faad fontconfig fortran
fuse -gdbm gmp -gstreamer gtk -hal -ipv6 java jpeg latex lcms -lock lyx kde
mad midi mp3 mmx -mmxext mplayer opengl -oss pdf png qt3support qt4 rtc -semantic-desktop
smp sql sqlite sse sse2 ssse3 subversion svg tcl tetex threads tiff
tk truetype usb webkit wifi X xcomposite xfce xine -xorgmodule -xscreensaver xulrunner
xosd xv xvmc -zeroconf"
# Devices
INPUT_DEVICES="keyboard mouse evdev synaptics"
VIDEO_CARDS="intel"
ALSA_CARDS="hda-intel usb-audio"
CAMERAS="canon ptp2"
# Languages
LINGUAS="en ru"
#Build in standard tmpfs
PORTAGE_NICENESS=19
PORTAGE_TMPFS="/dev/shm"
PORTAGE_TMPDIR="/dev/shm"
BUILD_PREFIX="/dev/shm"


I try to keep my /etc/portage/package.use as empty as possible (well, it has just 3 lines currently)
Back to top
View user's profile Send private message
Colt45
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2007
Posts: 82
Location: Central Washington

PostPosted: Wed Dec 16, 2009 3:32 pm    Post subject: Reply with quote

My Server. :P
Code:

CFLAGS="-O2 -march=athlon-4 -mtune=athlon --param l1-cache-size=64 --param l1-cache-line-size=64 -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--warn-once"
MAKEOPTS="-j2"
FEATURES="ccache userfetch parallel-fetch"
CCACHE_DIR="/var/tmp/ccache/"
CCACHE_SIZE="2G"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ "
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
#SYNC="rsync://rsync24.us.gentoo.org/gentoo-portage"
USE="apache2_modules_dav -mailwrapper mysql unicode 3dnow sse mmx ssl bash-completion bzip2 expat
ftp ipv6 libwww lm_sensors php samba hpn zlib perl"
APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default
authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex dbd
deflate dir env expires ext_filter filter headers ident imagemap include info log_config logio mime
mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias
cache disk_cache file_cache mem_cache"

My other machine is dead atm.
_________________
"Sarah" - AMD Athlon X2 4450B 45W, 4GB DDR2-667, 120GB, (Gentoo Hardened amd64; gcc-4.7.3; 3.15.5-hardened)
Back to top
View user's profile Send private message
math_roc
n00b
n00b


Joined: 07 Jan 2006
Posts: 65

PostPosted: Thu Dec 17, 2009 12:45 am    Post subject: Reply with quote

my server/media center (intel atom+nvidia ion)
Code:
 $ cat /etc/make.conf
CHOST="i686-pc-linux-gnu"

CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"

PORTDIR="/var/repositories/gentoo"

PORTAGE_NICENESS="19"
FEATURES="parallel-fetch collision-protect userfetch userpriv usersync nodoc"
ACCEPT_KEYWORDS="x86 ~x86"

PORTAGE_ELOG_SYSTEM="save"
PORTAGE_ELOG_CLASSES="warn error info log qa"

KBUILD_OUTPUT="/usr/build"

USE="-fortran -ffmpeg ogg vorbis resolvconf bash-completion hal sse sse2 \
     ssse3 xvmc vdpau mmx pulseaudio -alsa -libffi -encode -nfsv3 \
     device-mapper -webdav -dmraid opengl -qt4 -ldap -mysql \
     -apache2 -snmp -X emacs threads truetype vhosts acpi"

EMERGE_DEFAULT_OPTS="--with-bdeps y --ask --verbose --tree --keep-going"

APACHE2_MODULES="actions alias auth_basic authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 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 proxy proxy_http"
VIDEO_CARDS="intel nvidia"

PORTDIR_OVERLAY="
/var/repositories/local
$PORTDIR_OVERLAY
"

source /var/repositories/make.conf


the only think that may differs form other is >KBUILD_OUTPUT="/usr/build"< because I build the kernel outside the source tree with user privilege.

next, I like the /etc/portage/* folders:
Code:
evangeneer@evangeneer /etc/portage $ tree
.
|-- bin
|   `-- post_sync
|-- package.keywords
|   |-- alsa.conf
|   |-- efl.conf
|   |-- enlightenment.conf
|   |-- media.conf
|   |-- p2p.conf
|   `-- rss.conf
|-- package.mask
|   `-- mpd.conf
|-- package.unmask
|   |-- alsa.conf
|   `-- p2p.conf
|-- package.use
|   |-- X.conf
|   |-- dev.conf
|   |-- efl.conf
|   |-- erlang.conf
|   |-- fofix.conf
|   |-- gentoo.conf
|   |-- gparted.conf
|   |-- icecat.conf
|   |-- imagemagick.conf
|   |-- mail.conf
|   |-- media.conf
|   |-- net.conf
|   |-- p2p.conf
|   |-- pulseaudio.conf
|   |-- samba.conf
|   |-- server.conf
|   |-- speech.conf
|   |-- tmp.conf
|   |-- tt-rss.conf
|   |-- web.conf
|   `-- x11.conf
|-- postsync.d
|   `-- q-reinitialize
`-- savedconfig
    `-- sys-apps
        `-- busybox-1.15.2


which give:
Code:
$ cat /etc/portage/package.use/*
media-video/mplayer X
x11-libs/ecore X
x11-libs/evas X
sys-apps/hal X
dev-util/git bash-completion xinetd subversion
#       git-svn
dev-util/subversion -dso
www-apps/trac sqlite -vhosts
x11-wm/enlightenment exchange
        x11-libs/evas png jpeg
        x11-libs/ecore curl
dev-lang/erlang doc
media-libs/sdl-image png jpeg
dev-python/pygame X
media-libs/libsdl X alsa
dev-python/imaging X
app-portage/layman git subversion
x11-libs/cairo X
x11-libs/pango X
media-gfx/imagemagick jpeg svg png
mail-mta/postfix dovecot-sasl postgres -pam sasl
net-mail/dovecot postgres -pam pop3d
www-apps/postfixadmin postgres vhosts
#       dev-lang/php imap
media-video/vlc X theora x264 dts aac xv httpd a52 ffmpeg flac libass matroska mp3 mpeg musepack sdl sdl-image stream shine taglib
media-libs/sdl-image gif jpeg png

media-video/ffmpeg X custom-cflags faac faad theora x264 xvid
media-video/mplayer 3dnow 3dnowext mmxext dga

media-tv/xbmc aac css xrandr
www-client/elinks javascript
net-p2p/deluge webinterface gtk
media-sound/pulseaudio avahi alsa
sys-fs/udev extras
net-dns/avahi dbus
net-fs/samba -client
net-fs/samba-server swat
net-dns/dnsmasq -dhcp
app-accessibility/festival alsa
net-misc/curl gnutls
dev-lang/php pcntl
dev-db/postgresql-server doc
dev-db/postgresql-base doc
dev-lang/php apache2 curl gd-external gmp mhash inifile json pdo simplexml sockets pcre postgres session intl ctype filter mysqli
www-servers/apache doc
sys-apps/dbus X
Back to top
View user's profile Send private message
SiberianSniper
Guru
Guru


Joined: 06 Apr 2006
Posts: 360
Location: Dayton, OH, USA

PostPosted: Thu Dec 17, 2009 12:50 am    Post subject: Reply with quote

nothing too special here
Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -pipe -O2"
CFLAGS="$CFLAGS -fomit-frame-pointer -fweb"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j4"
PORTAGE_NICENESS=19
PORTDIR_OVERLAY="/usr/local/portage"
USE="a52 aalib acpi aim alsa amd64 -arts avi bash-completion \
cdr cups dbus divx4linux dvd dvdr dvdread \
emul-linux-x86 encode -esd fftw firefox flac fortran \
gcc64 gif gimp gimpprint gnome gpg -gphoto2 gtk gtk2 -hal \
imap -java jpeg joystick \
-kde latex \
mad maildir maps midi mikmod mmx -mozilla mp3 mpeg ncurses nethack nptl nptlonly nvidia\
offensive ogg oggvorbis opengl oss pam pdf -php png posix ppds \
-qt3 qt3support qt4 quicktime quotes real \
scanner sdl sftp slang spell sse sse2 ssse3 ssl -symlink threads truetype \
usb vim-syntax vorbis win32codecs X xine -xinerama xml xv"
#ALSA_CARDS="emu10k1"
INPUT_DEVICES="keyboard mouse evdev"
VIDEO_CARDS="nvidia"
ACCEPT_KEYWORDS="~amd64"
LINGUAS="en_US"
Back to top
View user's profile Send private message
bre4the
n00b
n00b


Joined: 22 Feb 2009
Posts: 5

PostPosted: Wed Dec 23, 2009 4:00 pm    Post subject: Reply with quote

Code:

PORTDIR_OVERLAY=/usr/local/portage
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -mfpmath=sse -msse -msse2 -mmmx -m3dnow -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
ACCEPT_KEYWORDS="~amd64"
INPUT_DEVICES="keyboard mouse evdev synaptics"
VIDEO_CARDS="nvidia"
FEATURES="parallel-fetch ccache nodoc noinfo"
PORTAGE_NICENESS=18

COMPRESSOR="bzip2 zlib"
FS="device-mapper fat fuse ldap ntfs reiserfs sasl"
GENERAL="bash-completion consolekit contrib custom-optimization ithreads latex ncurses readline spell sqlite startup-notification threads threadsafe unicode"
GMAIL="clickurl savepwd"
GNOME="cairo cleartype emerald glib glitz gnome gnome-keyring gtk libnotify libsexy nautilus networkmanager wxwidgets"
IMAGE="exif gif gimp ipod jpeg pdf plotutils png svg tiff wmf xpm"
MEDIA="a52 aac alsa cdda cddax cddb cdio directfb dts dvd ffmpeg flac gstreamer id3tag lame libass mad matroska mp3 mpeg musepack musicbrainz nsplugin ogg openal osdmenu schroedinger sdl sdl-image speex taglib twolame video_cards_nvidia vcdinfo vcdx vorbis x264 xvid xvmc"
NETWORK="dhclient gnutls hpn snmp ssh ssl subversion xulrunner"
POSIX="nptl"
PRINTING="cups hpcups scanner zlib zeroconf"
PROG_LANGS="python tcl tk xml"
SYSTEM="3dnow 3dnowext acpi dbus extras fam fbcon fusion gpm hal hddtemp ieee1394 lm_sensors mmap mmx mmxext multilib nvidia policykit sensord sha512 sse sse2 usb"
TEXT="bookmarks charmap colorpicker emacs fts3 kpathsea pstricks toolkit-scroll-bars truetype showtabbar smartspaces terminal"
X_ORG="glade opengl wxwindows X xinerama xorg xcb xft xv"

NOTUSE="-32bit -accessibility -ipv6 -qt3 -qt4"

USE="${COMPRESSOR} ${FS} ${GENERAL} ${GMAIL} ${GNOME} ${IMAGE} ${PROG_LANGS} ${MEDIA}"
USE="${USE} ${NETWORK} ${NOTUSE} ${POSIX} ${PRINTING} ${SYSTEM} ${TEXT} ${X_ORG}"

source /usr/local/portage/layman/make.conf
Back to top
View user's profile Send private message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3327

PostPosted: Wed Dec 23, 2009 4:26 pm    Post subject: Reply with quote

bre4the wrote:
CFLAGS="-O2 -march=athlon64 -mfpmath=sse -msse -msse2 -mmmx -m3dnow -pipe -fomit-frame-pointer"
setting march=athlon64 sets sse, sse3, mmx and 3dnow so why add them in anyway? Did you get your make.conf off someone?

from the GCC manual:
Quote:
k8, opteron, athlon64, athlon-fx
AMD K8 core based CPUs with x86-64 instruction set support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced 3dNOW! and 64-bit instruction set extensions.)

and -mfpmath=sse is implicit when using a x86-64 compiler

Also, -fomit-frame-pointer was useful with 32bit chips but you won't see any befefits with a 64bit one. At best you'll render backtraces difficult to use.

change your CFLAGS to
Code:
CFLAGS="-O2 -march=athlon64 -pipe

_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi

Cold is gods way to tell us to burn more Catholics
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Wed Dec 23, 2009 5:02 pm    Post subject: Reply with quote

Hi, why not use this instead :

Code:

CFLAGS="-O2 -march=native -pipe"

_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3327

PostPosted: Wed Dec 23, 2009 5:05 pm    Post subject: Reply with quote

d2_racing wrote:
Hi, why not use this instead :

Code:

CFLAGS="-O2 -march=native -pipe"
what does native do?
_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi

Cold is gods way to tell us to burn more Catholics
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Wed Dec 23, 2009 5:14 pm    Post subject: Reply with quote

It will detect automagically your CPU arch and it will unleash all the cflags that you need automatically.
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Wed Dec 23, 2009 5:16 pm    Post subject: Reply with quote

Take a look :

Code:

# gcc -### -march=native -E /usr/include/stdlib.h 2>&1 | grep "/usr/libexec/gcc/.*cc1"

The result is this :
 "/usr/libexec/gcc/x86_64-pc-linux-gnu/4.3.4/cc1" "-E" "-quiet" "/usr/include/stdlib.h" "-D_FORTIFY_SOURCE=2" "-march=core2" "-mcx16" "-msahf" "--param" "l1-cache-size=32" "--param" "l1-cache-line-size=64" "-mtune=core2"


So by default it use core2 arch mcx16,msahf and other stuff.
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
regomodo
Guru
Guru


Joined: 25 Mar 2008
Posts: 445

PostPosted: Wed Dec 23, 2009 7:16 pm    Post subject: Reply with quote

d2_racing wrote:
It will detect automagically your CPU arch and it will unleash all the cflags that you need automatically.


However, it's incompatible with distcc.
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Wed Dec 23, 2009 8:00 pm    Post subject: Reply with quote

It depends, if the other box use the same arch, then yes and if not, you should stick with a i686 arch.
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4394
Location: Suzhou, China

PostPosted: Thu Dec 24, 2009 4:43 am    Post subject: Reply with quote

My laptop, using the 10.0/desktop profile, with openbox and a mixture of gtk2 and qt4 apps:
Code:
# make.conf for raven
CFLAGS="-O2 -march=core2 -msse4.1 -mcx16 -msahf -pipe -w"
CFLAGS="$CFLAGS -floop-interchange -floop-strip-mine -floop-block"
CXXFLAGS="$CFLAGS"
CHOST="x86_64-pc-linux-gnu"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-s -j2"
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="*"
FEATURES="parallel-fetch collision-protect distlocks sandbox cvs autoaddcvs
noinfo userfetch userpriv usersandbox"
PORTAGE_ELOG_CLASSES="error warn qa info log"
PORTAGE_ELOG_SYSTEM="save echo"
PORT_LOGDIR="/var/log/portage/"
PORTAGE_WORKDIR_MODE="0770"
EMERGE_DEFAULT_OPTS="--verbose --jobs=3 --keep-going --load-average=6"
ALSA_CARDS="hda-intel"
INPUT_DEVICES="evdev keyboard mouse synaptics"
VIDEO_CARDS="fbdev vesa nvidia"
NPTL_KERNEL_VERSION="2.6.27"
PORTAGE_ECLASS_WARNING_ENABLE="0"
DISTDIR="/var/distfiles/"
GENTOO_MIRRORS="http://hummingbird
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://distfiles.gentoo.org"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="mmx sse sse2 ssse3 -cups -gnome -ipv6 -kde -mysql
git gnutls lzo mng sqlite sqlite3 vim-syntax webkit xcb zsh-completion"

source /etc/layman/make.conf
PORTDIR_OVERLAY="$PORTDIR_OVERLAY
/home/ben/overlay/local"

_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
d2_racing
Moderator
Moderator


Joined: 25 Apr 2005
Posts: 13046
Location: Ste-Foy,Canada

PostPosted: Thu Dec 24, 2009 3:38 pm    Post subject: Reply with quote

@yngwin, 2 quick question,

what does the -w in your cflags ?

And why use this line :
Code:

EMERGE_DEFAULT_OPTS="--verbose --jobs=3 --keep-going --load-average=6"


Instead of :
Code:

EMERGE_DEFAULT_OPTS="--verbose --jobs=3 --keep-going --load-average=3"


I tought that the jobs param should be equal to the load-average param ?
_________________
Sysadmin of GentooQuébec.org
Wiki
Signature
IRC on Freenode : #gentoo-quebec
Back to top
View user's profile Send private message
Ken69267
Developer
Developer


Joined: 08 Apr 2007
Posts: 111
Location: #gentoo-pr0n

PostPosted: Thu Dec 24, 2009 5:12 pm    Post subject: Reply with quote

Here's my laptop's ugly make.conf :p
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.

CFLAGS="-Os -march=core2 -pipe -msse4.1"


CXXFLAGS="${CFLAGS}"


# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml 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.
USE="symlink alsa X mp3 flac ogg mpeg aac multilib opengl bitmap-fonts truetype-fonts type1-fonts png jpeg vorbis mp3 mad xml dbus qt4 kdeenablefinal truetype glitz svg -ipv6 theora cairo spell a52 dvi dvdread dvd divx4linux dv encode fame mpeg ogg quicktime subtitles vorbis xvid vim vim-syntax opengl mplayer ffmpeg imap sqlite gtk vim zsh-completion bash-completion git mercurial hg mmx sse sse2 acpi laptop gnome hal usb bluetooth automount -firefox -mono xulrunner nautilus gnome-keyring gnutls libnotify cdr avahi mdnsresponder-compat gif xft tiff ssse3 x264 curl mtp -policykit networkmanager gstreamer gnome-keyring qt3support pdf sql webkit kde"

ACCEPT_KEYWORDS="~amd64"

MAKEOPTS="-j3"

GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ "

VIDEO_CARDS="intel"

LDFLAGS="-Wl,-O1,--as-needed"

FEATURES="multilib-strict collision-protect cvs"

PORTDIR_OVERLAY="$PORTDIR_OVERLAY /home/ken/workspace/sunrise/sunrise/"

CONFIG_PROTECT="/etc/shorewall/"

source /usr/local/portage/layman/make.conf

#FAIL
ACCEPT_LICENSE="*"


_________________
!snack
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 13, 14, 15  Next
Page 10 of 15

 
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