[Top][All Lists]
[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: |
Mon, 25 Feb 2008 22:48:51 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
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.
The issue with sudo is a bit more complicated than I thought,
because the real user id also gets set to zero when chicken-setup is
running under sudo or su. sudo sets environment variable SUDO_USER,
which shows the id of the user that invoked sudo, so that might be one
way to detect if chicken-setup is being run under sudo. I will look
some more into this before hacking chicken-setup to change its euid.
-Ivan
"felix winkelmann" <address@hidden> writes:
>
> Cool! I have to warn you, though: chicken-setup.scm is a real mess!
- [Chicken-hackers] sudo-install, Felix Winkelmann, 2008/02/23
- Re: [Chicken-hackers] sudo-install, Thomas Christian Chust, 2008/02/24
- Re: [Chicken-hackers] sudo-install, Ivan Raikov, 2008/02/24
- Re: [Chicken-hackers] sudo-install, felix winkelmann, 2008/02/25
- Re: [Chicken-hackers] sudo-install, Ivan Raikov, 2008/02/25
- Re: [Chicken-hackers] sudo-install, felix winkelmann, 2008/02/25
- Re: [Chicken-hackers] sudo-install,
Ivan Raikov <=
- Re: [Chicken-hackers] sudo-install, felix winkelmann, 2008/02/26
- Re: [Chicken-hackers] sudo-install, Ivan Raikov, 2008/02/26
Re: [Chicken-hackers] sudo-install, felix winkelmann, 2008/02/25