From 6c0a577deaf6cdfb188abe1ce2f263122eaa8935 Mon Sep 17 00:00:00 2001 From: "Jorge Manuel B. S. Vicetto (jmbsvicetto)" Date: Mon, 4 Mar 2013 03:12:18 +0000 Subject: [PATCH] Fix update_seed use by not using nor building binary packages during the seed update. --- targets/stage1/stage1-chroot.sh | 5 ++++- targets/support/chroot-functions.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh index 3f628c22..ed83f385 100644 --- a/targets/stage1/stage1-chroot.sh +++ b/targets/stage1/stage1-chroot.sh @@ -30,12 +30,15 @@ if [ -n "${clst_update_seed}" ]; then if [ -n "${clst_update_seed_command}" ]; then clst_root_path=/ run_merge "--buildpkg=n ${clst_update_seed_command}" else - clst_root_path=/ run_merge "--buildpkg=n --update --deep --newuse --onlydeps gcc" + clst_root_path=/ run_merge "--update --deep --newuse --complete-graph --rebuild-if-new-ver gcc" fi elif [ "${clst_update_seed}" != "no" ]; then echo "Invalid setting for update_seed: ${clst_update_seed}" exit 1 fi + + # reset emerge options for the target + clst_update_seed=no setup_myemergeopts else echo "Skipping seed stage update..." fi diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 35ffbaa5..0705b5b6 100644 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -133,7 +133,7 @@ setup_myemergeopts(){ then export bootstrap_opts="${bootstrap_opts} -f" export clst_myemergeopts="${clst_myemergeopts} -f" - elif [ -n "${clst_PKGCACHE}" ] + elif [ -n "${clst_PKGCACHE}" -a -z "${clst_update_seed}" ] then export clst_myemergeopts="${clst_myemergeopts} --usepkg --buildpkg --newuse" export bootstrap_opts="${bootstrap_opts} -r" -- 2.26.2