View previous topic :: View next topic |
Author |
Message |
NewB Apprentice
Joined: 08 Feb 2004 Posts: 224
|
Posted: Sun May 21, 2006 8:50 am Post subject: Need a few suggestions - make.conf |
|
|
Hi,
My system is running now for almost one year, in this year I made many changes to my make.conf and I think its time to reemerge everything. I'm running a thinkpad t40p laptop http://www.thinkwiki.org/wiki/Category:T40p and I would apreciate if you can tell me what you would change in it before reemerging my system (especially CFLAGS and LDFLAGS)!
Here is my actuall make.conf
Code: |
USE="alsa emacs md5sum radeon acpi avi cdr \
dvd divx4linux java pic gnome gstreamer win32codecs X gtk \
gtk2 i8x0 matroska mmx mmxext musepack mozilla mpeg oggvorbis \
opengl oss ogg mp3 pdflib real dvdread radeon sdl sse sse2 ssl truetype usb \
xinetd xmms xv -kde \
-arts bitmap-fonts truetype-fonts type1-fonts dri nptl nptlonly unicode"
INPUT_DEVICES="keyboard mouse synaptics"
VIDEO_CARDS="radeon ati fglrx"
ALSA_CARDS="intel8x0"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe -msse2 -fforce-addr -fprefetch-loop-arrays"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1"
PORTDIR_OVERLAY="/usr/local/portage"
MAKEOPTS="-j2"
PORTAGE_RSYNC_RETRIES="3"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://linuv.uv.es/mirror/gentoo/ ftp://ftp.du.se/pub/os/gentoo http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo "
|
I'm currently running gcc version 3.4.6 but before update I will switch to 4.1 (probably better right now than 4.0 or 4.2?).
Once all this is done what's the best way to reemerge everything? emerge -e system && emerge -e world and that's it?
And my finall question is if there exist a program to clean the unused installed programs? Something that detects which program you didn't use for a long time, just to clean a little bit...
thanks for your advises... |
|
Back to top |
|
|
chrismortimore l33t
Joined: 03 Dec 2005 Posts: 721 Location: Edinburgh, UK
|
Posted: Sun May 21, 2006 10:03 am Post subject: |
|
|
Here is my make.conf Code: | ACCEPT_KEYWORDS="x86"
BUILD_PREFIX="/home/portage/portage"
FEATURES="ccache"
#FEATURES="${FEATURES} distcc"
PORTDIR_OVERLAY="/usr/local/portage"
PORTAGE_TMPDIR="/home/portage"
CFLAGS="-Os -march=pentium-m -pipe -fomit-frame-pointer -msse -msse2"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
MAKEOPTS="-j2" # stand alone compiling
#MAKEOPTS="-j3" # networked compiling
CCACHE_DIR="/var/cache/ccache"
CCACHE_SIZE="1G"
LINGUAS="en_GB en-GB"
USE="acpi alsa kdeenablefinal mmx nptl nptlonly pic sse sse2 unicode xinerama -apm -arts -esd -gnome -kde -xmms" | I'm not familiar with "-fforce-addr" and "-fprefetch-loop-arrays" so I can't tell you if they are a good idea. One thing I will say though is that you have an awful lot of USE flags set. If you really want all that set for all your packages, thats fine, but I'd recommend stripping them down and setting package-specific flags in /etc/portage/package.use
To clean out stuff you don't use, what I do is go through /var/lib/portage/world and uninstall packages whos name I don't recognise (if I don't recognise the name, it generally means I don't use it very often). Then a emerge --depclean and a revdep-rebuild clean the system up quite nicely (of course using the -p switch first in both to see what they'll actually do).
An "emerge -e system && emerge -e world" will do it nicely, its the safest way of doing it. _________________ Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB 7200rpm Maxtor DiamondMax 10, 2x320GB WD 7200rpm Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB |
|
Back to top |
|
|
NewB Apprentice
Joined: 08 Feb 2004 Posts: 224
|
Posted: Sun May 21, 2006 10:28 am Post subject: |
|
|
Ok, I started to clean and will try to sort my useflags (I never really use the package.use file, just putted everything in make.conf )
Just one more question can I "emerge -e system && emerge -e world" when my X server is started (so I could use my computer...) or not? |
|
Back to top |
|
|
chrismortimore l33t
Joined: 03 Dec 2005 Posts: 721 Location: Edinburgh, UK
|
Posted: Sun May 21, 2006 11:12 am Post subject: |
|
|
I've never had problems recompiling programs while I'm using them (like doing KDE upgrades and whatnot), so you should be fine. Although if it goes horrid, don't shout at me _________________ Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB 7200rpm Maxtor DiamondMax 10, 2x320GB WD 7200rpm Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB |
|
Back to top |
|
|
NewB Apprentice
Joined: 08 Feb 2004 Posts: 224
|
Posted: Sun May 21, 2006 11:50 am Post subject: |
|
|
I wont, promise
thnx for your advises. |
|
Back to top |
|
|
SMoo Tux's lil' helper
Joined: 08 Jul 2004 Posts: 140 Location: Leander, TX
|
Posted: Sun May 21, 2006 12:20 pm Post subject: |
|
|
I've recently redone my Latitude c640, and used
CFLAGS="-Os -march=pentium4m -pipe -fomit-frame-pointer -msse -msse2"
successfully.
I'm also a fan of
AUTOCLEAN="yes" |
|
Back to top |
|
|
chrismortimore l33t
Joined: 03 Dec 2005 Posts: 721 Location: Edinburgh, UK
|
Posted: Sun May 21, 2006 5:27 pm Post subject: |
|
|
SMoo wrote: | AUTOCLEAN="yes" | Isn't that on by default? Code: | toaster ~ # cat /etc/make.globals | grep AUTOCLEAN
AUTOCLEAN="yes"
toaster ~ # |
_________________ Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB 7200rpm Maxtor DiamondMax 10, 2x320GB WD 7200rpm Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB 5400rpm IBM TravelStar, Nvidia 5200Go 64MB |
|
Back to top |
|
|
|
|
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
|
|