diff options
Diffstat (limited to 'morphlib/buildenvironment.py')
-rw-r--r-- | morphlib/buildenvironment.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/morphlib/buildenvironment.py b/morphlib/buildenvironment.py index 2afa4a65..3e334135 100644 --- a/morphlib/buildenvironment.py +++ b/morphlib/buildenvironment.py @@ -44,7 +44,6 @@ class BuildEnvironment(): # copy a set of white-listed variables from the original env copied_vars = dict.fromkeys([ 'DISTCC_HOSTS', - 'TMPDIR', 'LD_PRELOAD', 'LD_LIBRARY_PATH', 'FAKEROOTKEY', @@ -61,6 +60,10 @@ class BuildEnvironment(): if copied_vars[name] is not None: env[name] = copied_vars[name] + if settings['bootstrap'] or not settings['staging-chroot']: + if 'TMPDIR' in self._osenv: + env['TMPDIR'] = self._osenv['TMPDIR'] + env['TERM'] = self._override_term env['SHELL'] = self._override_shell env['USER'] = \ |