commit: dd2f7f91713bb3a5a14635c7930885fab99c5b17
Author: Joakim Tjernlund <Joakim.Tjernlund <AT> transmode <DOT> se>
AuthorDate: Mon Jul 21 14:00:06 2014 +0000
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Mon Sep 15 03:58:54 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=dd2f7f91
Wrap fakeroot around MISC_SH_BINARY calls
When feature fakeroot is active all pre/post actions need
to be called with the fakeroot wrapper.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund <AT> transmode.se>
---
pym/_emerge/MiscFunctionsProcess.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pym/_emerge/MiscFunctionsProcess.py
b/pym/_emerge/MiscFunctionsProcess.py
index bada79d..b7f5892 100644
--- a/pym/_emerge/MiscFunctionsProcess.py
+++ b/pym/_emerge/MiscFunctionsProcess.py
@@ -33,11 +33,15 @@ class MiscFunctionsProcess(AbstractEbuildProcess):
if self._dummy_pipe_fd is not None:
self.settings["PORTAGE_PIPE_FD"] =
str(self._dummy_pipe_fd)
+ if "fakeroot" in self.settings.features:
+ kwargs["fakeroot"] = True
+
# Temporarily unset EBUILD_PHASE so that bashrc code doesn't
# think this is a real phase.
phase_backup = self.settings.pop("EBUILD_PHASE", None)
try:
- return spawn(" ".join(args), self.settings, **kwargs)
+ return spawn(" ".join(args), self.settings,
+ **portage._native_kwargs(kwargs))
finally:
if phase_backup is not None:
self.settings["EBUILD_PHASE"] = phase_backup