From dd87c8dd63f0c6b16047aa851695f3a61aa75afa Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Dec 2008 01:27:55 +0000 Subject: Bug #252374 - Warn if FEATURES=fakeroot is enabled, but the fakeroot binary is not installed. (trunk r12301) svn path=/main/branches/2.1.6/; revision=12324 --- bin/ebuild | 1 + pym/portage/__init__.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/bin/ebuild b/bin/ebuild index 33326d63e..90c599e26 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -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 diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 09eeb85cb..6b3fefb29 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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") -- cgit v1.2.3-1-g7c22