Bug #252374 - Warn if FEATURES=fakeroot is enabled, but the fakeroot binary
authorZac Medico <zmedico@gentoo.org>
Wed, 24 Dec 2008 20:31:15 +0000 (20:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 24 Dec 2008 20:31:15 +0000 (20:31 -0000)
is not installed.

svn path=/main/trunk/; revision=12301

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 e015bd5962af09d3ef9e919b786b2faf1c3654b4..bc55a884771221a5f5291998fabdc1c19506350e 100644 (file)
@@ -1799,6 +1799,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")