# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.435 2005/12/08 14:48:58 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.436 2005/12/08 15:16:48 rocket Exp $
+
+ 08 Dec 2005; Eric Edgar <rocket@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/livecd-stage2/livecd-stage2-controller.sh,
+ -targets/livecd-stage2/unmerge.sh, targets/netboot/netboot-chroot.sh,
+ targets/stage1/stage1-chroot.sh, targets/stage2/stage2-chroot.sh,
+ targets/stage2/stage2-preclean-chroot.sh, targets/stage3/stage3-chroot.sh,
+ targets/stage3/stage3-preclean-chroot.sh, targets/stage4/stage4-chroot.sh,
+ targets/stage4/stage4-controller.sh, -targets/stage4/unmerge.sh,
+ targets/support/chroot-functions.sh, targets/support/pre-kmerge.sh,
+ +targets/support/unmerge.sh, targets/tinderbox/tinderbox-chroot.sh:
+ move unmerge.sh to support;move the CLEAN_DELAY,EMERGE_WARNING_DELAY, and
+ CONFIG_PROTECT stuff in the run_emerge function for cleanliness
08 Dec 2005; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
files/catalyst.1:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.91 2005/12/07 21:01:35 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.92 2005/12/08 15:16:48 rocket Exp $
"""
This class does all of the chroot setup, copying of files, etc. It is
#before cleaning, unmerge stuff:
try:
- cmd("/bin/bash "+self.settings["sharedir"]+"/targets/" \
- +self.settings["target"]+"/unmerge.sh "+myunmerge,"Unmerge script failed.",env=self.env)
+ cmd("/bin/bash "+self.settings["controller_file"]+" unmerge "+ myunmerge,\
+ "Unmerge script failed.",env=self.env)
+ #cmd("/bin/bash "+self.settings["sharedir"]+"/targets/" \
+ # +self.settings["target"]+"/unmerge.sh "+myunmerge,"Unmerge script failed.",env=self.env)
print "unmerge shell script"
except CatalystError:
self.unbind()
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.17 2005/11/29 20:30:42 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.18 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
# setup the environment
export FEATURES="${clst_myfeatures}"
-export CONFIG_PROTECT="-*"
#export clst_myemergeopts="${clst_myemergeopts} -O"
export USE="${clst_use}"
export DESTROOT=${clst_root_path}
export clst_root_path=${DESTROOT}
export clst_myemergeopts="${clst_myemergeopts} -1 -O"
-INSTALL_MASK="${clst_install_mask}" run_emerge "${clst_embedded_packages}"
-
-
+export INSTALL_MASK="${clst_install_mask}"
+run_emerge "${clst_embedded_packages}"
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/grp-chroot.sh,v 1.22 2005/11/29 20:30:42 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/grp-chroot.sh,v 1.23 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
# setup the environment
export FEATURES="${clst_myfeatures}"
-export CONFIG_PROTECT="-*"
## START BUILD
setup_portage
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/livecd-stage1-chroot.sh,v 1.20 2005/12/07 21:33:43 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/livecd-stage1-chroot.sh,v 1.21 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
## setup the environment
export FEATURES="${clst_myfeatures}"
-export CONFIG_PROTECT="-*"
-export EMERGE_WARNING_DELAY=0
## START BUILD
setup_portage
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.16 2005/11/30 21:34:03 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/livecd-stage2-controller.sh,v 1.17 2005/12/08 15:16:48 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
. ${clst_sharedir}/targets/support/filesystem-functions.sh
${clst_sharedir}/targets/support/bootloader-setup.sh $1
;;
+
+ unmerge)
+ shift
+ export clst_packages="$*"
+ exec_in_chroot ${clst_sharedir}/targets/support/unmerge.sh
+ ;;
target_image_setup)
shift
+++ /dev/null
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage2/Attic/unmerge.sh,v 1.10 2005/12/07 21:57:59 wolf31o2 Exp $
-
-${clst_CHROOT} ${clst_chroot_path} /bin/bash << EOF
- EMERGE_WARNING_DELAY=0 emerge -C $*
-EOF
-
-exit 0
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-chroot.sh,v 1.2 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-chroot.sh,v 1.3 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
update_env_settings
# setup our environment
export FEATURES="${clst_myfeatures}"
-export CONFIG_PROTECT="-*"
export USE_ORDER="env:pkg:conf:defaults"
# START BUILD
#!/bin/bash
# Copyright 1999-2005 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.38 2005/12/07 21:33:43 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.39 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
export STAGE1_USE="$(portageq envvar STAGE1_USE)"
export USE="-* build ${STAGE1_USE}"
export FEATURES="${clst_myfeatures} nodoc noman noinfo"
-export EMERGE_WARNING_DELAY=0
## Sanity check profile
if [ -z "${clst_buildpkgs}" ]
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-chroot.sh,v 1.16 2005/12/07 21:33:43 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-chroot.sh,v 1.17 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
## setup the environment
export FEATURES="${clst_myfeatures} nodoc noman noinfo"
-export EMERGE_WARNING_DELAY=0
if [ "${clst_VERBOSE}" ]
then
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-preclean-chroot.sh,v 1.7 2005/08/09 19:02:31 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-preclean-chroot.sh,v 1.8 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
update_env_settings
-export CONFIG_PROTECT="-*"
if [ -n "${clst_CCACHE}" ]
then
- emerge -C dev-util/ccache || exit 1
+ run_emerge -C dev-util/ccache || exit 1
fi
if [ -n "${clst_DISTCC}" ]
then
- emerge -C sys-devel/distcc || exit 1
+ run_emerge -C sys-devel/distcc || exit 1
fi
rm -f /var/log/emerge.log
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-chroot.sh,v 1.23 2005/12/07 21:33:43 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-chroot.sh,v 1.24 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
check_portage_version
# setup the build environment
export FEATURES="${clst_myfeatures}"
-export CONFIG_PROTECT="-*"
export USE="${USE} ${clst_HOSTUSE}"
-export EMERGE_WARNING_DELAY=0
## START BUILD
# portage needs to be merged manually with USE="build" set to avoid frying our
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-preclean-chroot.sh,v 1.7 2005/08/09 19:02:31 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-preclean-chroot.sh,v 1.8 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
update_env_settings
-export CONFIG_PROTECT="-*"
-
if [ -n "${clst_CCACHE}" ]
then
- emerge -C dev-util/ccache || exit 1
+ run_emerge -C dev-util/ccache || exit 1
fi
if [ -n "${clst_DISTCC}" ]
then
- emerge -C sys-devel/distcc || exit 1
+ run_emerge -C sys-devel/distcc || exit 1
fi
rm -f /var/log/emerge.log
## setup the environment
export FEATURES="${clst_myfeatures}"
-export CONFIG_PROTECT="-*"
## START BUILD
setup_portage
echo "Bringing system up to date using profile specific use flags"
export USE="${USE} ${clst_HOSTUSE}"
-export EMERGE_WARNING_DELAY=0
run_emerge -u system
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/stage4-controller.sh,v 1.10 2005/11/30 21:34:03 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/stage4-controller.sh,v 1.11 2005/12/08 15:16:48 rocket Exp $
. ${clst_sharedir}/targets/support/functions.sh
#${clst_sharedir}/targets/livecd-stage2/livecd-stage2-cdfs.sh
${clst_sharedir}/targets/support/target_image_setup.sh $1
;;
+
+ unmerge)
+ shift
+ export clst_packages="$*"
+ exec_in_chroot ${clst_sharedir}/targets/support/unmerge.sh
+ ;;
iso)
+++ /dev/null
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage4/Attic/unmerge.sh,v 1.2 2005/07/05 21:53:41 wolf31o2 Exp $
-
-${clst_CHROOT} ${clst_chroot_path} /bin/bash << EOF
- EMERGE_WARNING_DELAY=0 emerge -C $*
-EOF
-
-exit 0
# with no options ROOT=/
make_destpath ${clst_root_path}
+ export EMERGE_WARNING_DELAY=0
+ export CLEAN_DELAY=0
+ export CONFIG_PROTECT="-*"
+
if [ -n "${clst_VERBOSE}" ]
then
echo "ROOT=${ROOT} emerge ${clst_myemergeopts} -vpt $@" || exit 1
. /etc/profile
-CONFIG_PROTECT="-*" USE="livecd" emerge --oneshot genkernel
+export USE="livecd"
+run_emerge --oneshot genkernel
install -d /usr/portage/packages/gk_binaries
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/unmerge.sh,v 1.1 2005/12/08 15:16:48 rocket Exp $
+
+
+source /tmp/chroot-functions.sh
+
+check_portage_version
+update_env_settings
+
+run_emerge -C "${clst_packages}"
+
+exit 0
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/tinderbox-chroot.sh,v 1.14 2005/11/22 20:36:18 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/tinderbox-chroot.sh,v 1.15 2005/12/08 15:16:48 rocket Exp $
. /tmp/chroot-functions.sh
# setup the environment
export FEATURES="${clst_myfeatures}"
-export CONFIG_PROTECT="-*"
# START THE BUILD
setup_portage
do
if [ -n "${clst_VERBOSE}" ]
then
- emerge --usepkg --buildpkg --newuse -vp $x
+ run_emerge --usepkg --buildpkg --newuse -vp $x
echo "Press any key within 15 seconds to pause the build..."
read -s -t 15 -n 1
if [ $? -eq 0 ]
mkdir -p /tmp/packages/$x
export PORT_LOGDIR="/tmp/packages/$x"
- emerge --usepkg --buildpkg --newuse $x
+ run_emerge --usepkg --buildpkg --newuse $x
if [ "$?" != "0" ]
then