From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 33136198005 for ; Wed, 27 Feb 2013 09:32:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0E89E05A1; Wed, 27 Feb 2013 09:32:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A0F1E05A1 for ; Wed, 27 Feb 2013 09:32:46 +0000 (UTC) Received: from [192.168.1.210] (unknown [24.86.176.233]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: dolsen) by smtp.gentoo.org (Postfix) with ESMTPSA id 2B48A33DF04 for ; Wed, 27 Feb 2013 09:32:45 +0000 (UTC) Message-ID: <1361957544.20292.20.camel@big_daddy.dol-sen.ca> Subject: [gentoo-catalyst] [patch] Fix a bug that portage didn't get rebuilt with the build use flag From: Brian Dolbec To: gentoo-catalyst@lists.gentoo.org Date: Wed, 27 Feb 2013 01:32:24 -0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.3 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2dc1247e-17c6-4d1a-aa1d-07e83c345751 X-Archives-Hash: 63f20dd00944d4246bab4e437fd8927b Another bug that should be fixed in master. Probably apply to master cleanly. ============================================== diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 35ffbaa..d2074c0 100755 @@ -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 } -- Brian Dolbec