3 source /tmp/chroot-functions.sh
5 # Setup our environment
6 export clst_buildpkgs="$(/tmp/build.py)"
7 export STAGE1_USE="$(portageq envvar STAGE1_USE)"
8 export USE="-* bindist build ${STAGE1_USE}"
9 export FEATURES="${clst_myfeatures} nodoc noman noinfo"
11 ## Sanity check profile
12 if [ -z "${clst_buildpkgs}" ]
14 echo "Your profile seems to be broken."
15 echo "Could not build a list of build packages."
16 echo "Double check your /etc/make.profile link and the 'packages' files."
21 clst_root_path=/ setup_portage
23 USE="-build" run_emerge "--oneshot --nodeps virtual/baselayout"
25 USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}" run_emerge "--noreplace --oneshot ${clst_buildpkgs}"