From dffd8672855151cedff1534f84eb17d2f11dba61 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 5 Apr 2016 21:27:16 +0000 Subject: [PATCH] build: Respect TMPDIR for virtualenv. Gentoo's normal build process uses a sandbox to catch writes outside the build environment; this includes providing a value other than /tmp for TMPDIR. Use TMPDIR by default for CEPH_BUILD_VIRTUALENV. Signed-off-by: Robin H. Johnson --- src/Makefile-env.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile-env.am b/src/Makefile-env.am index 2fb22a68b337..df225d684731 100644 --- a/src/Makefile-env.am +++ b/src/Makefile-env.am @@ -299,6 +299,8 @@ DENCODER_DEPS = # put virtualenvs in this directory # otherwise it may overflow #! 80 kernel limit -export CEPH_BUILD_VIRTUALENV = /tmp +# beware that some build environments might not be able to write to /tmp +export TMPDIR ?= /tmp +export CEPH_BUILD_VIRTUALENV = $(TMPDIR) radoslibdir = $(libdir)/rados-classes -- 2.47.3