[gobject-introspection] Use current working directory for temporary executables



commit a065ef184b3b1d90dc9af9cbe89093542b5e1853
Author: Colin Walters <walters verbum org>
Date:   Sun Aug 16 23:20:14 2009 -0400

    Use current working directory for temporary executables
    
    This avoids /tmp noexec madness.

 giscanner/dumper.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 0353a2f..622b252 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -76,7 +76,9 @@ class DumpCompiler(object):
     def __init__(self, options, get_type_functions):
         self._options = options
         self._get_type_functions = get_type_functions
-        self._tmpdir = tempfile.mkdtemp('', 'tmp-introspect')
+        # We have to use the current directory to work around Unix
+        # sysadmins who mount /tmp noexec
+        self._tmpdir = tempfile.mkdtemp('', 'tmp-introspect', dir=os.getcwd())
 
         self._compiler_cmd = os.environ.get('CC', 'gcc')
         self._linker_cmd = os.environ.get('LD', self._compiler_cmd)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]