From 7201e000ed51eeb02af62e642f400511053764ba Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Oct 2006 03:29:44 +0000 Subject: [PATCH] Call load_infodir before the setup phase for binary packages so that USE is properly set. svn path=/main/trunk/; revision=4789 --- pym/portage.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/portage.py b/pym/portage.py index 86a998c64..2882faacd 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -2954,6 +2954,12 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0, return spawn(EBUILD_SH_BINARY + " " + mydo, mysettings, debug=debug, free=1, logfile=logfile) elif mydo == "setup": + infodir = os.path.join( + mysettings["PORTAGE_BUILDDIR"], "build-info") + if os.path.isdir(infodir): + """Load USE flags for setup phase of a binary package. + Ideally, the environment.bz2 would be used instead.""" + mysettings.load_infodir(infodir) retval = spawn(EBUILD_SH_BINARY + " " + mydo, mysettings, debug=debug, free=1, logfile=logfile) if secpass >= 2: -- 2.26.2