Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6461 - workaround for architectures and USE
Summary: workaround for architectures and USE
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-14 10:58 UTC by Hannes Mehnert (RETIRED)
Modified: 2011-10-30 22:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes Mehnert (RETIRED) gentoo-dev 2002-08-14 10:58:32 UTC
I think USE="x86" or USE="ppc" makes no sense in configuration files, and ARCH 
(which is defined in /etc/make.profile/make.defaults) is not used in portage. 
 
My suggestion is: 
 -only have an ARCH="x86" or ARCH="ppc" or ARCH=foo 
 -ARCH is appended to USE in portage (because then use x86 or use ppc works in 
ebuilds, its as easy as USE="x86") 
 
I wrote a patch for portage.py, here is a diff (portage-2.0.27): 
hannes@neptun ~ $ diff -u /usr/lib/python2.2/site-packages/portage.py.new 
/usr/lib/python2.2/site-packages/portage.py 
--- /usr/lib/python2.2/site-packages/portage.py.new Wed Aug 14 17:43:26 2002 
+++ /usr/lib/python2.2/site-packages/portage.py Wed Aug  7 20:53:35 2002 
@@ -697,7 +697,6 @@ 
                                #prepend db to list to get correct order 
                                self.uvlist[0:0]=[self.configdict[x]] 
                self.regenerate() 
-               self["USE"] += " "+self["ARCH"] 
  
        def regenerate(self,useonly=0): 
                global incrementals,usesplit 
 
 
Hope You got my point, if not, please ask.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-08-16 23:35:54 UTC
Don't understand the problem.