From 14028a61132bf86c4ad3d8f97a76d6fff29b10ba Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sun, 10 Feb 2013 12:06:15 -0800 Subject: [PATCH] Fix a bug that portage didn't get rebuilt with the build use flag If clst_PGKCACHE is defined, --newuse was not being added to clst_myemergeopts, so then portage was not being rebuilt if portage was already up to date. --- targets/support/chroot-functions.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 35ffbaa5..d2074c08 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -168,9 +168,10 @@ setup_pkgmgr(){ # We need to merge our package manager with USE="build" set in case it is # portage to avoid frying our /etc/portage/make.conf file. Otherwise, we could # just let emerge system could merge it. - # Use --update or portage won't reinstall the same version. + # Use --update or portage won't reinstall the same version later. + # Use --newuse to make sure it rebuilds with the "build" use flag. [ -e /etc/portage/make.conf ] && echo 'USE="${USE} build"' >> /etc/portage/make.conf - run_merge --oneshot --nodeps --update sys-apps/portage + run_merge --oneshot --nodeps --update --newuse sys-apps/portage sed -i '/USE="${USE} build"/d' /etc/portage/make.conf } -- 2.26.2