Bug #252374 - Warn if FEATURES=fakeroot is enabled, but the fakeroot binary
authorZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 01:27:55 +0000 (01:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 25 Dec 2008 01:27:55 +0000 (01:27 -0000)
is not installed. (trunk r12301)

svn path=/main/branches/2.1.6/; revision=12324

bin/ebuild
pym/portage/__init__.py

index 33326d63e824300b8c3ea8f5fb61e1eda35c517a..90c599e2647941d18063ace922cbafca34f6dc8e 100755 (executable)
@@ -169,6 +169,7 @@ def discard_digests(myebuild, mysettings, mydbapi):
        finally:
                portage._doebuild_manifest_exempt_depend -= 1
 
+portage.settings.validate() # generate warning messages if necessary
 tmpsettings = portage.config(clone=portage.settings)
 if "test" in pargs:
        # This variable is a signal to config.regenerate() to
index 09eeb85cb1d14ada7eb1cdb09927474a5826975c..6b3fefb29e325c134fa8ee500898da3f39cd1316 100644 (file)
@@ -1789,6 +1789,11 @@ class config(object):
                        writemsg("!!! /etc/portage/profile/virtuals. Please move it to\n")
                        writemsg("!!! this new location.\n\n")
 
+               if "fakeroot" in self.features and \
+                       not portage.process.fakeroot_capable:
+                       writemsg("!!! FEATURES=fakeroot is enabled, but the " + \
+                               "fakeroot binary is not installed.\n", noiselevel=-1)
+
        def loadVirtuals(self,root):
                """Not currently used by portage."""
                writemsg("DEPRECATED: portage.config.loadVirtuals\n")