# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 13 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+ modules/generic_stage_target.py, targets/embedded/embedded-chroot.sh,
+ targets/grp/grp-chroot.sh, targets/livecd-stage1/livecd-stage1-chroot.sh,
+ targets/netboot/netboot-chroot.sh, targets/stage3/stage3-chroot.sh,
+ targets/stage4/stage4-chroot.sh, targets/support/chroot-functions.sh,
+ targets/tinderbox/tinderbox-chroot.sh:
+ Move export of FEATURES to setup_myfeatures.
+
12 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
targets/stage1/stage1-chroot.sh:
Added some debug code to stage1 and fixed a nice bug where we weren't
hash_function=self.settings["hash_function"],verbose=False)
print "Source path set to "+self.settings["source_path"]
if os.path.isdir(self.settings["source_path"]):
- print "\tIf this is not desired, remove this directory or turn of seedcache in the options of catalyst.conf"
+ print "\tIf this is not desired, remove this directory or turn off seedcache in the options of catalyst.conf"
print "\tthe source path will then be "+normpath(self.settings["storedir"]+"/builds/"+self.settings["source_subpath"]+".tar.bz2\n")
def set_dest_path(self):
setup_myfeatures
# Setup the environment
-export FEATURES="${clst_myfeatures}"
-#export clst_myemergeopts="${clst_myemergeopts} -O"
-export USE="${clst_use}"
-export DESTROOT=${clst_root_path}
-export clst_root_path=/
+export DESTROOT="${clst_root_path}"
+export clst_root_path="/"
-run_emerge "${clst_myemergeopts}" -o "${clst_embedded_packages}"
+echo "Installing dependencies into ${DESTROOT}..."
+run_emerge -o "${clst_embedded_packages}"
-#export clst_myemergeopts="${clst_myemergeopts} -B"
-#run_emerge "${clst_embedded_packages}"
-
-export clst_root_path=${DESTROOT}
-export clst_myemergeopts="${clst_myemergeopts} -1 -O"
+export clst_root_path="${DESTROOT}"
export INSTALL_MASK="${clst_install_mask}"
-run_emerge "${clst_embedded_packages}"
+run_emerge -1 -O "${clst_embedded_packages}"
setup_myfeatures
-# Setup the environment
-export FEATURES="${clst_myfeatures}"
## START BUILD
setup_portage
setup_myfeatures
-# Setup the environment
-
-export FEATURES="${clst_myfeatures}"
-
## START BUILD
setup_portage
-export USE="${clst_use} ${clst_HOSTUSE}"
-
run_emerge "${clst_packages}"
setup_myfeatures
-# Setup our environment
-export FEATURES="${clst_myfeatures}"
-
# START BUILD
-
-run_emerge ${clst_myemergeopts} ${clst_packages}
+run_emerge "${clst_packages}"
setup_myfeatures
-# Setup the build environment
-export FEATURES="${clst_myfeatures}"
-export USE="${USE} bindist ${clst_HOSTUSE}"
-
## START BUILD
# We need portage to be merged manually with USE="build" set to avoid frying
# our make.conf, otherwise, the system target could take care of it.
setup_portage
run_emerge "-e system"
+
rm -f /var/lib/portage/world
touch /var/lib/portage/world
setup_myfeatures
-# Setup the environment
-export FEATURES="${clst_myfeatures}"
-
## START BUILD
setup_portage
echo "Bringing system up to date using profile specific use flags"
-export USE="${USE} ${clst_HOSTUSE}"
run_emerge -u system
echo "Emerging packages using stage4 use flags"
-if [ -n "${clst_use}" ]
-then
- USE="${clst_HOSTUSE} ${clst_use}"
-fi
run_emerge "${clst_packages}"
export PATH="/usr/lib/icecc/bin:${PATH}"
export PREROOTPATH="/usr/lib/icecc/bin"
fi
+ export FEATURES="${clst_myfeatures}"
}
setup_myemergeopts(){
setup_myfeatures
-# Setup the environment
-export FEATURES="${clst_myfeatures}"
-
# START THE BUILD
setup_portage
mkdir -p /tmp/packages/$x
export PORT_LOGDIR="/tmp/packages/$x"
- run_emerge --usepkg --buildpkg --newuse $x
+ run_emerge $x
if [ "$?" != "0" ]
then