# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.284 2005/07/05 17:48:21 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.285 2005/07/05 17:55:30 wolf31o2 Exp $
+
+ 05 Jul 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/stage1/stage1-chroot.sh:
+ Added profile sanity check for bug #97867.
05 Jul 2005; Chris Gianelloni <wolf31o2@gentoo.org>
targets/support/bootloader-setup.sh:
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.32 2005/04/29 21:31:32 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.33 2005/07/05 17:55:30 wolf31o2 Exp $
. /tmp/chroot-functions.sh
export USE="-* build ${STAGE1_USE}"
export FEATURES="${clst_myfeatures}"
+## Sanity check profile
+if [[ -z ${clst_buildpkgs} ]]
+then
+ echo "Your profile seems to be broken."
+ echo "Could not build a list of build packages."
+ echo "Double check your /etc/make.profile link and the 'packages' files."
+ exit 1
+fi
+
## START BUILD
run_emerge "--noreplace ${clst_buildpkgs}"