summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-07-06 19:59:10 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-07-06 19:59:10 +0000
commitce2f4992f1f9dd8c9d1b32d5cbf429371574199c (patch)
tree4626321e770f14560508bfa3caa6ab3312f420d3 /pkgs
parent058ccd771406751beba4fd4da6da8e1a3b780abe (diff)
downloadnixpkgs-ce2f4992f1f9dd8c9d1b32d5cbf429371574199c.tar
nixpkgs-ce2f4992f1f9dd8c9d1b32d5cbf429371574199c.tar.gz
nixpkgs-ce2f4992f1f9dd8c9d1b32d5cbf429371574199c.tar.bz2
nixpkgs-ce2f4992f1f9dd8c9d1b32d5cbf429371574199c.tar.lz
nixpkgs-ce2f4992f1f9dd8c9d1b32d5cbf429371574199c.tar.xz
nixpkgs-ce2f4992f1f9dd8c9d1b32d5cbf429371574199c.tar.zst
nixpkgs-ce2f4992f1f9dd8c9d1b32d5cbf429371574199c.zip
Work around a gcl bug related to temporary directories - bug report sent upstream
svn path=/nixpkgs/trunk/; revision=22499
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/compilers/gcl/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcl/default.nix b/pkgs/development/compilers/gcl/default.nix
index 1a86b878d92..fa891e1726a 100644
--- a/pkgs/development/compilers/gcl/default.nix
+++ b/pkgs/development/compilers/gcl/default.nix
@@ -20,6 +20,13 @@ rec {
   inherit buildInputs;
   configureFlags = [];
 
+  # Upstream bug submitted - http://savannah.gnu.org/bugs/index.php?30371
+  # $TMPDIR must have no extension
+  setVars = a.noDepEntry ''
+    export TMPDIR="''${TMPDIR:-''${TMP:-''${TEMP}}}/tmp-for-gcl"
+    mkdir -p "$TMPDIR"
+  '';
+
   preBuild = a.fullDepEntry (''
     sed -re "s@/bin/cat@$(which cat)@g" -i configure */configure
     sed -re "s@if test -d /proc/self @if false @" -i configure
@@ -29,7 +36,7 @@ rec {
   fixConfigure = a.doPatchShebangs ".";
 
   /* doConfigure should be removed if not needed */
-  phaseNames = ["doUnpack" "fixConfigure" "preBuild" 
+  phaseNames = ["setVars" "doUnpack" "fixConfigure" "preBuild" 
     "doConfigure" "doMakeInstall"];
       
   meta = {