Sitzung: Jeden Freitag in der Vorlesungszeit ab 16 Uhr c. t. im MAR 0.005. In der vorlesungsfreien Zeit unregelmäßig (Jemensch da?). Macht mit!

Gentoo OS X

Version vom 24. Februar 2013, 14:07 Uhr von Bmay (Diskussion | Beiträge) (kategorisiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

For anyone interested in running gentoo on os x on his or her mac, I wrote a little script to bootstrap it automatically. Just be sure to set the first two variables for your desired home location and cpu flag.

#!/bin/bash
myeprefix = "$HOME/Library/Gentoo"
myarch = -march=nocona

echo "export $myeprefix""
export EPREFIX=$myeprefix
echo "export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH""
export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH"
echo "chmod 755 bootstrap-prefix.sh"
chmod 755 bootstrap-prefix.sh
echo "./bootstrap-prefix.sh $EPREFIX tree"
./bootstrap-prefix.sh $EPREFIX tree
echo "./bootstrap-prefix.sh $EPREFIX/tmp wget"
./bootstrap-prefix.sh $EPREFIX/tmp wget
echo "./bootstrap-prefix.sh $EPREFIX/tmp tar"
./bootstrap-prefix.sh $EPREFIX/tmp tar
echo "./bootstrap-prefix.sh $EPREFIX/tmp sed"
./bootstrap-prefix.sh $EPREFIX/tmp sed
echo "./bootstrap-prefix.sh $EPREFIX/tmp gawk"
./bootstrap-prefix.sh $EPREFIX/tmp gawk
echo "./bootstrap-prefix.sh $EPREFIX/tmp findutils"
./bootstrap-prefix.sh $EPREFIX/tmp findutils
echo "./bootstrap-prefix.sh $EPREFIX portage"
./bootstrap-prefix.sh $EPREFIX portage
echo "export LDFLAGS="-Wl,-search_paths_first -L${EPREFIX}/usr/lib -L${EPREFIX}/lib""
export LDFLAGS="-Wl,-search_paths_first -L${EPREFIX}/usr/lib -L${EPREFIX}/lib"
echo "export CPPFLAGS="-I${EPREFIX}/usr/include""
export CPPFLAGS="-I${EPREFIX}/usr/include"
echo "hash -r"
hash -r
echo "emerge --oneshot sed"
emerge --oneshot sed
echo "emerge --oneshot "<bash-3.2_p33""
emerge --oneshot "<bash-3.2_p33"
echo "emerge --oneshot --nodeps wget"
emerge --oneshot --nodeps wget
echo "emerge --oneshot coreutils"
emerge --oneshot coreutils
echo "emerge --oneshot findutils"
emerge --oneshot findutils
echo "emerge --oneshot tar"
emerge --oneshot tar
echo "emerge --oneshot grep"
emerge --oneshot grep
echo "emerge --oneshot gawk"
emerge --oneshot gawk
echo "env FEATURES="-collision-protect" emerge --oneshot portage"
env FEATURES="-collision-protect" emerge --oneshot portage
echo "emerge --oneshot baselayout-prefix"
emerge --oneshot baselayout-prefix
echo "rm -Rf $EPREFIX/tmp/*"
rm -Rf $EPREFIX/tmp/*
echo "hash -r"
hash -r
echo "emerge --oneshot subversion"
emerge --oneshot subversion
echo "emerge --sync"
emerge --sync
echo "emerge -u system"
emerge -u system
echo "echo 'USE="unicode nls"' >> $EPREFIX/etc/make.conf"
echo 'USE="unicode nls"' >> $EPREFIX/etc/make.conf
echo "echo 'CFLAGS="-O2 -pipe <my-cpu-flags>"' >> $EPREFIX/etc/make.conf"
echo 'CFLAGS="-O2 -pipe $myarch"' >> $EPREFIX/etc/make.conf
echo "echo 'CXXFLAGS="${CFLAGS}"' >> $EPREFIX/etc/make.conf"
echo 'CXXFLAGS="${CFLAGS}"' >> $EPREFIX/etc/make.conf
echo "unset LDFLAGS"
unset LDFLAGS
echo "unset CPPFLAGS"
unset CPPFLAGS
echo "emerge -e system"
emerge -e system
echo "cd $EPREFIX/usr/portage/scripts"
cd $EPREFIX/usr/portage/scripts
echo "./bootstrap-prefix.sh $EPREFIX startscript"
./bootstrap-prefix.sh $EPREFIX startscript