Make special build and bootstrap flags into implicit members
authorZac Medico <zmedico@gentoo.org>
Tue, 18 Dec 2007 12:05:56 +0000 (12:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 18 Dec 2007 12:05:56 +0000 (12:05 -0000)
of IUSE so that stage builds will work again. (trunk r8955)

svn path=/main/branches/2.1.2/; revision=8956

pym/portage.py

index 36ca0db5c2d66242aa198156431186799c25c432..0f1fda2dee44aa616c1817b1e4a15cfa2ae1e4ff 100644 (file)
@@ -2374,6 +2374,7 @@ class config:
                #  * Flags derived from USE_EXPAND_HIDDEN variables
                #  * Masked flags, such as those from {,package}use.mask
                #  * Forced flags, such as those from {,package}use.force
+               #  * build and bootstrap flags used by bootstrap.sh
 
                if self.mycpv:
                        iuse_implicit = set(iuse)
@@ -2396,6 +2397,10 @@ class config:
                        iuse_implicit.update(self.usemask)
                        iuse_implicit.update(self.useforce)
 
+                       # build and bootstrap flags used by bootstrap.sh
+                       iuse_implicit.add("build")
+                       iuse_implicit.add("bootstrap")
+
                        iuse_grep = iuse_implicit.copy()
                        if use_expand_hidden_raw:
                                for x in use_expand_hidden_raw: