Move export of FEATURES to setup_myfeatures.
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 13 Feb 2008 05:58:49 +0000 (05:58 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 13 Feb 2008 05:58:49 +0000 (05:58 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1297 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
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

index b46e5b32b8e6da1c2a419ba21de5a39d40d4a299..ac8dffc9071d9a88a691b8ca10224bf1ae451092 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
 # 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
index f34009636f26a1a5028765678bfd3b172b114010..f6c47146f6fa96ec665580c870b892134fbdf60a 100644 (file)
@@ -350,7 +350,7 @@ class generic_stage_target(generic_target):
                                                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):
index e4c123dc131eb2f264a91ab17067f66bf2f028f0..b7c7e88d26eb307f5413dd22bed622d704b81393 100755 (executable)
@@ -7,19 +7,13 @@ update_env_settings
 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}"
index 228b8e4a280883596e793f123589e362dea20492..69f4145328cb9a2f1f5f1007d1be445b0a9c16fb 100755 (executable)
@@ -8,8 +8,6 @@ update_env_settings
 
 setup_myfeatures
 
-# Setup the environment
-export FEATURES="${clst_myfeatures}"
 ## START BUILD
 setup_portage
 
index 023e6617ecf33f6e312fc2f0945acfe734aa0fb5..5274937abfc5c66bac28410b818f6d48ae827793 100755 (executable)
@@ -6,13 +6,7 @@ update_env_settings
 
 setup_myfeatures
 
-# Setup the environment
-
-export FEATURES="${clst_myfeatures}"
-
 ## START BUILD
 setup_portage
 
-export USE="${clst_use} ${clst_HOSTUSE}"
-
 run_emerge "${clst_packages}"
index bf51a0b35d3d54b89ab0e8514509bfe91fa0ec52..370ec0c7011714ec2fbc28bc1c2256ad9bc80920 100755 (executable)
@@ -6,9 +6,5 @@ update_env_settings
 
 setup_myfeatures
 
-# Setup our environment
-export FEATURES="${clst_myfeatures}"
-
 # START BUILD
-
-run_emerge ${clst_myemergeopts} ${clst_packages}
+run_emerge "${clst_packages}"
index fd2351713da77e030ad3c0b895e3f73f75a3aa41..a1e65ea01a1e585c2ef3e45587b61c9214ca450d 100755 (executable)
@@ -6,10 +6,6 @@ update_env_settings
 
 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.
@@ -17,5 +13,6 @@ export USE="${USE} bindist ${clst_HOSTUSE}"
 setup_portage
 
 run_emerge "-e system"
+
 rm -f /var/lib/portage/world
 touch /var/lib/portage/world
index ba9ab85ec0b51e4fa699e93ff2e98d92e9b6b4b5..7b6f08be3877806459ad92a4fddeddf7c9c661fa 100755 (executable)
@@ -6,20 +6,12 @@ update_env_settings
 
 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}"
index 6e721416e541cde5ea8fb2f8268029d88cf1078a..e7ab348e5cfa1175b19db1a70cff46d3b7e84fdf 100755 (executable)
@@ -114,6 +114,7 @@ setup_myfeatures(){
                export PATH="/usr/lib/icecc/bin:${PATH}"
                export PREROOTPATH="/usr/lib/icecc/bin"
        fi
+       export FEATURES="${clst_myfeatures}"
 }
 
 setup_myemergeopts(){
index ef11e310228c24aad5898150f9a95b3818619df1..a4b55e3e2e7d05effcabb9a64fe1c46fdd9715b1 100755 (executable)
@@ -6,9 +6,6 @@ update_env_settings
 
 setup_myfeatures
 
-# Setup the environment
-export FEATURES="${clst_myfeatures}"
-
 # START THE BUILD
 setup_portage
 
@@ -33,7 +30,7 @@ do
 
        mkdir -p /tmp/packages/$x
        export PORT_LOGDIR="/tmp/packages/$x"
-       run_emerge --usepkg --buildpkg --newuse $x
+       run_emerge $x
 
        if [ "$?" != "0" ]
        then