]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build: Respect TMPDIR for virtualenv. 8457/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Tue, 5 Apr 2016 21:27:16 +0000 (21:27 +0000)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Tue, 5 Apr 2016 21:28:41 +0000 (21:28 +0000)
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 <robin.johnson@dreamhost.com>
src/Makefile-env.am

index 2fb22a68b33796a718e03e5b9dfcdda1cdb2d029..df225d684731631c189169611fb85051ff63c2cb 100644 (file)
@@ -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