chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] sudo-install


From: Ivan Raikov
Subject: Re: [Chicken-hackers] sudo-install
Date: Tue, 26 Feb 2008 19:31:35 +0900
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

  I have added checks for TMPDIR and TEMPDIR. I do have TMP set in my
environment, but it turned out this is something I have added, not
part of the standard user environment. If anyone has suggestions about
other environment variables that specify temporary directory, I can
add those, too.

  If none of the T.* variables is set, then if /tmp is writeable, the
default build directory becomes
/tmp/chicken-setup-{MAJOR-VERSION}-{USER}, 
otherwise {HOME}/tmp/chicken-setup-{MAJOR-VERSION}-{USER}. If
{HOME}/tmp does not exist, then the current directory is used.

   -Ivan


"felix winkelmann" <address@hidden> writes:

> On Mon, Feb 25, 2008 at 2:48 PM, Ivan Raikov <address@hidden> wrote:
>>
>>    I have added two options to chicken-setup: -build-prefix and
>>  -download-dir. build-prefix is where chicken-setup creates a temporary
>>  directory, unpacks the egg and then compiles it. download-dir is the
>>  directory where downloaded egg files are saved. build-prefix defaults
>>  to the value of the environment variable TMP, if set, otherwise
>>  $HOME/chicken-build. If some other behavior is desired, I can easily
>>  make changes.
>
> I would propose the following changes:
>
> - also check TMPDIR and TEMPDIR (I have none of those T... variables
>   set in my env, BTW)
> - use "/tmp/chicken-setup-$USER" (or similar) instead of $HOME/chicken-build
>   (the latter is too generic and might conflict with existing directories)
>
>
> cheers,
> felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]