redirecting cabal-install from /tmp

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? I would be happy to patch the source and rebuild if need be. Thanks in advance, Chris

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

Daniel Fischer
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.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

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

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"
Ooohhh, forgot you can do that... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Thanks Daniel and Erlend, I now have cabal-install working. Chris -----Original Message----- From: daniel.is.fischer@web.de [mailto:daniel.is.fischer@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
participants (4)
-
Chris Dornan
-
Daniel Fischer
-
Erlend Hamberg
-
Ivan Lazar Miljenovic