Author: raskin
Date: 2010-07-06 19:59:10 +0000 (Tue, 06 Jul 2010)
New Revision: 22499

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22499&view=rev

Modified:
   nixpkgs/trunk/pkgs/development/compilers/gcl/default.nix

Log:
Work around a gcl bug related to temporary directories - bug report sent 
upstream

Changes:

Modified: nixpkgs/trunk/pkgs/development/compilers/gcl/default.nix
===================================================================
--- nixpkgs/trunk/pkgs/development/compilers/gcl/default.nix    2010-07-06 
16:48:03 UTC (rev 22498)
+++ nixpkgs/trunk/pkgs/development/compilers/gcl/default.nix    2010-07-06 
19:59:10 UTC (rev 22499)
@@ -20,6 +20,13 @@
   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/c...@$(which cat)@g" -i configure */configure
     sed -re "s...@if test -d /proc/self @if false @" -i configure
@@ -29,7 +36,7 @@
   fixConfigure = a.doPatchShebangs ".";
 
   /* doConfigure should be removed if not needed */
-  phaseNames = ["doUnpack" "fixConfigure" "preBuild" 
+  phaseNames = ["setVars" "doUnpack" "fixConfigure" "preBuild" 
     "doConfigure" "doMakeInstall"];
       
   meta = {

_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to