Gentoo

Aus AmIHereWiki
Version vom 17. März 2016, 13:26 Uhr von Onlineprog (Diskussion | Beiträge) (→‎Web: clean --> clear)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Anleitung und Anmerkung für eine Gentoo Installation.

Bugs ~x86

#144419 - 'binutils-2.17 ld fails tests with FEATURES="test"' - Fix: FEATURES="-test ..." in /etc/portage/env/sys-devel/binutils

#162542 - 'ccache-statistics are not updated when FEATURES includes userpriv/usersandbox' - Fix: chmod -cR g+w /var/tmp/ccache | chown -cR portage:portage /var/tmp/ccache

#164266 - 'dev-scheme/guile-1.8.1-r1 fails test' - Fix: USE in /etc/make.conf with regex and networking

#177538 - 'sys-apps/'coreutils-6.9 test failure' - Fix: modified coreutils.ebuild, with each emerge sync, overwritten with patched .ebuild file and digest [1] FIXED by 2nd package of coreutils-6.9-r1 (June/11/2007)

#178028 - 'sys-fs/e2fsprogs-1.40_pre20070411 fails 'expanding lost+found' test' - Fix: FEATURES="-test ..." in /etc/portage/env/sys-fs/e2fsprogs (or ext2/ext3 as fstype) FIXED

#180412 - 'sys-apps/findutils-4.3.6-r1 - TEST "fprint-unwritable.exp" fails' - Fix: FEATURES="-test ..." in /etc/portage/env/sys-apps/findutils - [2] FIXED

#180834 - 'dev-libs/gmp-4.2.1-r1 - TEST "t_import" fails with "-funroll-loops"/"-O3"' - Fix: CFLAGS in /etc/make.conf with -Wunsafe-loop-optimizations

#182103 - 'sys-apps/coreutils-6.9-r1 userpriv+usersandbox+test = failure' - Fix: FEATURES="-userpriv ..." in /etc/portage/env/sys-apps/coreutils

#195313 - 'sys-apps/texinfo-4.11 make check failure' Fix: FEATURES="-test ..." in /etc/portage/env/sys-apps/texinfo

#196926 - 'sys-libs/glibc-2.7-r1 compile fails with gcc-4.2.2 for i486+ with USE=glibc-omitfp' - Fix for now: FEATURES="-test ..." in /etc/portage/env/sys-libs/glibc-2.7-r1 or unblacklist the useflag in /usr/portage/profiles/default-linux/amd64|x86/package.use.mask

#197361 - 'sys-devel/autogen-5.9.2 incorrectly requires both deprecated and discouraged USE variables for scheme-dev/guile' - Fix: USE in /etc/make.conf with deprecated and reemerge guile

#198223 - '>=dev-java/tomcat-native-1.1.10 hangs Tomcat 6.0.x on start' - Fix: Simply add dev-libs/apr urandom to /etc/portage/package.use then emerge apr and problem is solved.

#201939 - 'dev-libs/libgcrypt-1.4.0 kills app-crypt/gnupg' - Fix for now: EXTRA_ECONF="--disable-padlock-support" emerge -DNuv libgcrypt FIXED

media-libs/freeglut - stops compiling over loop-opt warning (-Wall -pedantic) - Fix: explicitly without -Wunsafe-loop-optimizations

glib/libtool/guile - 'compilation / test problems' - Fix: in /etc/env.d/99local include "export SED=sed"

jpeg - 'compilation problem' - Fix: "emerge libtool" again (linker i686-gnu-... tragedy)

gcc - 'compilation problem' - Fix: don't use BOOT_CFLAGS="..." in /etc/make.conf

python - 'test_socket.py' - Fix: set the hostname, e.g. 'hostname localhost' or edit /etc/conf.d/hostname and apply

Hints

/etc/portage/env/no-something.features/cflags as template for symlinks to /etc/portage/env/package-name/program-symlink

ln -s /etc/portage/env/no-test.features /etc/portage/env/sys-apps/findutils
echo "FEATURES=\"ccache distcc -test sandbox\"" >/etc/portage/env/no-test.features

ln -s /etc/portage/env/no-test.cflags /etc/portage/env/media-libs/freeglut
echo "CFLAGS=\"-march=pentium4m -O3 -pipe -Wall -pedantic\"" >/etc/portage/env/no-loop-opt.cflags

The world favorites file is /var/lib/portage/world.


Computer: server1, test1


Config: /etc/make.conf, /etc/grub.conf, /etc/X11/xorg.conf, /etc/profile, /etc/env.d/99local, /usr/local/bin/backup-etc, /usr/local/bin/lshsqldb, /usr/local/bin/update-gentoo


TMPFS - speedup portage, another


Tweaks

Embedded speedups from Linux Journal - loops_per_jiffy ... Booting Linux Faster

Thanks to this desktop-boost-article, add first two entries to /etc/sysctl.conf or use straight away with sysctl -w property-setting:

 vm.swappiness=1
 vm.vfs_cache_pressure=50

 vm.dirty_writeback_centisecs=1500
 
 #kernel.domainname = example.com
 # the following stops low-level messages on console
 #kernel.printk = 4 4 1 7

 # enable /proc/$pid/maps privacy so that memory relocations are not
 # visible to other users.
 kernel.maps_protect = 1

find good compiling flags:

cc -march=native -E -v - </dev/null 2>&1 | grep cc1

use in /etc/make.conf for a pentium3 like

BOOT_CFLAGS="-fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -maccumulate-outgoing-args -march=pentium3 -msse -mtune=pentium3 -O9 -pipe -Wunsafe-loop-optimizations  --param l1-cache-size=16 --param l1-cache-line-size=32 --param l2-cache-size=256 -s"

Books

Web