public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: Brian Dolbec <dolsen@gentoo.org>
To: gentoo-catalyst@lists.gentoo.org
Subject: [gentoo-catalyst] [patch] Fix a bug that portage didn't get rebuilt with the build use flag
Date: Wed, 27 Feb 2013 01:32:24 -0800	[thread overview]
Message-ID: <1361957544.20292.20.camel@big_daddy.dol-sen.ca> (raw)

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 <dolsen@gentoo.org>



                 reply	other threads:[~2013-02-27  9:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1361957544.20292.20.camel@big_daddy.dol-sen.ca \
    --to=dolsen@gentoo.org \
    --cc=gentoo-catalyst@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox