Re: [Haskell-cafe] redirecting cabal-install from /tmp

2010-04-17 Thread Daniel Fischer
Am Sonntag 18 April 2010 00:02:52 schrieb Chris Dornan:
 Hi Everyone,



 I am trying to get cabal-install to work on a system in which /tmp is
 mounted noexec. Is there any way to configure it to use another
 directory?


cabal-install gets its temporary directory via 
System.Directory.getTemporaryDirectory, so you can specify some other 
directory via the TMPDIR environment variable (TMP on windows).



 I would be happy to patch the source and rebuild if need be.

Or that.




 Thanks in advance,



 Chris

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] redirecting cabal-install from /tmp

2010-04-17 Thread Ivan Lazar Miljenovic
Daniel Fischer daniel.is.fisc...@web.de writes:
 cabal-install gets its temporary directory via 
 System.Directory.getTemporaryDirectory, so you can specify some other 
 directory via the TMPDIR environment variable (TMP on windows).

Except I think Chris wants to be able to specify a directory, since
other applications would probably want to keep using /tmp for TMPDIR.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] redirecting cabal-install from /tmp

2010-04-17 Thread Erlend Hamberg
On Sunday 18. April 2010 00.49.28 Ivan Lazar Miljenovic wrote:
 Except I think Chris wants to be able to specify a directory, since
 other applications would probably want to keep using /tmp for TMPDIR.

alias cabal=TMPDIR=/foo cabal

-- 
Erlend Hamberg
“Everything will be ok in the end. If it's not ok, it's not the end.”
GPG/PGP:  0xAD3BCF19
45C3 E2E7 86CA ADB7 8DAD 51E7 3A1A F085 AD3B CF19


signature.asc
Description: This is a digitally signed message part.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


RE: [Haskell-cafe] redirecting cabal-install from /tmp

2010-04-17 Thread Chris Dornan
Thanks Daniel and Erlend,

I now have cabal-install working.

Chris

-Original Message-
From: daniel.is.fisc...@web.de [mailto:daniel.is.fisc...@web.de] 
Sent: 17 April 2010 5:4 PM
To: haskell-cafe@haskell.org
Cc: Chris Dornan
Subject: Re: [Haskell-cafe] redirecting cabal-install from /tmp

Am Sonntag 18 April 2010 00:02:52 schrieb Chris Dornan:
 Hi Everyone,



 I am trying to get cabal-install to work on a system in which /tmp is 
 mounted noexec. Is there any way to configure it to use another 
 directory?


cabal-install gets its temporary directory via 
System.Directory.getTemporaryDirectory, so you can specify some other directory 
via the TMPDIR environment variable (TMP on windows).



 I would be happy to patch the source and rebuild if need be.

Or that.




 Thanks in advance,



 Chris

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] redirecting cabal-install from /tmp

2010-04-17 Thread Ivan Lazar Miljenovic
Erlend Hamberg ehamb...@gmail.com writes:

 On Sunday 18. April 2010 00.49.28 Ivan Lazar Miljenovic wrote:
 Except I think Chris wants to be able to specify a directory, since
 other applications would probably want to keep using /tmp for TMPDIR.

 alias cabal=TMPDIR=/foo cabal

Ooohhh, forgot you can do that...

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe