Write out HOSTUSE settings from arch/*.py to make.conf as well as any USE flags defin...
authorChris Gianelloni <wolf31o2@gentoo.org>
Wed, 6 Feb 2008 22:47:00 +0000 (22:47 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Wed, 6 Feb 2008 22:47:00 +0000 (22:47 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1278 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py

index 1e72fadfba41213af2c5ab1aa87582ed9a20cd33..69b5211ac09767ddc9f7a24d5dc26ab8303da864 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  06 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+  modules/generic_stage_target.py:
+  Write out HOSTUSE settings from arch/*.py to make.conf as well as any USE
+  flags defined in the spec file.
+
   06 Feb 2008; Chris Gianelloni <wolf31o2@gentoo.org> arch/ppc64.py:
   Added a patch from Markus Rothe <corsair@gentoo.org> to add power6 and cell
   subarches to ppc64 for bug #208860 and removing redundant CXXFLAGS settings,
index 457669c11d376d4717cbeac0526c2414ee8d63e0..03aeb0a1f6e1dec2ea0c381ab43c9eaa2f1f1803 100644 (file)
@@ -910,13 +910,15 @@ class generic_stage_target(generic_target):
                                myf.write('CBUILD="'+self.settings["CBUILD"]+'"\n')
                        myf.write('# WARNING: Changing your CHOST is not something that should be done lightly.\n# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing it.\nCHOST="'+self.settings["CHOST"]+'"\n')
                    
-                   # Figure out what our USE vars are for building
+                       # Figure out what our USE vars are for building
                        myusevars=[]
                        if self.settings.has_key("HOSTUSE"):
                                myusevars.extend(self.settings["HOSTUSE"])
                
                        if self.settings.has_key("use"):
                                myusevars.extend(self.settings["use"])
+
+                       if myusevars:
                                myf.write('USE="'+string.join(myusevars)+'"\n')
 
                    # Setup the portage overlay