public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [patch] Fix a bug that portage didn't get rebuilt with the build use flag
@ 2013-02-27  9:32 Brian Dolbec
  0 siblings, 0 replies; only message in thread
From: Brian Dolbec @ 2013-02-27  9:32 UTC (permalink / raw
  To: gentoo-catalyst

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>



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-27  9:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-27  9:32 [gentoo-catalyst] [patch] Fix a bug that portage didn't get rebuilt with the build use flag Brian Dolbec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox