#!/bin/bash set -e export EPREFIX=`pwd` export PATH="$EPREFIX/usr/bin:$EPREFIX/bin:$EPREFIX/tmp/usr/bin:$EPREFIX/tmp/bin:$PATH" ./bootstrap-prefix.sh $EPREFIX tree ./bootstrap-prefix.sh $EPREFIX/tmp wget ./bootstrap-prefix.sh $EPREFIX/tmp python ./bootstrap-prefix.sh $EPREFIX portage export LDFLAGS="\ -L${EPREFIX}/usr/lib64 \ -Wl,-rpath=${EPREFIX}/usr/lib64 \ -L${EPREFIX}/usr/lib \ -Wl,-rpath=${EPREFIX}/usr/lib \ -L${EPREFIX}/lib64 \ -Wl,-rpath=${EPREFIX}/lib64 \ -L${EPREFIX}/lib \ -Wl,-rpath=${EPREFIX}/lib" export CPPFLAGS="-I${EPREFIX}/usr/include" hash -r emerge --oneshot sed emerge --oneshot bash # do not emerge m4 yet, since it would break emerge --oneshot --nodeps "=autoconf-2.1*" "=autoconf-2.6*" "autoconf-wrapper" emerge --oneshot --nodeps "=automake-1.4*" "=automake-1.5*" "=automake-1.6*" "=automake-1.7*" "=automake-1.8*" "automake-wrapper" emerge --oneshot --nodeps "=autoconf-2.1*" "=autoconf-2.6*" "autoconf-wrapper" emerge --oneshot --nodeps "=automake-1.4*" "=automake-1.5*" "=automake-1.6*" "=automake-1.7*" "=automake-1.8*" "automake-wrapper" emerge --oneshot --nodeps wget emerge --oneshot --nodeps texinfo emerge --oneshot --nodeps "=automake-1.9*" "=automake-1.10*" emerge --oneshot --nodeps libtool # at this point m4 can be emerged emerge --oneshot --nodeps "m4" hash -r # now redo emerge of things that apparently depend on a recent version of m4 1.4.10: # see if this can be trimmed and still succeed with coreutils emerge --oneshot --nodeps "=autoconf-2.1*" "=autoconf-2.6*" "autoconf-wrapper" emerge --oneshot --nodeps "=automake-1.4*" "=automake-1.5*" "=automake-1.6*" "=automake-1.7*" "=automake-1.8*" "automake-wrapper" emerge --oneshot --nodeps "=autoconf-2.1*" "=autoconf-2.6*" "autoconf-wrapper" emerge --oneshot --nodeps "=automake-1.4*" "=automake-1.5*" "=automake-1.6*" "=automake-1.7*" "=automake-1.8*" "automake-wrapper" emerge --oneshot --nodeps texinfo emerge --oneshot --nodeps "=automake-1.9*" "=automake-1.10*" emerge --oneshot --nodeps libtool emerge --oneshot --nodeps sys-apps/coreutils # hash -r asked for by console output hash -r emerge --oneshot --nodeps python emerge --oneshot --nodeps findutils emerge --oneshot --nodeps tar env FEATURES="-collision-protect" emerge --oneshot --nodeps portage emerge --oneshot gawk emerge --oneshot --nodeps baselayout-prefix rm -Rf $EPREFIX/tmp/* hash -r # may need pax-utils-0.1.16.tar.bz2 manually installed to usr/portage/distfiles # due to stupid adult content filtering cp $HOME/soft/prefix-gentoo/pax-utils-0.1.16.tar.bz2 usr/portage/distfiles ## # attempting fix as described for bug 197407 ## mkdir -p etc/portage ## emerge --unmerge binutils-config ## echo ">=sys-devel/binutils-config-1.9-r4" >etc/portage/package.mask ## echo "=sys-devel/binutils-config-1.9-r04.1" >etc/portage/package.unmask ## emerge --oneshot --nodeps binutils-config emerge -e system