# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 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
+ building with the correct USE. Unfortunately, this invalidates any caches
+ for stage1, since we were building with the entire USE from the profile.
+ This is 2.0.6_pre4 for testing.
+
11 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
targets/stage1/stage1-chroot.sh:
We don't need to do the device building twice, so removing USE=build from
import pdb
__maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
-__version__="2.0.6_pre3"
+__version__="2.0.6_pre4"
conf_values={}
exit 1
fi
+if [ "${debug}" = "1" ]
+then
+ echo "DEBUG:"
+ echo "Profile inheritance:"
+ python -c 'import portage; print portage.settings.profiles'
+ echo "STAGE1_USE: $(portageq envvar STAGE1_USE)"
+ echo "USE (profile): $(portageq envvar USE)"
+ echo "USE (stage1): ${USE}"
+ echo "FEATURES (profile): $(portageq envvar FEATURES)"
+ echo "FEATURES (stage1): ${FEATURES}"
+
+ exit 1
+fi
+
## START BUILD
clst_root_path=/ setup_portage
USE="-build" run_emerge "--oneshot --nodeps virtual/baselayout"
-run_emerge "--noreplace --oneshot ${clst_buildpkgs}"
+USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}" run_emerge "--noreplace --oneshot ${clst_buildpkgs}"
+
rm -f /var/lib/portage/world
touch /var/lib/portage/world