From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Modification for guix installation script. Date: Tue, 27 Mar 2018 13:53:32 +0200 Message-ID: References: <87d0zr9r76.fsf@lassieur.org> <87fu4ngq0a.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113eb35c36a2560568638a6d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0nAW-00073I-1g for guix-devel@gnu.org; Tue, 27 Mar 2018 07:53:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0nAU-0002E4-RY for guix-devel@gnu.org; Tue, 27 Mar 2018 07:53:36 -0400 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]:44773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0nAU-0002DT-LT for guix-devel@gnu.org; Tue, 27 Mar 2018 07:53:34 -0400 Received: by mail-io0-x234.google.com with SMTP id d7so11864260ioc.11 for ; Tue, 27 Mar 2018 04:53:34 -0700 (PDT) In-Reply-To: <87fu4ngq0a.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: Guix-devel , 30728@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment_Lassieur?= , Tatiana Sholokhova --001a113eb35c36a2560568638a6d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2018-03-26 11:11 GMT+02:00 Ricardo Wurmus : > > Hi Cl=C3=A9ment, > > > As I said to Chris (Cc'ed), I don't think it's a good idea to install > > Guix in root's home directory. Instead, we should probably honor the > > USER and HOME environment variables, so that the command can be run as = a > > non-root user (with sudo) in a consistent way. What do you think? > > The script should be run as root as it follows the manual=E2=80=99s > instructions, which tell people to install Guix for the root user and > then make it available system-wide. > > This is why I think that it would be correct to install it to the root=E2= =80=99s > home directory and not to the sudoing user=E2=80=99s HOME. > > Or am I missing something? > > I think Ricardo is right on this one. I would also recommend installing in root's home directory. Ibelieve, that installing in a user home would make sense only with a big amount of additional instrumentation and documentation changes, along with arrangements to allow guix in userspace. This is a straightforward way to make the script do what it's purpose is. > -- > Ricardo > > GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC > https://elephly.net > > > > --001a113eb35c36a2560568638a6d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2018= -03-26 11:11 GMT+02:00 Ricardo Wurmus <rekado@elephly.net>:=

Hi Cl=C3=A9ment,

> As I said to Chris (Cc'ed), I don't think it's a good idea= to install
> Guix in root's home directory.=C2=A0 Instead, we should probably h= onor the
> USER and HOME environment variables, so that the command can be run as= a
> non-root user (with sudo) in a consistent way.=C2=A0 What do you think= ?

The script should be run as root as it follows the manual=E2=80=99s<= br> instructions, which tell people to install Guix for the root user and
then make it available system-wide.

This is why I think that it would be correct to install it to the root=E2= =80=99s
home directory and not to the sudoing user=E2=80=99s HOME.

Or am I missing something?

<= br>
I think Ricardo is right on this one. I would also recommend = installing in
root's home directory. Ibelieve, that installin= g in a user home would make
sense only with a big amount of addit= ional instrumentation and
documentation changes, along with arran= gements to allow guix in
userspace. This is a straightforward way= to make the script do what it's
purpose is.
=C2=A0=
--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6=C2=A0 2150 197A 5888 235F ACAC
https:= //elephly.net




--001a113eb35c36a2560568638a6d--