From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Mar 2018 09:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 30728@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152033006031665 (code B ref -1); Tue, 06 Mar 2018 09:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Mar 2018 09:54:20 +0000 Received: from localhost ([127.0.0.1]:46833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1et9Ia-0008Ee-D2 for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1et9IY-0008ES-9C for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et9IS-0005yJ-2O for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44439) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1et9IR-0005yC-Vg for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et9IQ-0002fk-Un for bug-guix@gnu.org; Tue, 06 Mar 2018 04:54:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et9IO-0005wc-CO for bug-guix@gnu.org; Tue, 06 Mar 2018 04:54:10 -0500 Received: from mail.lassieur.org ([83.152.10.219]:52616) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1et9IO-0005wA-05 for bug-guix@gnu.org; Tue, 06 Mar 2018 04:54:08 -0500 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id a0639e9d (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Tue, 6 Mar 2018 09:54:05 +0000 (UTC) User-agent: mu4e 1.0; emacs 25.3.1 User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Date: Tue, 06 Mar 2018 10:54:04 +0100 Message-ID: <87zi3lh6mb.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hi, My system is Ubuntu 16.04. I ran './guix-install.sh' and got the message: "This script must be run as root.". So I ran 'sudo ./guix-install.sh' and got an error message saying that: GUIX_PROFILE="${HOME}/.guix-profile" source "${GUIX_PROFILE}/etc/profile" the 'source' command doesn't work because ${GUIX_PROFILE} was never created, ${HOME} being /home/clement, not /root. To recover from this I had to manually delete /var/guix and /gnu, log as root with 'su', and start again. Clément From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 23 Mar 2018 13:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 30728@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152181125513761 (code B ref -1); Fri, 23 Mar 2018 13:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2018 13:20:55 +0000 Received: from localhost ([127.0.0.1]:48823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezMcp-0003Zs-AO for submit@debbugs.gnu.org; Fri, 23 Mar 2018 09:20:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezMcn-0003Zf-Mp for submit@debbugs.gnu.org; Fri, 23 Mar 2018 09:20:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezMch-00004q-Dg for submit@debbugs.gnu.org; Fri, 23 Mar 2018 09:20:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60612) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ezMch-0008WB-AD for submit@debbugs.gnu.org; Fri, 23 Mar 2018 09:20:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezMcg-0003I3-8m for bug-guix@gnu.org; Fri, 23 Mar 2018 09:20:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezMcc-0008NI-AB for bug-guix@gnu.org; Fri, 23 Mar 2018 09:20:46 -0400 Received: from mail.lassieur.org ([83.152.10.219]:55498) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ezMcb-0008M8-VO for bug-guix@gnu.org; Fri, 23 Mar 2018 09:20:42 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 0ad33cfb (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Fri, 23 Mar 2018 13:20:39 +0000 (UTC) References: <87zi3lh6mb.fsf@lassieur.org> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87zi3lh6mb.fsf@lassieur.org> Date: Fri, 23 Mar 2018 14:20:38 +0100 Message-ID: <871sgbdj2x.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Clément Lassieur writes: > Hi, > > My system is Ubuntu 16.04. > > I ran './guix-install.sh' and got the message: "This script must be run > as root.". So I ran 'sudo ./guix-install.sh' and got an error message > saying that: > > GUIX_PROFILE="${HOME}/.guix-profile" > source "${GUIX_PROFILE}/etc/profile" > > the 'source' command doesn't work because ${GUIX_PROFILE} was never > created, ${HOME} being /home/clement, not /root. > > To recover from this I had to manually delete /var/guix and /gnu, log as > root with 'su', and start again. > > Clément I believe the script should install Guix in the user's home directory, not in ~root. From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Mar 2018 05:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152195503224530 (code B ref 30728); Sun, 25 Mar 2018 05:18:02 +0000 Received: (at 30728) by debbugs.gnu.org; 25 Mar 2018 05:17:12 +0000 Received: from localhost ([127.0.0.1]:52056 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezy1m-0006NZ-WA for submit@debbugs.gnu.org; Sun, 25 Mar 2018 01:17:12 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:40576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ezy1j-0006NK-Up for 30728@debbugs.gnu.org; Sun, 25 Mar 2018 01:17:08 -0400 Received: by mail-pf0-f173.google.com with SMTP id v66so3788503pfv.7 for <30728@debbugs.gnu.org>; Sat, 24 Mar 2018 22:17:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=HeHKoTeTDWrgi+xxgkR+eKww9ChQnUfFsLpH/mibur4=; b=oOOCK/BOGN7ni8blP9h2+r6/zvpTSK58stotofI+KXOH8qQjW7iwMVZmb2LFtBF/Df niD+7AHo12BmlqBHjDQvYhOVbzZq33KnQp/gySFPOYwJyjyjYzrv7wvO6prI7mYqFqIC mjR3Af2VeklHHV8M5ft1zCZIEBynNH+ObvFnVpMwekso/afoIlQ94aJlULiwwhT+TpyE XFSs722nT7nYXrUORVZcBL13EnmBgmEt1vRwH43m5lJ5N0K74y5NLd8q51vTrP3eoJzu mbtjQFR97kPtDy6xBogJFiOp8qb/harBPSwRiLuRKYZZ/qCHiQaW2Pju5d/+x1NjG/mM CiXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=HeHKoTeTDWrgi+xxgkR+eKww9ChQnUfFsLpH/mibur4=; b=MNcRLvtSQXzFhrUXwUFQCNbim680F3J6gX+3vnRkwVqOO6snHuWczq2UZ1V21kC9qE xw4F3KZFDW8ohoJcGBJUaTj2nPu1mod3JsxHXBokkhuviYH0TlofQZJlMz1oKUzbky48 z5l7L+eE1Qv79V1pAwTj3C5HNVlsOPw9vt6GcjWHPgwW8KpjuzhnxQPwPqiiTABwmfQv vwJDIEsDyu+B/W9eWYo7NfMU7h0fzSt/rk8tSKC+gBgJfBd8sBt6JRJ5vQqtmJxq4g+4 mLVX/tnzL8Q7WS6TYNLHX+FIWzUAmVVbbVSClAZ5btODuTxk4KUyHr3zhfA8CbQon4nY eD4A== X-Gm-Message-State: AElRT7EmMs6vrOLtfnCG16TWozz7ssEP1xrGxncKztxLA/ycYVy76Vxu vW2i0lUqVpZpGT0DmuLNEdO5dOI8 X-Google-Smtp-Source: AG47ELudJgr6W/TMD/SCiW/+dq2kzVqIQOISekCeTV/gqifs8szLRiRi3Z6VXYcZ9kqOoTzQXTcYlA== X-Received: by 10.99.3.216 with SMTP id 207mr7121945pgd.163.1521955021506; Sat, 24 Mar 2018 22:17:01 -0700 (PDT) Received: from garuda.local ([2601:602:9d02:4725:6495:ba21:1ebe:620a]) by smtp.gmail.com with ESMTPSA id z85sm25579621pfd.104.2018.03.24.22.16.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 24 Mar 2018 22:16:59 -0700 (PDT) From: Chris Marusich References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> Date: Sun, 25 Mar 2018 07:16:58 +0200 In-Reply-To: <871sgbdj2x.fsf@lassieur.org> ("=?UTF-8?Q?Cl=C3=A9ment?= Lassieur"'s message of "Fri, 23 Mar 2018 14:20:38 +0100") Message-ID: <87d0zsn391.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cl=C3=A9ment Lassieur writes: > Cl=C3=A9ment Lassieur writes: > >> Hi, >> >> My system is Ubuntu 16.04. >> >> I ran './guix-install.sh' and got the message: "This script must be run >> as root.". So I ran 'sudo ./guix-install.sh' and got an error message >> saying that: >> >> GUIX_PROFILE=3D"${HOME}/.guix-profile" >> source "${GUIX_PROFILE}/etc/profile" >> >> the 'source' command doesn't work because ${GUIX_PROFILE} was never >> created, ${HOME} being /home/clement, not /root. >> >> To recover from this I had to manually delete /var/guix and /gnu, log as >> root with 'su', and start again. >> >> Cl=C3=A9ment > > I believe the script should install Guix in the user's home directory, > not in ~root. The manual says (see: (guix) Binary Installation): 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2=80= =98~/.guix-profile=E2=80=99: # ln -sf /var/guix/profiles/per-user/root/guix-profile \ ~root/.guix-profile Source =E2=80=98etc/profile=E2=80=99 to augment =E2=80=98PATH=E2=80=99= and other relevant environment variables: # GUIX_PROFILE=3D$HOME/.guix-profile ; \ source $GUIX_PROFILE/etc/profile I believe the expectation here is that $HOME will expand to root's home directory. Look at the previous ln invocation: we set up a symlink for the .guix-profile in root's home directory, so it's pretty clear that $HOME/.guix-profile is supposed to point to that profile. I think there is a tacit assumption in the manual and the guix-install.sh script that the HOME environment variable will refer to root's home directory, which is not always true. For example, on current Ubuntu, if you run sudo with no arguments, you will find that the HOME environment variable still points to your unprivileged user's home directory, not to root's home directory. This is because sudo can be configured in many ways, and on Ubuntu, they have chosen to configure it in that way. On other systems, it might behave differently. I've attached a patch which should fix this. Can you confirm whether it works? =2D-=20 Chris --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-guix-install.sh-Explicitly-set-root-s-home-directory.patch Content-Transfer-Encoding: quoted-printable From=203a774d199a59308c3a8e423b6093cd174c9384e4 Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sun, 25 Mar 2018 06:47:42 +0200 Subject: [PATCH] guix-install.sh: Explicitly set root's home directory. * etc/guix-install.sh (ROOT_HOME): New variable. (sys_create_store, sys_enable_guix_daemon, sys_authorize_build_farms): Use ROOT_HOME instead of ~root or the HOME environment variable. * doc/guix.texi (Binary Installation): Instead of assuming that $HOME refers to root's directory simply because commands are being run as root, explicilty refer to it via ~root. Fixes: =2D-- doc/guix.texi | 2 +- etc/guix-install.sh | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 49b3dd10d..285f0c300 100644 =2D-- a/doc/guix.texi +++ b/doc/guix.texi @@ -482,7 +482,7 @@ Source @file{etc/profile} to augment @code{PATH} and ot= her relevant environment variables: =20 @example =2D# GUIX_PROFILE=3D$HOME/.guix-profile ; \ +# GUIX_PROFILE=3D"`echo ~root`/.guix-profile" ; \ source $GUIX_PROFILE/etc/profile @end example =20 diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 933492a33..78cd7580b 100755 =2D-- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -50,6 +50,11 @@ DEBUG=3D0 GNU_URL=3D"https://alpha.gnu.org/gnu/guix/" OPENPGP_SIGNING_KEY_ID=3D"3CE464558A84FDC69DB40CFB090B11993D9AEBB5" =20 +# This script needs to know where root's home directory is. However, we +# cannot simply use the HOME environment variable, since there is no guara= ntee +# that it points to root's home directory. +ROOT_HOME=3D"$(echo ~root)" + # ------------------------------------------------------------------------= ------ #+UTILITIES =20 @@ -264,9 +269,9 @@ sys_create_store() =20 _msg "${INF}Linking the root user's profile" ln -sf /var/guix/profiles/per-user/root/guix-profile \ =2D ~root/.guix-profile + "${ROOT_HOME}/.guix-profile" =20 =2D GUIX_PROFILE=3D"${HOME}/.guix-profile" + GUIX_PROFILE=3D"${ROOT_HOME}/.guix-profile" source "${GUIX_PROFILE}/etc/profile" _msg "${PAS}activated root profile at /root/.guix-profile" } @@ -316,13 +321,13 @@ sys_enable_guix_daemon() case "$INIT_SYS" in upstart) { initctl reload-configuration; =2D cp ~root/.guix-profile/lib/upstart/system/guix-daemon.conf= \ + cp "${ROOT_HOME}/.guix-profile/lib/upstart/system/guix-daemo= n.conf" \ /etc/init/ && start guix-daemon; } && _msg "${PAS}enabled Guix daemon via upstart" ;; systemd) =2D { cp ~root/.guix-profile/lib/systemd/system/guix-daemon.serv= ice \ + { cp "${ROOT_HOME}/.guix-profile/lib/systemd/system/guix-daemo= n.service" \ /etc/systemd/system/; chmod 664 /etc/systemd/system/guix-daemon.service; systemctl daemon-reload && @@ -332,7 +337,7 @@ sys_enable_guix_daemon() ;; NA|*) _msg "${ERR}unsupported init system; run the daemon manually:" =2D echo " ~root/.guix-profile/bin/guix-daemon --build-users-gr= oup=3Dguixbuild" + echo " ${ROOT_HOME}/.guix-profile/bin/guix-daemon --build-use= rs-group=3Dguixbuild" ;; esac =20 @@ -352,9 +357,9 @@ sys_authorize_build_farms() while true; do read -p "Permit downloading pre-built package binaries from the pr= oject's build farms? (yes/no) " yn case $yn in =2D [Yy]*) guix archive --authorize < ~root/.guix-profile/share/= guix/hydra.gnu.org.pub && + [Yy]*) guix archive --authorize < "${ROOT_HOME}/.guix-profile/= share/guix/hydra.gnu.org.pub" && _msg "${PAS}Authorized public key for hydra.gnu.o= rg"; =2D guix archive --authorize < ~root/.guix-profile/share/= guix/berlin.guixsd.org.pub && + guix archive --authorize < "${ROOT_HOME}/.guix-profile/= share/guix/berlin.guixsd.org.pub" && _msg "${PAS}Authorized public key for berlin.guixsd= .org"; break;; [Nn]*) _msg "${INF}Skipped authorizing build farm public keys" =2D-=20 2.15.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlq3MMoACgkQ3UCaFdgi Rp3KWg/+KatKAzc0w1zb3wQOGiGf+Q6nJQeGzM5fuWVQVJTaGr1GxWF1ApkT824S sMaXW2g7Z6HJyiTp6yj4qFQMjv7OEUjJ9exFG0lDN5drBicoqbtpF51k3Yl8PKNt XNBGUknBtqu1WA8KLtDJXooicWM+k0EIoX4QTOSSrtjJCe+R7G8geLWGlnxGi26o 6uO3xNVr6CoVo5oodlPDTIlXojACfaPt0Yc3lMEJ5RnYx8NFK/7yceF+oKiT2sgG 3hZQtftSSZe8uaG/h++8U8Td0weBS09jfBQwN2JbPvrT2qDkBGyE+rfZx3L2KlPl +9N0e3/C6UwN/uqSpMJee3zZIoOio2KLgHoa5syUIkR2BmHRspHgE17Oaqin/+YG JpioCiapJX8kURB2LoPcWpb0fcWkGEb+vEJRu5SPJwNSop9DnclGS5sKplIQn824 hL1Ln/wkEdQX9sXPPP59tr4TlueMP2BYl6riGiry9uL9KmZUWj3jJ8Cm+90gaELM 8PwGK2/mU2h5jN+RK4Gfdq487LOpAbBhTBzJ6IES+/jh5Afl+dBd9QpVQJejCWMs 8+v5tH8sMqwyZWun+Oz136bDSXQKolta4B0NIIjE//zM9tu53MhsaZrsPlMUtuVZ GuB9ON+vq4rBn9B7KLwCL+ikSKooqWB/9iFRstLAEHyU/6juq/o= =KZ/w -----END PGP SIGNATURE----- --==-=-=-- From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Mar 2018 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tatiana Sholokhova Cc: guix-devel@gnu.org, cmmarusich@gmail.com, 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15219925382675 (code B ref 30728); Sun, 25 Mar 2018 15:43:02 +0000 Received: (at 30728) by debbugs.gnu.org; 25 Mar 2018 15:42:18 +0000 Received: from localhost ([127.0.0.1]:53098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f07mk-0000h5-3w for submit@debbugs.gnu.org; Sun, 25 Mar 2018 11:42:18 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f07mf-0000gr-7L for 30728@debbugs.gnu.org; Sun, 25 Mar 2018 11:42:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1521991598; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=923; bh=eL6/xh1g9skya08GW2dj4FcKQH7amlpi+z/eusv0evc=; b=BLp0N3Vb+6u0I4GazSzojyRgjuRVfySp4MFwUKUhIu7w7OPY0p+USrnFEaX+8vpx Fsu8fyXntlqPTYIdDBLfuHvax/5NoiVNvfLvlyBwS29nNBGSC0LT/DwmxUtjgdqDVEp OgUt3cZHr47BpFxNfyCrF85vNAtSuyW+w/v6msWM= Received: from localhost (port-92-200-141-60.dynamic.qsc.de [92.200.141.60]) by mx.zohomail.com with SMTPS id 1521991598583159.67178932504362; Sun, 25 Mar 2018 08:26:38 -0700 (PDT) References: User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 25 Mar 2018 17:26:34 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87muywi3bp.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Tatiana, > I have installed guix for the first time and noticed that the installatio= n > script at > https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-install.sh did n= ot > work for me. So, I had to make some modifications. > > There was a problem with the path to root user home directory. Below I > provide diff output for original script and my modified script. Thank you. Could you please make that change on top of the current version of the Guix sources as a git commit? Then you can run =E2=80=9Cgit format-patch -= 1=E2=80=9D to format it as a patch in a format that we can apply. You can send the resulting patch file as an attachment to a reply to this email. This also fixes bug #30728, so please add this line to the commit message: Fixes . -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Mar 2018 18:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: guix-devel@gnu.org, 30728@debbugs.gnu.org, Tatiana Sholokhova Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152200433528250 (code B ref 30728); Sun, 25 Mar 2018 18:59:01 +0000 Received: (at 30728) by debbugs.gnu.org; 25 Mar 2018 18:58:55 +0000 Received: from localhost ([127.0.0.1]:53187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0Ar1-0007La-Gg for submit@debbugs.gnu.org; Sun, 25 Mar 2018 14:58:55 -0400 Received: from world.peace.net ([50.252.239.5]:53010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0Aqz-0007LM-6L for 30728@debbugs.gnu.org; Sun, 25 Mar 2018 14:58:53 -0400 Received: from pool-72-93-33-63.bstnma.east.verizon.net ([72.93.33.63] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0Aqs-0004LJ-0N; Sun, 25 Mar 2018 14:58:46 -0400 From: Mark H Weaver References: <87muywi3bp.fsf@elephly.net> Date: Sun, 25 Mar 2018 14:57:53 -0400 In-Reply-To: <87muywi3bp.fsf@elephly.net> (Ricardo Wurmus's message of "Sun, 25 Mar 2018 17:26:34 +0200") Message-ID: <87vadk3rv2.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Ricardo Wurmus writes: >> I have installed guix for the first time and noticed that the installati= on >> script at >> https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-install.sh did = not >> work for me. So, I had to make some modifications. >> >> There was a problem with the path to root user home directory. Below I >> provide diff output for original script and my modified script. > > Thank you. > > Could you please make that change on top of the current version of the > Guix sources as a git commit? Then you can run =E2=80=9Cgit format-patch= -1=E2=80=9D to > format it as a patch in a format that we can apply. You can send the > resulting patch file as an attachment to a reply to this email. > > This also fixes bug #30728, so please add this line to the commit > message: > > Fixes . Note that there's also another proposed patch for this same issue, here: https://bugs.gnu.org/30728#11 Regards, Mark From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Mar 2018 08:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15220515575005 (code B ref 30728); Mon, 26 Mar 2018 08:06:02 +0000 Received: (at 30728) by debbugs.gnu.org; 26 Mar 2018 08:05:57 +0000 Received: from localhost ([127.0.0.1]:53593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0N8f-0001If-Il for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:05:57 -0400 Received: from mail.lassieur.org ([83.152.10.219]:57986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0N8e-0001IV-0I for 30728@debbugs.gnu.org; Mon, 26 Mar 2018 04:05:56 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 2086efcc (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Mon, 26 Mar 2018 08:05:51 +0000 (UTC) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87d0zsn391.fsf@gmail.com> Date: Mon, 26 Mar 2018 10:05:50 +0200 Message-ID: <87efk79s81.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Chris, Chris Marusich writes: > Clément Lassieur writes: > >> Clément Lassieur writes: >> >>> Hi, >>> >>> My system is Ubuntu 16.04. >>> >>> I ran './guix-install.sh' and got the message: "This script must be run >>> as root.". So I ran 'sudo ./guix-install.sh' and got an error message >>> saying that: >>> >>> GUIX_PROFILE="${HOME}/.guix-profile" >>> source "${GUIX_PROFILE}/etc/profile" >>> >>> the 'source' command doesn't work because ${GUIX_PROFILE} was never >>> created, ${HOME} being /home/clement, not /root. >>> >>> To recover from this I had to manually delete /var/guix and /gnu, log as >>> root with 'su', and start again. >>> >>> Clément >> >> I believe the script should install Guix in the user's home directory, >> not in ~root. > > The manual says (see: (guix) Binary Installation): > > 3. Make ‘root’’s profile available under ‘~/.guix-profile’: > > # ln -sf /var/guix/profiles/per-user/root/guix-profile \ > ~root/.guix-profile I think the manual is wrong here. This only makes sense if the user is 'root'. Otherwise, the user would expect Guix to be installed in their home, not in root's home. We could use the HOME and USER environment variables like this: # ln -sf /var/guix/profiles/per-user/$USER/guix-profile $HOME/.guix-profile Thus, even if 'sudo' decides to change these environment variables, it will still be consistent. > Source ‘etc/profile’ to augment ‘PATH’ and other relevant > environment variables: > > # GUIX_PROFILE=$HOME/.guix-profile ; \ > source $GUIX_PROFILE/etc/profile > > I believe the expectation here is that $HOME will expand to root's home > directory. Look at the previous ln invocation: we set up a symlink for > the .guix-profile in root's home directory, so it's pretty clear that > $HOME/.guix-profile is supposed to point to that profile. > > I think there is a tacit assumption in the manual and the > guix-install.sh script that the HOME environment variable will refer to > root's home directory, which is not always true. For example, on > current Ubuntu, if you run sudo with no arguments, you will find that > the HOME environment variable still points to your unprivileged user's > home directory, not to root's home directory. This is because sudo can > be configured in many ways, and on Ubuntu, they have chosen to configure > it in that way. On other systems, it might behave differently. From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Mar 2018 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tatiana Sholokhova Cc: guix-devel@gnu.org, Chris Marusich , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15220528817302 (code B ref 30728); Mon, 26 Mar 2018 08:28:01 +0000 Received: (at 30728) by debbugs.gnu.org; 26 Mar 2018 08:28:01 +0000 Received: from localhost ([127.0.0.1]:53605 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0NU0-0001th-S6 for submit@debbugs.gnu.org; Mon, 26 Mar 2018 04:28:01 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0NTz-0001tZ-Jt for 30728@debbugs.gnu.org; Mon, 26 Mar 2018 04:28:00 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id b7420e8e (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Mon, 26 Mar 2018 08:27:58 +0000 (UTC) References: User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: Date: Mon, 26 Mar 2018 10:27:57 +0200 Message-ID: <87d0zr9r76.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Tatiana, Tatiana Sholokhova writes: > Hello! My name is Tatiana. > > I have installed guix for the first time and noticed that the installation > script at > https://git.savannah.gnu.org/cgit/guix.git/tree/etc/guix-install.sh did not > work for me. So, I had to make some modifications. > > There was a problem with the path to root user home directory. Below I > provide diff output for original script and my modified script. Thank you for working on this! > 266c266,267 > < ln -sf /var/guix/profiles/per-user/root/guix-profile > /root/.guix-profile > --- >> ln -sf /var/guix/profiles/per-user/root/guix-profile \ >> ~root/.guix-profile > 268c269 > < GUIX_PROFILE="/root/.guix-profile" > --- >> GUIX_PROFILE="${HOME}/.guix-profile" > > These changes allowed me to install guix via the script. 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? You can follow the discussion there: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30728. Every email sent to 30728@debbugs.gnu.org will appear there. Clément From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Mar 2018 09:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: guix-devel@gnu.org, 30728@debbugs.gnu.org, Tatiana Sholokhova Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152205555011583 (code B ref 30728); Mon, 26 Mar 2018 09:13:02 +0000 Received: (at 30728) by debbugs.gnu.org; 26 Mar 2018 09:12:30 +0000 Received: from localhost ([127.0.0.1]:53621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0OB3-00030l-Qb for submit@debbugs.gnu.org; Mon, 26 Mar 2018 05:12:29 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0OB2-00030d-6U for 30728@debbugs.gnu.org; Mon, 26 Mar 2018 05:12:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1522055513; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=765; bh=HmJ0O7kTUXbFlO5WFF8CGBgVqdPepJ70+plOj4y57Zg=; b=TvcYyTk9AteAZfnvMPo/sOnt1OjCPoWg5LiIVj30pMW6IOqYUL8MyoIxGWSlsrJ8 QUXLBw2WCJZkd4MBRnVEO9DYCs08j3hYq6unMkWFbloYZ8MpNDN6U7ZXHWZxGEr1oWV vnVWIDJ3HW5Cpfx8+ecTDLA6qQGwv5KlTfsav2sc= Received: from localhost (port-92-200-31-51.dynamic.qsc.de [92.200.31.51]) by mx.zohomail.com with SMTPS id 1522055513240265.8886027802371; Mon, 26 Mar 2018 02:11:53 -0700 (PDT) References: <87d0zr9r76.fsf@lassieur.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus In-reply-to: <87d0zr9r76.fsf@lassieur.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 26 Mar 2018 11:11:49 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87fu4ngq0a.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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? --=20 Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Mar 2018 09:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur , Chris Marusich Cc: 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152205594012216 (code B ref 30728); Mon, 26 Mar 2018 09:19:01 +0000 Received: (at 30728) by debbugs.gnu.org; 26 Mar 2018 09:19:00 +0000 Received: from localhost ([127.0.0.1]:53632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0OHM-0003Ay-56 for submit@debbugs.gnu.org; Mon, 26 Mar 2018 05:19:00 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:59185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0OHK-0003Aq-GK for 30728@debbugs.gnu.org; Mon, 26 Mar 2018 05:18:58 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id DD31221091; Mon, 26 Mar 2018 05:18:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 26 Mar 2018 05:18:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=QD5YrV+2LBVRuznF/aOoOw/iFv076WjL+hprgpw47mk=; b=YfBUatSq SxQl4TKv3QtFG8Lswt4pgUXTqwBOaM6AEbyE+hx07/H893qG1iQ3WkSc+dS1V2rX u4/2LtBY/ozyHCadPNYPt1CPE7y8ZNBHG+cNDQRUjwNagfgByr+4p2AwnhraJRgc VtAu3npM/0PcF/3LlRzguJAcbC4iZTlfWzMyMKDvHCsAHWeHTexQRFQE6ZYYbiU4 NSsyhSQx53TidE9M9Szg/h1XAU57mVEoY7i0uS7/sE78AHFiYPpMtXHP4eWQPaBh MP3EBl+qqvOVN+hgtgiCQmqzLe5E4ebET6idl7De7/0LFMvKA+NPVJET5IEqH4AQ bEIkECOjj3HfCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=QD5YrV+2LBVRuznF/aOoOw/iFv076 WjL+hprgpw47mk=; b=nWWJgwgpMN9cvhAjOmQdGI2BBFheG2DB7IbxTdkV1mkKl x9eolCJ/OhBd56y661CiizHjWMNz+Mlts6BOviakF3/u8AIwEeJq93TCtedDiF94 yTY8A/wSn5At3j8bU4rBLGQFfoleN5pfjK+DrpCYeCdlpu9m3SUp4b7ZCFELy6ou mVN8gZHaX8RcNb3ywtKnZoOow/HOfdPFq26YEH+2bTTfKX9Nd0MP/DQ7dyn9xK7c 6nTnvIFQM2SBU3vw+JH+Ejb6c8liG1xMQo41vazyetRSDsNufIxe/04euPwFf33K 800edyrk9c68WgPSmzgBfilaE5r5hdwQmKmZR5Nag== X-ME-Sender: Received: from localhost (ti0089a400-2222.bb.online.no [88.89.166.190]) by mail.messagingengine.com (Postfix) with ESMTPA id 68543103D4; Mon, 26 Mar 2018 05:18:57 -0400 (EDT) From: Marius Bakke In-Reply-To: <87efk79s81.fsf@lassieur.org> References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> User-Agent: Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Mon, 26 Mar 2018 11:18:50 +0200 Message-ID: <87muyvjith.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cl=C3=A9ment Lassieur writes: > Hi Chris, > > Chris Marusich writes: > >> Cl=C3=A9ment Lassieur writes: >> >>> Cl=C3=A9ment Lassieur writes: >>> >>>> Hi, >>>> >>>> My system is Ubuntu 16.04. >>>> >>>> I ran './guix-install.sh' and got the message: "This script must be run >>>> as root.". So I ran 'sudo ./guix-install.sh' and got an error message >>>> saying that: >>>> >>>> GUIX_PROFILE=3D"${HOME}/.guix-profile" >>>> source "${GUIX_PROFILE}/etc/profile" >>>> >>>> the 'source' command doesn't work because ${GUIX_PROFILE} was never >>>> created, ${HOME} being /home/clement, not /root. >>>> >>>> To recover from this I had to manually delete /var/guix and /gnu, log = as >>>> root with 'su', and start again. >>>> >>>> Cl=C3=A9ment >>> >>> I believe the script should install Guix in the user's home directory, >>> not in ~root. >> >> The manual says (see: (guix) Binary Installation): >> >> 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2= =80=98~/.guix-profile=E2=80=99: >> >> # ln -sf /var/guix/profiles/per-user/root/guix-profile \ >> ~root/.guix-profile > > I think the manual is wrong here. This only makes sense if the user is > 'root'. Otherwise, the user would expect Guix to be installed in their > home, not in root's home. We could use the HOME and USER environment > variables like this: > > # ln -sf /var/guix/profiles/per-user/$USER/guix-profile $HOME/.guix-pro= file > > Thus, even if 'sudo' decides to change these environment variables, it > will still be consistent. The binary installation tarball only comes with a profile for 'root'. The problem is that the installation script assumes $HOME will expand to ~root when sourcing the profile, but as you found that isn't always the case. ~root/.guix-profile is "hard-coded" many other places in the script, so Tatianas solution seems sensible to me. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlq4uvoACgkQoqBt8qM6 VPp/mAgAruOwIqvpIi9o1z+Z5tGI2KSymV5n3tzKXziQBbHe3e8jqBddrSGD/BMv KYR/V8rfvZhxZBfLucZD6qf8oJeWSTCxz3LCbq+MekhVhzxOnZqAOt1Ai9HSLsF3 Pd62SB4hf+/HxjY+mKHp6LwlQuVl5GtMaCICj9MmRqj5IkR1DKbxH2NMBmGVE5qC NBYu7RTrUXHY9dJVhlwylTHF2dUziMRdepcBMWayOR6t1VUx0/99ptkyyNkLPHod FPoFjlSBgmlOKGyymnaPbkEB6oMUefAXy8xaF84F6OeklF68bvzs+jQB6CG8ztLA UJoG6BGIFM8ZPVklDWCi0Lg/kYAa2Q== =TWPk -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Mar 2018 13:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus , Marius Bakke Cc: guix-devel@gnu.org, 30728@debbugs.gnu.org, Tatiana Sholokhova Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152206917414805 (code B ref 30728); Mon, 26 Mar 2018 13:00:03 +0000 Received: (at 30728) by debbugs.gnu.org; 26 Mar 2018 12:59:34 +0000 Received: from localhost ([127.0.0.1]:53725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0Rio-0003qj-CW for submit@debbugs.gnu.org; Mon, 26 Mar 2018 08:59:34 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0Rim-0003qZ-EG for 30728@debbugs.gnu.org; Mon, 26 Mar 2018 08:59:32 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 2a9afbb8 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Mon, 26 Mar 2018 12:59:30 +0000 (UTC) References: <87d0zr9r76.fsf@lassieur.org> <87fu4ngq0a.fsf@elephly.net> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87fu4ngq0a.fsf@elephly.net> Date: Mon, 26 Mar 2018 14:59:30 +0200 Message-ID: <87bmfb9eml.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Ricardo and Marius, Marius Bakke writes: > The binary installation tarball only comes with a profile for 'root'. Indeed, but it's easy to copy it for any user isn't it? > The problem is that the installation script assumes $HOME will expand to > ~root when sourcing the profile, but as you found that isn't always the > case. > > ~root/.guix-profile is "hard-coded" many other places in the script, so > Tatianas solution seems sensible to me. Ricardo Wurmus writes: > Hi Clément, > >> 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’s > 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’s > home directory and not to the sudoing user’s HOME. > > Or am I missing something? Thank you both for your comments. :-) What I dislike with the present state of things is the need for Guix to be installed within root's directory. For two reasons : 1. I don't think a command should ever install something in another user's home directory. The home directory of a user is for things that are specific to that user, I believe. 2. Users need to update the root profile if they want to update the Guix daemon, which is cumbersome. The systemd configuration file must know where to find the Guix daemon. If it's not in ~root, it must be in the user's home directory. Either way, the Guix daemon, which is system-wide, still depends on a user. (A way to make the daemon user-independant would be to add a new command that would update, say, /var/guix/guix-daemon, with the systemd configuration file pointing to it.) I personally prefer that the Guix daemon points to my home directory because I don't want to update root's profile. Some other people might prefer that it points to ~root because they might later delete their profile and want Guix to keep working. Do we have to take a decision here? Can't we just let the user decide by letting them customize their environment variables? I think it is the point of environment variables: giving freedom to users. From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: Tatiana Sholokhova Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 26 Mar 2018 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: Ricardo Wurmus , guix-devel , Marius Bakke , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152208193011026 (code B ref 30728); Mon, 26 Mar 2018 16:33:02 +0000 Received: (at 30728) by debbugs.gnu.org; 26 Mar 2018 16:32:10 +0000 Received: from localhost ([127.0.0.1]:54621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0V2X-0002rl-It for submit@debbugs.gnu.org; Mon, 26 Mar 2018 12:32:09 -0400 Received: from mail-vk0-f43.google.com ([209.85.213.43]:46398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0Ugr-0002JU-4w for 30728@debbugs.gnu.org; Mon, 26 Mar 2018 12:09:45 -0400 Received: by mail-vk0-f43.google.com with SMTP id f124so11489403vkg.13 for <30728@debbugs.gnu.org>; Mon, 26 Mar 2018 09:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=95yPFalkNsJ+967RBtljcHdUkwsRJtHofD+P4GdFYqI=; b=LNWd1fQjNsEg+jMOoAot9BPZs65YSAGIaR4fqphnDCozus/B82NC4k/zPPUeEGkPqz y8XPYyAYW1MHcOoD/6L0E6JR7v3xWAaShsqdWmqh3Gys8Y4rmEeNID17w0KHX1mKXfhV sBvOYFZzh0s+1oW96X0/g6P6CWq3/nsjJk4D4zQ/HkfWN1wXi4w6lyj1v7DQXgVCW8iC kr33rpTDipBwoHfl36+kdiqb2655dyuOfQHjfhI/Ijm43TTlkE1y/EuWVasLmuaVJJRP 1vJp74jQoiOniWX6Xsfzu3AAq3GcirEUUO0ko7Yhst7g+03jyZeqxhNqMl8ZaG2V5eRO A3rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=95yPFalkNsJ+967RBtljcHdUkwsRJtHofD+P4GdFYqI=; b=NTI2JpmoMzlOb/G27bmyqo7duJu5/B/pm/PPIld0XNGDU+CFdV55eBCbjEv4RXnBAj c2ZKbvvzAPkR26jp/vleyJeyK38P9QNtr1Aa59xp35GAYgMkCn4ujkJO8IVOmOw30XTA 531XAkwtGfwA88CezWSGs4MhjD4RnZ2G5wwn+zC1suKhz0rkKZmXjxeC18JkT64MIg3z QZjrXMBeRWN01AtJuA+smejlrD44FEQsO0DZ5TbaCWHP+Rfd6x8YgvbnOPgWPYyFBmwU +mvqMnGKtdNM+uNOHj/p2FiPhDqXFiioeFi6eogbhlZKDAwYWsGamcRrDDi/R2EUMsv5 xFuw== X-Gm-Message-State: AElRT7HbG4szAfjtXkmMnatktFT5/EWeDmclaSbprl/X/3Sjnxkr1nFQ ysYf7KURNUuvhR2dkEstyAdXHA9EYelsQVd9uLk= X-Google-Smtp-Source: AG47ELsUQj40HPjzMkBjAWGL69xdDVp7rSjYUEadUCMgu1ykCGuP839uG60KyIV6lmQ9yNGZcBQDL9R0t/0Y/EEiUSw= X-Received: by 10.31.190.195 with SMTP id o186mr20192944vkf.12.1522080579462; Mon, 26 Mar 2018 09:09:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.19.171 with HTTP; Mon, 26 Mar 2018 09:09:38 -0700 (PDT) In-Reply-To: <87bmfb9eml.fsf@lassieur.org> References: <87d0zr9r76.fsf@lassieur.org> <87fu4ngq0a.fsf@elephly.net> <87bmfb9eml.fsf@lassieur.org> From: Tatiana Sholokhova Date: Mon, 26 Mar 2018 19:09:38 +0300 Message-ID: Content-Type: multipart/mixed; boundary="001a1139da28425594056853005a" X-Spam-Score: 0.3 (/) X-Mailman-Approved-At: Mon, 26 Mar 2018 12:32:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) --001a1139da28425594056853005a Content-Type: multipart/alternative; boundary="001a1139da2842558f0568530058" --001a1139da2842558f0568530058 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello! Could you please make that change on top of the current version of the > Guix sources as a git commit? Then you can run =E2=80=9Cgit format-patch= -1=E2=80=9D to > format it as a patch in a format that we can apply. You can send the > resulting patch file as an attachment to a reply to this email. > This also fixes bug #30728, so please add this line to the commit > message: > -- > Ricardo I have attached the patch file to this email. This patch fixes the installation process but it place guix within root's directory. I personally prefer that the Guix daemon points to my home directory > because I don't want to update root's profile. Some other people might > prefer that it points to ~root because they might later delete their > profile and want Guix to keep working. > Do we have to take a decision here? Can't we just let the user decide > by letting them customize their environment variables? I think it is > the point of environment variables: giving freedom to users. We can further work on the script's flexibility using the environment variable solution. -- Tatiana --001a1139da2842558f0568530058 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!

Cou= ld you please make that change on top of the current version of the
Guix sources as a git commit?=C2=A0 Then you c= an run =E2=80=9Cgit format-patch -1=E2=80=9D to
format it as a patch in a format that we can apply.=C2=A0 You can = send the
resulting patch file as an att= achment to a reply to this email.
This also f= ixes bug #30728, so please add this line to the commit
message:
--
<= span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:sm= all;font-style:normal;font-variant-ligatures:normal;font-variant-caps:norma= l;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;te= xt-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(= 255,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline">Ricardo

I h= ave attached the patch file to this email. This patch fixes the installatio= n process but it place=C2=A0guix=C2=A0within roo= t's directory.=C2=A0

I personally prefer that the Guix daemon points to my ho= me directory
because I don't want = to update root's profile.=C2=A0 Some other people might
prefer that it points to ~root because they might lat= er delete their
profile and want Guix = to keep working.=C2=A0

Do we have to take a decision he= re?=C2=A0 Can't we just let the user decide
by letting them customize their environment variables?=C2=A0 I th= ink it is
the point of environment var= iables: giving freedom to users.
<= /div>
We = can further work on the script's flexibility using the environment vari= able solution.

--
Tatiana
--001a1139da2842558f0568530058-- --001a1139da28425594056853005a Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Fixes-https-debbugs.gnu.org-30728.patch" Content-Disposition: attachment; filename="0001-Fixes-https-debbugs.gnu.org-30728.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_jf8f8euu0 RnJvbSBmMjg2YjZlOWM2MGNiYTU0ZjNkYTY4NDI4ZmMwMzRkMjcyYmE1ZmZjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiB0c2hvbG9raG92YSA8dGFuamEyMDEzOTZAZ21haWwuY29tPgpE YXRlOiBNb24sIDI2IE1hciAyMDE4IDE4OjU5OjQwICswMzAwClN1YmplY3Q6IFtQQVRDSF0gRml4 ZXMgPGh0dHBzOi8vZGViYnVncy5nbnUub3JnLzMwNzI4PgoKLS0tCiBldGMvZ3VpeC1pbnN0YWxs LnNoIHwgNSArKy0tLQogMSBmaWxlIGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwgMyBkZWxldGlv bnMoLSkKCmRpZmYgLS1naXQgYS9ldGMvZ3VpeC1pbnN0YWxsLnNoIGIvZXRjL2d1aXgtaW5zdGFs bC5zaAppbmRleCA5MzM0OTJhMzMuLmI0YTljZGY5NCAxMDA3NTUKLS0tIGEvZXRjL2d1aXgtaW5z dGFsbC5zaAorKysgYi9ldGMvZ3VpeC1pbnN0YWxsLnNoCkBAIC0yNjMsMTAgKzI2Myw5IEBAIHN5 c19jcmVhdGVfc3RvcmUoKQogICAgIGZpCiAKICAgICBfbXNnICIke0lORn1MaW5raW5nIHRoZSBy b290IHVzZXIncyBwcm9maWxlIgotICAgIGxuIC1zZiAvdmFyL2d1aXgvcHJvZmlsZXMvcGVyLXVz ZXIvcm9vdC9ndWl4LXByb2ZpbGUgXAotICAgICAgIH5yb290Ly5ndWl4LXByb2ZpbGUKKyAgICBs biAtc2YgL3Zhci9ndWl4L3Byb2ZpbGVzL3Blci11c2VyL3Jvb3QvZ3VpeC1wcm9maWxlIC9yb290 Ly5ndWl4LXByb2ZpbGUKIAotICAgIEdVSVhfUFJPRklMRT0iJHtIT01FfS8uZ3VpeC1wcm9maWxl IgorICAgIEdVSVhfUFJPRklMRT0iL3Jvb3QvLmd1aXgtcHJvZmlsZSIKICAgICBzb3VyY2UgIiR7 R1VJWF9QUk9GSUxFfS9ldGMvcHJvZmlsZSIKICAgICBfbXNnICIke1BBU31hY3RpdmF0ZWQgcm9v dCBwcm9maWxlIGF0IC9yb290Ly5ndWl4LXByb2ZpbGUiCiB9Ci0tIAoyLjE0LjEKCg== --001a1139da28425594056853005a-- From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Mar 2018 07:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: Chris Marusich , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15221368393461 (code B ref 30728); Tue, 27 Mar 2018 07:48:02 +0000 Received: (at 30728) by debbugs.gnu.org; 27 Mar 2018 07:47:19 +0000 Received: from localhost ([127.0.0.1]:55099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0jKA-0000tk-Qq for submit@debbugs.gnu.org; Tue, 27 Mar 2018 03:47:19 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0jK9-0000ta-6b for 30728@debbugs.gnu.org; Tue, 27 Mar 2018 03:47:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1522136817; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=876; bh=ThbEuL5YO8c8LjVkh4LKPQjpBd4kmCUGBdyVK1J1xlE=; b=JOEIxj2v6G8RQI4Zmpo8Lq8M7jjj3xOUfKv0e0awS5Hz7X/Fx1R0LQg31ruyHVwl GKE+L7sbEqkQSIzhWceSlKYtZZy2k3Avz1u5sXSS97zb1kPi2iykRvbbOaeka5EFbs5 UqV4GJ6hgeUkdil9q2PjlRqudcUdufmjx40XDIXM= Received: from localhost (port-92-200-31-51.dynamic.qsc.de [92.200.31.51]) by mx.zohomail.com with SMTPS id 1522136817733396.0057611568719; Tue, 27 Mar 2018 00:46:57 -0700 (PDT) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus In-reply-to: <87efk79s81.fsf@lassieur.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Tue, 27 Mar 2018 09:46:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87woxyez9t.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Cl=C3=A9ment Lassieur writes: >> The manual says (see: (guix) Binary Installation): >> >> 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2= =80=98~/.guix-profile=E2=80=99: >> >> # ln -sf /var/guix/profiles/per-user/root/guix-profile \ >> ~root/.guix-profile > > I think the manual is wrong here. This only makes sense if the user is > 'root'. Otherwise, the user would expect Guix to be installed in their > home, not in root's home. Step 2 says =E2=80=9CAs root, run: [=E2=80=A6]=E2=80=9D. =E2=80=9C~root=E2= =80=9D resolves to =E2=80=9C/root=E2=80=9D, not to =E2=80=9C$HOME/root=E2=80=9D, so it even works when run as a regular user. The manual seems correct to me and this is what the script aims to implement. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Mar 2018 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: Chris Marusich , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152214190118563 (code B ref 30728); Tue, 27 Mar 2018 09:12:02 +0000 Received: (at 30728) by debbugs.gnu.org; 27 Mar 2018 09:11:41 +0000 Received: from localhost ([127.0.0.1]:55177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0kdo-0004pL-Pp for submit@debbugs.gnu.org; Tue, 27 Mar 2018 05:11:40 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0kdn-0004pD-90 for 30728@debbugs.gnu.org; Tue, 27 Mar 2018 05:11:39 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id fe9f67b2 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Tue, 27 Mar 2018 09:11:38 +0000 (UTC) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87woxyez9t.fsf@elephly.net> Date: Tue, 27 Mar 2018 11:11:36 +0200 Message-ID: <87lgedx4qf.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Ricardo Wurmus writes: > Clément Lassieur writes: > >>> The manual says (see: (guix) Binary Installation): >>> >>> 3. Make ‘root’’s profile available under ‘~/.guix-profile’: >>> >>> # ln -sf /var/guix/profiles/per-user/root/guix-profile \ >>> ~root/.guix-profile >> >> I think the manual is wrong here. This only makes sense if the user is >> 'root'. Otherwise, the user would expect Guix to be installed in their >> home, not in root's home. > > Step 2 says “As root, run: […]”. “~root” resolves to “/root”, not to > “$HOME/root”, so it even works when run as a regular user. > > The manual seems correct to me and this is what the script aims to > implement. But ~/.guix-profile may resolve to /home/user/.guix-profile. So it should be ~root/.guix-profile instead of ~/.guix-profile. From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Mar 2018 11:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: Guix-devel , 30728@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Lassieur , Tatiana Sholokhova Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152215162215840 (code B ref 30728); Tue, 27 Mar 2018 11:54:01 +0000 Received: (at 30728) by debbugs.gnu.org; 27 Mar 2018 11:53:42 +0000 Received: from localhost ([127.0.0.1]:55255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0nAc-00047Q-68 for submit@debbugs.gnu.org; Tue, 27 Mar 2018 07:53:42 -0400 Received: from mail-io0-f174.google.com ([209.85.223.174]:38344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0nAZ-00047A-Cy for 30728@debbugs.gnu.org; Tue, 27 Mar 2018 07:53:40 -0400 Received: by mail-io0-f174.google.com with SMTP id b20so27245469iof.5 for <30728@debbugs.gnu.org>; Tue, 27 Mar 2018 04:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eFgMvZg4SD7ObPPf908nXuZ7blyLd51HLm1ji9ayCs8=; b=N2sAUqxCT4debD9O6MXWXVIaBYkdTsvM66bmIs5+Igl8uFX6ncbaHP5IknwQVpLDT4 RW8ML6P5fT18vlIPVJIJSSBqqQRppKitxWe/rvIkZ3JXsdJgPfKQkNNw5kx+ivKpb6mD FDmawZHY+I4EUKbKJe606J+t4HPsZOhBn3OHwpeEeFzHokNKZl3odoKzJM9KfQahFa0W PY30Hz2TfMqhP2er8d0kw3V53sy4Q1f17pIOCVjCgF7ttkAjLzmg5S4d+uZL+nNC6ST6 TTEajiaR9/L/y1LwMnAFzDDm1AaCkptmbj/ebTzlINs92bkgNyay65CX6l4czOl+LkYA TF0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eFgMvZg4SD7ObPPf908nXuZ7blyLd51HLm1ji9ayCs8=; b=m/Jvzk07OH5bYqtTPTa0V0NHh2mNDiWYnrPGV/wpomadUdC01NqqKPGIZ3a0tknbSp fxw21osaNLRJDSIw2HjJeO5UpZw8C/KdPgitPVDAflqdlWISzotdfRC4r/vdxQvm2g2k EUJKYCQhOIhg9RN6H70sHpm4rXQZcFezpLS7Sgks/8L9KelTNiZqiWFaNtjJ1nwCFyD0 fQ1OWTYKZ0YiF1DoLmLaa1C163A+fVWn2bqt8oRrhqnJt1GCw26UkpdyE2Hg1drIBUti o7oW0CkJa83smkYQT2fkTyAIHAlZ8oATQq/knuvMVKdrX8oO7dgqZL1zZ6bEJhZqcuW1 4Hdg== X-Gm-Message-State: AElRT7Hx27En4zLhxT3tCMJCCO1lIQfGtLmbP96g/IjcQTLgyJZmI605 NL1oyHxiMlPTyOYUnqavDvlaG5sJntN9PV8LxA== X-Google-Smtp-Source: AG47ELs5FB08bouF7MGIFRj1Musiw4/3jHl7y95p6ZEcgSO0ewsxbMuIIfWrbmOzUH3hL34M5nLA0T0y1z2i0NSV34w= X-Received: by 10.107.3.71 with SMTP id 68mr46364712iod.66.1522151613430; Tue, 27 Mar 2018 04:53:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.1.87 with HTTP; Tue, 27 Mar 2018 04:53:32 -0700 (PDT) In-Reply-To: <87fu4ngq0a.fsf@elephly.net> References: <87d0zr9r76.fsf@lassieur.org> <87fu4ngq0a.fsf@elephly.net> From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Tue, 27 Mar 2018 13:53:32 +0200 Message-ID: Content-Type: multipart/alternative; boundary="001a113eb35c36a2560568638a6d" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --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-- From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Mar 2018 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: Ricardo Wurmus , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15221669356940 (code B ref 30728); Tue, 27 Mar 2018 16:09:02 +0000 Received: (at 30728) by debbugs.gnu.org; 27 Mar 2018 16:08:55 +0000 Received: from localhost ([127.0.0.1]:56163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0r9X-0001nn-O4 for submit@debbugs.gnu.org; Tue, 27 Mar 2018 12:08:55 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:35038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0r9W-0001nb-GN for 30728@debbugs.gnu.org; Tue, 27 Mar 2018 12:08:51 -0400 Received: by mail-pf0-f171.google.com with SMTP id u86so3258002pfd.2 for <30728@debbugs.gnu.org>; Tue, 27 Mar 2018 09:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=gWrs9o4DzfgxUQLPWJScQvWconnCC7JbjX+2jjkrAtA=; b=kcE6WDci5XHOUWizoh6KTjNzgUioqDhPcH6I2r1o3C3+qXJpZIXHcp8ydedJL5CE2l DzX45G8G8zbLSILKtsH0xjFxPPGb7qTZCxx7vKG0oHs1Yn5bAuPEXd+6A9qBZTzGgvj9 wy3NqafODIY9KXpkLb1lHAa1WruDag4hP1WwOql931SO4gNBCeVOSudJsayE3ynFvU3N 3p5eBeV0a5FcBavc8gZ8ldliwmW3+gM7lnSOaEYehn1zzTeV1ekdx46Z4cqsXIGooYJJ N6uUqS4y2OGIbftQ6gW17H53ve8aA7/u8J6vSGK+Wp7OXf6Q37eYLesHXBpx2oyNfE/0 aVuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=gWrs9o4DzfgxUQLPWJScQvWconnCC7JbjX+2jjkrAtA=; b=MnPMPp/GVVy4EbXOAmDtdpwFyB0ykZxhODGBOlGBN1jIJamG3ZTiFR5WCLk+Qb4tSu rH5VGn4GEKPE9bs83lPp21thlnmmKgbYJTEDp9HuC8xQmbF0p/aqO2p857FoLn0XCx/z 1Ysqnc+gS3+OhITNTaE0HH7zNXrExc/2kDjNxGN1vLRNJ61krAG/WU7RYrGzwttofRX+ Xc1ASqnlI0a7L6Y3UzockQWxUa1zZbtLqIFJp72QpBNMp7muPPcU1PPhaeE7kD1Xtuee ne7IHa8uCrCZunFpxQQwDQdTnPsQPU1io+NzJTcwxOi8tUYMUVCBqhJaVo6XYYcxGWe4 mMaA== X-Gm-Message-State: AElRT7GEMHRTJsmfTmtZ+xrnz4YOVwTT3bF/dq333pPpeuZfrdUjqaqo DOWziW3tQNmM8UVTDvKEHj1fNbGv X-Google-Smtp-Source: AG47ELvb+miMtsm2iTfQY2Ke7a7VrxlxuHXDBwKn+et7GFADlfMpMUideWP2CCVdqWBAjgDFZ+z38Q== X-Received: by 10.101.91.133 with SMTP id i5mr31750824pgr.249.1522166923699; Tue, 27 Mar 2018 09:08:43 -0700 (PDT) Received: from garuda.local ([2601:602:9d02:4725:6495:ba21:1ebe:620a]) by smtp.gmail.com with ESMTPSA id i11sm3159844pgq.34.2018.03.27.09.08.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Mar 2018 09:08:42 -0700 (PDT) From: Chris Marusich References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> Date: Tue, 27 Mar 2018 18:08:40 +0200 In-Reply-To: <87lgedx4qf.fsf@lassieur.org> ("=?UTF-8?Q?Cl=C3=A9ment?= Lassieur"'s message of "Tue, 27 Mar 2018 11:11:36 +0200") Message-ID: <87k1txwlfb.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cl=C3=A9ment Lassieur writes: > Ricardo Wurmus writes: > >> Cl=C3=A9ment Lassieur writes: >> >>>> The manual says (see: (guix) Binary Installation): >>>> >>>> 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2= =80=98~/.guix-profile=E2=80=99: >>>> >>>> # ln -sf /var/guix/profiles/per-user/root/guix-profile \ >>>> ~root/.guix-profile >>> >>> I think the manual is wrong here. This only makes sense if the user is >>> 'root'. Otherwise, the user would expect Guix to be installed in their >>> home, not in root's home. >> >> Step 2 says =E2=80=9CAs root, run: [=E2=80=A6]=E2=80=9D. =E2=80=9C~root= =E2=80=9D resolves to =E2=80=9C/root=E2=80=9D, not to >> =E2=80=9C$HOME/root=E2=80=9D, so it even works when run as a regular use= r. >> >> The manual seems correct to me and this is what the script aims to >> implement. > > But ~/.guix-profile may resolve to /home/user/.guix-profile. So it > should be ~root/.guix-profile instead of ~/.guix-profile. Ah, I think I now see the cause of our miscommunication. It's possible to interpret the manual's use of ~ and $HOME to mean "the unprivileged user's home directory", instead of "root's home directory". I think that's a mistake in the manual, since the "ln" clearly makes root's profile available under root's home directory, and the step involving $HOME doesn't make sense unless $HOME expands to root's home directory. I've updated my patch; it now also changes the following line... 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2=80= =98~/.guix-profile=E2=80=99: ...to this: 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2=80= =98~root/.guix-profile=E2=80=99: How does that sound? =2D-=20 Chris --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-guix-install.sh-Explicitly-set-root-s-home-directory.patch Content-Transfer-Encoding: quoted-printable From=208e23b7ee5a3b5c600fcd5e29f08458f33cf37c66 Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sun, 25 Mar 2018 06:47:42 +0200 Subject: [PATCH] guix-install.sh: Explicitly set root's home directory. * etc/guix-install.sh (ROOT_HOME): New variable. (sys_create_store, sys_enable_guix_daemon, sys_authorize_build_farms): Use ROOT_HOME instead of ~root or the HOME environment variable. * doc/guix.texi (Binary Installation): Instead of assuming that ~ and $HOME refer to root's directory simply because commands are being run as root, explicilty refer to it via ~root. Fixes: =2D-- doc/guix.texi | 4 ++-- etc/guix-install.sh | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 49b3dd10d..aab3a7273 100644 =2D-- a/doc/guix.texi +++ b/doc/guix.texi @@ -471,7 +471,7 @@ archive content is independent of its creation time, th= us making it reproducible. =20 @item =2DMake @code{root}'s profile available under @file{~/.guix-profile}: +Make @code{root}'s profile available under @file{~root/.guix-profile}: =20 @example # ln -sf /var/guix/profiles/per-user/root/guix-profile \ @@ -482,7 +482,7 @@ Source @file{etc/profile} to augment @code{PATH} and ot= her relevant environment variables: =20 @example =2D# GUIX_PROFILE=3D$HOME/.guix-profile ; \ +# GUIX_PROFILE=3D"`echo ~root`/.guix-profile" ; \ source $GUIX_PROFILE/etc/profile @end example =20 diff --git a/etc/guix-install.sh b/etc/guix-install.sh index 933492a33..78cd7580b 100755 =2D-- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -50,6 +50,11 @@ DEBUG=3D0 GNU_URL=3D"https://alpha.gnu.org/gnu/guix/" OPENPGP_SIGNING_KEY_ID=3D"3CE464558A84FDC69DB40CFB090B11993D9AEBB5" =20 +# This script needs to know where root's home directory is. However, we +# cannot simply use the HOME environment variable, since there is no guara= ntee +# that it points to root's home directory. +ROOT_HOME=3D"$(echo ~root)" + # ------------------------------------------------------------------------= ------ #+UTILITIES =20 @@ -264,9 +269,9 @@ sys_create_store() =20 _msg "${INF}Linking the root user's profile" ln -sf /var/guix/profiles/per-user/root/guix-profile \ =2D ~root/.guix-profile + "${ROOT_HOME}/.guix-profile" =20 =2D GUIX_PROFILE=3D"${HOME}/.guix-profile" + GUIX_PROFILE=3D"${ROOT_HOME}/.guix-profile" source "${GUIX_PROFILE}/etc/profile" _msg "${PAS}activated root profile at /root/.guix-profile" } @@ -316,13 +321,13 @@ sys_enable_guix_daemon() case "$INIT_SYS" in upstart) { initctl reload-configuration; =2D cp ~root/.guix-profile/lib/upstart/system/guix-daemon.conf= \ + cp "${ROOT_HOME}/.guix-profile/lib/upstart/system/guix-daemo= n.conf" \ /etc/init/ && start guix-daemon; } && _msg "${PAS}enabled Guix daemon via upstart" ;; systemd) =2D { cp ~root/.guix-profile/lib/systemd/system/guix-daemon.serv= ice \ + { cp "${ROOT_HOME}/.guix-profile/lib/systemd/system/guix-daemo= n.service" \ /etc/systemd/system/; chmod 664 /etc/systemd/system/guix-daemon.service; systemctl daemon-reload && @@ -332,7 +337,7 @@ sys_enable_guix_daemon() ;; NA|*) _msg "${ERR}unsupported init system; run the daemon manually:" =2D echo " ~root/.guix-profile/bin/guix-daemon --build-users-gr= oup=3Dguixbuild" + echo " ${ROOT_HOME}/.guix-profile/bin/guix-daemon --build-use= rs-group=3Dguixbuild" ;; esac =20 @@ -352,9 +357,9 @@ sys_authorize_build_farms() while true; do read -p "Permit downloading pre-built package binaries from the pr= oject's build farms? (yes/no) " yn case $yn in =2D [Yy]*) guix archive --authorize < ~root/.guix-profile/share/= guix/hydra.gnu.org.pub && + [Yy]*) guix archive --authorize < "${ROOT_HOME}/.guix-profile/= share/guix/hydra.gnu.org.pub" && _msg "${PAS}Authorized public key for hydra.gnu.o= rg"; =2D guix archive --authorize < ~root/.guix-profile/share/= guix/berlin.guixsd.org.pub && + guix archive --authorize < "${ROOT_HOME}/.guix-profile/= share/guix/berlin.guixsd.org.pub" && _msg "${PAS}Authorized public key for berlin.guixsd= .org"; break;; [Nn]*) _msg "${INF}Skipped authorizing build farm public keys" =2D-=20 2.15.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlq6bIgACgkQ3UCaFdgi Rp0e0w/8Cjlz4MXAPguU45L3U8eG0e9MDvvD+NseCmWtQh9NbqdOEBpwKEra2n5H q5Iz/Ja9I1tR5kIjkGAsDM9dU2kKceekHG1H9gtPIPPhaxLuYwwMzpTx37026ruA Xj7v6ubXf/zyW7n6Y9qkiJG18pfoHn2lcDZgjaTc+atrAg3l7eiTT3IglJ/+khcw Nd+ox7Dxd1PAl7Uf/5hkifo+puxTtuGgWZaEiLrIQFFp+X3NkiO7WZ4vL/rS2V23 Mlgte7PdIVWWpx8U/mS0nRF82b8VCUteIHxaHSW6LjaCPV1al7czDJ7gSNmMYvay Z7lFc4zDde1P9KS5fVF56Rjhv2UJ9+Tp8Vs3c6jyczotc3+e2oC/3EN4wqRHQYpj dDkXfYW2mZETceKSmjf/ZsSU2nVEaj8G7dHmrUNb/ZU2b+aco1XXRic4Tlwlxk0+ +oM50YxQSVVvcqjaLgKxiCmJK4FqmA/3+i5ctOR2ND/+BycDhCF7dAiBRjStkhUJ NBh7RUaAw1qcx23OjsfoVnFSS64JcM2hmRp3/ipoM2oRUJI8FDwDrgJGljFhkcof LCI8xUil8BNbORbeqxHDMHrYbuShVZit9qSMb4P+5o2j2jCf2NH2jJTbZufmOYFO IShsbx3SDHTevo/dx3cWLBfUZi1LSJGtViQ0AipRhGsmy+LOia8= =iixW -----END PGP SIGNATURE----- --==-=-=-- From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 28 Mar 2018 19:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: 30728@debbugs.gnu.org, =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152226509114300 (code B ref 30728); Wed, 28 Mar 2018 19:25:01 +0000 Received: (at 30728) by debbugs.gnu.org; 28 Mar 2018 19:24:51 +0000 Received: from localhost ([127.0.0.1]:57639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Ggl-0003ia-KA for submit@debbugs.gnu.org; Wed, 28 Mar 2018 15:24:51 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Ggi-0003iN-2E for 30728@debbugs.gnu.org; Wed, 28 Mar 2018 15:24:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1522265064; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=484; bh=wQydXi0EGCm4k606ZqvTwzLuDo4P5Vf1yfhvBSKK25E=; b=NO/K2jxCigai6fmG1B+jV2K0HxdYTTs9zKkjNUZUEgIbKDSm+dFtsyiDd9XNICNl N2c3ylVDITlL6s8eiqaB+2rVFzAVaVzGSGCRSHrOgpcraAwDA0oDifk9T3mjuE1zntx m+GmNIFjmjbtgTitzTjbK+fl5zKSAu5L+j6bBvH4= Received: from localhost (port-92-200-78-30.dynamic.qsc.de [92.200.78.30]) by mx.zohomail.com with SMTPS id 1522265064056474.31832230546377; Wed, 28 Mar 2018 12:24:24 -0700 (PDT) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus In-reply-to: <87k1txwlfb.fsf@gmail.com> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 28 Mar 2018 21:24:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87zi2sdmvu.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Chris, > I've updated my patch; it now also changes the following line... > > 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2=80= =98~/.guix-profile=E2=80=99: > > ...to this: > > 3. Make =E2=80=98root=E2=80=99=E2=80=99s profile available under =E2=80= =98~root/.guix-profile=E2=80=99: > > How does that sound? This looks good to me. Thank you! --=20 Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From unknown Sat Jun 21 05:20:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#30728: closed (Re: bug#30728: guix-install.sh doesn't work if run with "sudo") Message-ID: References: <87lgebtqpa.fsf@gmail.com> <87zi3lh6mb.fsf@lassieur.org> X-Gnu-PR-Message: they-closed 30728 X-Gnu-PR-Package: guix Reply-To: 30728@debbugs.gnu.org Date: Thu, 29 Mar 2018 05:08:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1522300082-18361-1" This is a multi-part message in MIME format... ------------=_1522300082-18361-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #30728: guix-install.sh doesn't work if run with "sudo" which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 30728@debbugs.gnu.org. --=20 30728: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30728 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1522300082-18361-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 30728-done) by debbugs.gnu.org; 29 Mar 2018 05:07:42 +0000 Received: from localhost ([127.0.0.1]:57839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Pmm-0004lW-8O for submit@debbugs.gnu.org; Thu, 29 Mar 2018 01:07:42 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:33840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Pmk-0004lK-OM for 30728-done@debbugs.gnu.org; Thu, 29 Mar 2018 01:07:39 -0400 Received: by mail-pg0-f47.google.com with SMTP id y16so1818584pgv.1 for <30728-done@debbugs.gnu.org>; Wed, 28 Mar 2018 22:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=J09APukmUXNKtGoRx9bt+5oCCBmVQwPzdfc+wYTOtJE=; b=ZLZrW7wICheXVJDI+aRChW+grTJyh/cle7YuMo2nz/IFSHKiuvvhOSfzdftSlQ0Y50 hu95NfuI/4m2MYfm1dVYzOknPyMwfQYPSHlDPqha77e1krgGTTFlNSTZKRN6LBNWofbs MBYAxPFFwao0ObxQFMfL15EzR06HeylDD5Ut2dZpH4xZpl+/hDFJZlmY3WGapQYgBAgb eFOJm5aGorJQld/6ZL73pEk0P1+wzJmWgqbR0NdFarKikTWxnL7xO8CF1tsENWpEVfu/ kXziKvdyWC1W6KWaCdAuo7dYLZOtGJqN38U2D9HOnkeFeIWWaPemLV9/graBlRWyVmUl ir0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=J09APukmUXNKtGoRx9bt+5oCCBmVQwPzdfc+wYTOtJE=; b=If2HMWlsw8YMElKgT1ntXIcU7qLc8DW11gViaOYGB6V2QO+giCW4NLGIfSNu2NeeIL dWQT0vE4b8k9NoDywyKkX/p6Zgt0dN+JzFX3r2N8z0AeZhDgAEj9Q7z6II1oORBlH+Rn caeY8Bjcr/0YS1LVyEJ/k+9Ew04ijJkLIwoGZYdMyn8LxwrQ1TUG9fWyeLVW4DzcEivG 7APutN+WHdt+dVsm3/A//G7cFkobiaiX5AOkCTlWmUhCdRtrUCUw/XAMpuEft6sC7Ob+ bHH6IezA991UZhG9ak514h5uo99bp/wFgWzp6avajlPEACjj4Qi+1CDN0AxuPFY/AELx /tbg== X-Gm-Message-State: AElRT7EyyPGHGJMfQ1W+x4cwzFm+/XmfKUfB4O3+uiLC2swjIFXxc1xc fPoLI65/aMRIcXN0EUnvVMJiy6OQ X-Google-Smtp-Source: AIpwx4978WJFpW+ojdNa2XdHCMPy9JoT9U3pnY7TrY8kjD5HIfKvPNB2qmz5nMzD/Oedo1EEc7jwWg== X-Received: by 2002:a17:902:bc45:: with SMTP id t5-v6mr6680758plz.343.1522300052610; Wed, 28 Mar 2018 22:07:32 -0700 (PDT) Received: from garuda.local ([2601:602:9d02:4725:6495:ba21:1ebe:620a]) by smtp.gmail.com with ESMTPSA id y90sm7860257pfi.130.2018.03.28.22.07.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Mar 2018 22:07:31 -0700 (PDT) From: Chris Marusich To: Ricardo Wurmus Subject: Re: bug#30728: guix-install.sh doesn't work if run with "sudo" References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> <87zi2sdmvu.fsf@elephly.net> Date: Thu, 29 Mar 2018 07:07:29 +0200 In-Reply-To: <87zi2sdmvu.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 28 Mar 2018 21:24:21 +0200") Message-ID: <87lgebtqpa.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30728-done Cc: =?utf-8?Q?Cl=C3=A9ment?= Lassieur , 30728-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi everyone, Ricardo Wurmus writes: > This looks good to me. Thank you! I've committed this as 3cd4447f5639f45b7d833f6fb2adce11ea15ba1d. If anybody has additional concerns about the installation script or the installation instructions, please open a new bug report for it and we can discuss the topic further there. Thank you for reporting this issue, Cl=C3=A9ment! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlq8dJEACgkQ3UCaFdgi Rp0mXhAAwaOW1w3LlwNJ6oY1NQyseyhDm4FFjOg2yLc8cwUzg8+Go06WQJqFKsJd J0q6Bn3JfcockhYfniRZZuveWWxw3fc8kicfFmEz0Y+VDxOZDBXCONORDf95tXuV JvXizVcUDF38VvHJ0zZj8bTMxYPXWD4KpAOIEIJD6cMJpiUkDWPTwM3igDO6vsRR rxTcxWp4YO4zCDwOvu89gnIW/gq8ZMkQja0kkRWZa44OonLsgmXvCFadqY0sgdm4 8qmRCwn7ft/R3yUaql8/f4ZgI/nUbRgLVuGIvV7PMhj31BLmd6EazdcYU9g4bXfd RJb5LVZTvrjTSPvg/JqdnbFT/wjAUOUsTXIBQZ6iw2VCz4wAB832J3reAoWGYGsX uhlipfm8rUwX+NnjC6go68gFTnVGdc9FZ3CTQ4tamEqz418bjzOLeF98hK0j0g0n Tz2MtYhVIANeHXoDFFlSXFeJRrxGiLO5CQjwxAUIMYsAyrP7S4ueOlWIwLKBIlej zI/8ojZAbrEv6MdM6aMxv5DM3i8VCpC50194CmZoPBOfkUtuV3eZ3pS12x3H/8O4 c6CzTT79SYIe4GHIgVup4CmoKn0ZZvseKQyRENEq7R8Hw8ojxWtMm8IrzZPShOBA OCLlsMreZCyGoN7ulVDH/XABtvSqbEOGFR1otE0mVHMp5iMihf8= =EOdx -----END PGP SIGNATURE----- --=-=-=-- ------------=_1522300082-18361-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Mar 2018 09:54:20 +0000 Received: from localhost ([127.0.0.1]:46833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1et9Ia-0008Ee-D2 for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1et9IY-0008ES-9C for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et9IS-0005yJ-2O for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44439) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1et9IR-0005yC-Vg for submit@debbugs.gnu.org; Tue, 06 Mar 2018 04:54:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et9IQ-0002fk-Un for bug-guix@gnu.org; Tue, 06 Mar 2018 04:54:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et9IO-0005wc-CO for bug-guix@gnu.org; Tue, 06 Mar 2018 04:54:10 -0500 Received: from mail.lassieur.org ([83.152.10.219]:52616) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1et9IO-0005wA-05 for bug-guix@gnu.org; Tue, 06 Mar 2018 04:54:08 -0500 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id a0639e9d (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Tue, 6 Mar 2018 09:54:05 +0000 (UTC) User-agent: mu4e 1.0; emacs 25.3.1 User-agent: mu4e 1.0; emacs 25.3.1 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur To: bug-guix@gnu.org Subject: guix-install.sh doesn't work if run with "sudo" Date: Tue, 06 Mar 2018 10:54:04 +0100 Message-ID: <87zi3lh6mb.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hi, My system is Ubuntu 16.04. I ran './guix-install.sh' and got the message: "This script must be run as root.". So I ran 'sudo ./guix-install.sh' and got an error message saying that: GUIX_PROFILE="${HOME}/.guix-profile" source "${GUIX_PROFILE}/etc/profile" the 'source' command doesn't work because ${GUIX_PROFILE} was never created, ${HOME} being /home/clement, not /root. To recover from this I had to manually delete /var/guix and /gnu, log as root with 'su', and start again. Clément ------------=_1522300082-18361-1-- From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Mar 2018 07:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: Chris Marusich , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.1522309716745 (code B ref 30728); Thu, 29 Mar 2018 07:49:02 +0000 Received: (at 30728) by debbugs.gnu.org; 29 Mar 2018 07:48:36 +0000 Received: from localhost ([127.0.0.1]:57905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1SIV-0000Bx-UK for submit@debbugs.gnu.org; Thu, 29 Mar 2018 03:48:36 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1SIT-0000Bm-Ay for 30728@debbugs.gnu.org; Thu, 29 Mar 2018 03:48:34 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 5bc0c29b (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Thu, 29 Mar 2018 07:48:30 +0000 (UTC) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> <87zi2sdmvu.fsf@elephly.net> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87zi2sdmvu.fsf@elephly.net> Date: Thu, 29 Mar 2018 09:48:30 +0200 Message-ID: <87efk3wcdt.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Ricardo Wurmus writes: > Hi Chris, > >> I've updated my patch; it now also changes the following line... >> >> 3. Make ‘root’’s profile available under ‘~/.guix-profile’: >> >> ...to this: >> >> 3. Make ‘root’’s profile available under ‘~root/.guix-profile’: >> >> How does that sound? > > This looks good to me. Thank you! I am surprised that you didn't comment on https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30728#32 (where I explain to you why I disagree with Guix being installed in ~root) before saying LGTM. From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Mar 2018 08:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15223106772203 (code B ref 30728); Thu, 29 Mar 2018 08:05:02 +0000 Received: (at 30728) by debbugs.gnu.org; 29 Mar 2018 08:04:37 +0000 Received: from localhost ([127.0.0.1]:57909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1SY0-0000ZS-Ac for submit@debbugs.gnu.org; Thu, 29 Mar 2018 04:04:37 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1SXy-0000ZK-BX for 30728@debbugs.gnu.org; Thu, 29 Mar 2018 04:04:34 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 9e2c58f8 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Thu, 29 Mar 2018 08:04:33 +0000 (UTC) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87k1txwlfb.fsf@gmail.com> Date: Thu, 29 Mar 2018 10:04:32 +0200 Message-ID: <87d0znwbn3.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Chris Marusich writes: > Clément Lassieur writes: > >> Ricardo Wurmus writes: >> >>> Clément Lassieur writes: >>> >>>>> The manual says (see: (guix) Binary Installation): >>>>> >>>>> 3. Make ‘root’’s profile available under ‘~/.guix-profile’: >>>>> >>>>> # ln -sf /var/guix/profiles/per-user/root/guix-profile \ >>>>> ~root/.guix-profile >>>> >>>> I think the manual is wrong here. This only makes sense if the user is >>>> 'root'. Otherwise, the user would expect Guix to be installed in their >>>> home, not in root's home. >>> >>> Step 2 says “As root, run: […]”. “~root” resolves to “/root”, not to >>> “$HOME/root”, so it even works when run as a regular user. >>> >>> The manual seems correct to me and this is what the script aims to >>> implement. >> >> But ~/.guix-profile may resolve to /home/user/.guix-profile. So it >> should be ~root/.guix-profile instead of ~/.guix-profile. > > Ah, I think I now see the cause of our miscommunication. > > It's possible to interpret the manual's use of ~ and $HOME to mean "the > unprivileged user's home directory", instead of "root's home directory". > I think that's a mistake in the manual, since the "ln" clearly makes > root's profile available under root's home directory, and the step > involving $HOME doesn't make sense unless $HOME expands to root's home > directory. > > I've updated my patch; it now also changes the following line... > > 3. Make ‘root’’s profile available under ‘~/.guix-profile’: > > ...to this: > > 3. Make ‘root’’s profile available under ‘~root/.guix-profile’: > > How does that sound? This fixes the documentation inconsistency, but I still think Guix shouldn't be installed in ~root (as I explain there: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30728#32). From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Mar 2018 08:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: Ricardo Wurmus , Guix-devel , 30728@debbugs.gnu.org, Tatiana Sholokhova Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15223110992820 (code B ref 30728); Thu, 29 Mar 2018 08:12:02 +0000 Received: (at 30728) by debbugs.gnu.org; 29 Mar 2018 08:11:39 +0000 Received: from localhost ([127.0.0.1]:57913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Sep-0000jQ-3k for submit@debbugs.gnu.org; Thu, 29 Mar 2018 04:11:39 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Sen-0000jI-A0 for 30728@debbugs.gnu.org; Thu, 29 Mar 2018 04:11:37 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id e899e8dd (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Thu, 29 Mar 2018 08:11:36 +0000 (UTC) References: <87d0zr9r76.fsf@lassieur.org> <87fu4ngq0a.fsf@elephly.net> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: Date: Thu, 29 Mar 2018 10:11:35 +0200 Message-ID: <87bmf7wbbc.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Gábor Boskovits writes: > 2018-03-26 11:11 GMT+02:00 Ricardo Wurmus : > >> >> Hi Clément, >> >> > 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’s >> 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’s >> home directory and not to the sudoing user’s HOME. >> >> Or am I missing something? >> >> > I think Ricardo is right on this one. I would also recommend installing in > root's home directory. But you don't explain why. And "as it follows the manual's instructions" isn't a good reason to me. > I believe, 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. I think it would be fairly easy. The kind of edit we do all the time when patches are being reviewed. From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: Modification for guix installation script. Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Mar 2018 08:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tatiana Sholokhova Cc: guix-devel , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.15223119004044 (code B ref 30728); Thu, 29 Mar 2018 08:25:02 +0000 Received: (at 30728) by debbugs.gnu.org; 29 Mar 2018 08:25:00 +0000 Received: from localhost ([127.0.0.1]:57919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Srk-000139-CO for submit@debbugs.gnu.org; Thu, 29 Mar 2018 04:25:00 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Srj-000132-0k for 30728@debbugs.gnu.org; Thu, 29 Mar 2018 04:24:59 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id f3e06280 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Thu, 29 Mar 2018 08:24:57 +0000 (UTC) References: <87d0zr9r76.fsf@lassieur.org> <87fu4ngq0a.fsf@elephly.net> <87bmfb9eml.fsf@lassieur.org> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: Date: Thu, 29 Mar 2018 10:24:57 +0200 Message-ID: <87a7urwap2.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Tatiana, Tatiana Sholokhova writes: > Hello! > > > Could you please make that change on top of the current version of the > Guix sources as a git commit? Then you can run “git format-patch -1” to > format it as a patch in a format that we can apply. You can send the > resulting patch file as an attachment to a reply to this email. > This also fixes bug #30728, so please add this line to the commit > message: > -- > Ricardo > > > I have attached the patch file to this email. This patch fixes the installation > process but it placeguixwithin root's directory. > > > I personally prefer that the Guix daemon points to my home directory > because I don't want to update root's profile. Some other people might > prefer that it points to ~root because they might later delete their > profile and want Guix to keep working. > > > Do we have to take a decision here? Can't we just let the user decide > by letting them customize their environment variables? I think it is > the point of environment variables: giving freedom to users. > > > We can further work on the script's flexibility using the environment variable > solution. Thank you for your patch. The one Chris did has been pushed, but if you want, you can still work on improving the script's flexibility. I still haven't seen any valid argument for or against it, though, so I don't know if it's a good idea. Maybe we can wait until someone says something about it! Clément From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Mar 2018 08:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Chris Marusich Cc: Ricardo Wurmus , 30728-done@debbugs.gnu.org Received: via spool by 30728-done@debbugs.gnu.org id=D30728.15223120154221 (code D ref 30728); Thu, 29 Mar 2018 08:27:01 +0000 Received: (at 30728-done) by debbugs.gnu.org; 29 Mar 2018 08:26:55 +0000 Received: from localhost ([127.0.0.1]:57923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1Sta-000161-Q5 for submit@debbugs.gnu.org; Thu, 29 Mar 2018 04:26:54 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1StY-00015t-Va for 30728-done@debbugs.gnu.org; Thu, 29 Mar 2018 04:26:53 -0400 Received: from newt (46.218.109.88 [46.218.109.88]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 6536b1d2 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Thu, 29 Mar 2018 08:26:49 +0000 (UTC) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> <87zi2sdmvu.fsf@elephly.net> <87lgebtqpa.fsf@gmail.com> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87lgebtqpa.fsf@gmail.com> Date: Thu, 29 Mar 2018 10:26:48 +0200 Message-ID: <878tabwalz.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Chris Marusich writes: > Hi everyone, > > Ricardo Wurmus writes: > >> This looks good to me. Thank you! > > I've committed this as 3cd4447f5639f45b7d833f6fb2adce11ea15ba1d. If > anybody has additional concerns about the installation script or the > installation instructions, please open a new bug report for it and we > can discuss the topic further there. > > Thank you for reporting this issue, Clément! You're welcome Chris, thanks for the patch. :-) From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 29 Mar 2018 10:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Cc: Chris Marusich , 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152231809413135 (code B ref 30728); Thu, 29 Mar 2018 10:09:02 +0000 Received: (at 30728) by debbugs.gnu.org; 29 Mar 2018 10:08:14 +0000 Received: from localhost ([127.0.0.1]:57968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1UTe-0003Pm-K2 for submit@debbugs.gnu.org; Thu, 29 Mar 2018 06:08:14 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f1UTd-0003Pf-6P for 30728@debbugs.gnu.org; Thu, 29 Mar 2018 06:08:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1522318074; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=1435; bh=e5sx/1iUueNONJFownW3Bjgsq6nGQTUdM5TMklWa6xw=; b=QaOTaa4EhK5za0U0hBW8D7stiXZ6zvWpz65VoD4W1/rnLDsGEyB2FkihzDAXKNi9 RlgqJ0bcp0zyYaR/rtdHyMtHiIiLH6mOqlfBViAcGm8O6obwzyjiBfFhAgPiFs2vQK2 gqBtY7/04cb0KNhMzltGwtL9cBbwKzQ4pik+wIFc= Received: from localhost (port-92-200-56-56.dynamic.qsc.de [92.200.56.56]) by mx.zohomail.com with SMTPS id 152231807411982.51355120143694; Thu, 29 Mar 2018 03:07:54 -0700 (PDT) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> <87zi2sdmvu.fsf@elephly.net> <87efk3wcdt.fsf@lassieur.org> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus In-reply-to: <87efk3wcdt.fsf@lassieur.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 29 Mar 2018 12:07:50 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87o9j7dwjt.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Cl=C3=A9ment, > I am surprised that you didn't comment on > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D30728#32 (where I explain > to you why I disagree with Guix being installed in ~root) before saying > LGTM. Don=E2=80=99t be surprised: there are too many emails and I=E2=80=99m bound= to forget about some. My apologies for not repyling to your email earlier. I read your mail but I disagree with the conclusions. It is not the job of the installer script to install Guix for a particular user. It is for a site-wide installation, including the set up of the daemon and a service script. These things must happen as root. The idea is that Guix is installed for the whole site and made available to all users. Individual users can then choose to use =E2=80=9Cguix pull=E2=80=9D to cont= rol their own version of Guix. I consider it inelegant and dangerous to make the Guix installation of an unprivileged user the variant of Guix that is used by all users on the system. Having it managed by the root user avoids surprises, even on single-user systems, because the implication is that changes to the root user=E2=80=99s Guix installation have system-wide effects. The proposed patch is small and fixes the bug with regard to the intention behind the script, so I=E2=80=99m happy to accept it. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From unknown Sat Jun 21 05:20:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#30728: guix-install.sh doesn't work if run with "sudo" Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 30 Mar 2018 22:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30728 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: 30728@debbugs.gnu.org Received: via spool by 30728-submit@debbugs.gnu.org id=B30728.152244767016793 (code B ref 30728); Fri, 30 Mar 2018 22:08:01 +0000 Received: (at 30728) by debbugs.gnu.org; 30 Mar 2018 22:07:50 +0000 Received: from localhost ([127.0.0.1]:60502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f22BZ-0004Mn-Oa for submit@debbugs.gnu.org; Fri, 30 Mar 2018 18:07:49 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f22BX-0004Mb-CT for 30728@debbugs.gnu.org; Fri, 30 Mar 2018 18:07:48 -0400 Received: from rodion (88.191.118.83 [88.191.118.83]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 1c2d02d4 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Fri, 30 Mar 2018 22:07:45 +0000 (UTC) References: <87zi3lh6mb.fsf@lassieur.org> <871sgbdj2x.fsf@lassieur.org> <87d0zsn391.fsf@gmail.com> <87efk79s81.fsf@lassieur.org> <87woxyez9t.fsf@elephly.net> <87lgedx4qf.fsf@lassieur.org> <87k1txwlfb.fsf@gmail.com> <87zi2sdmvu.fsf@elephly.net> <87efk3wcdt.fsf@lassieur.org> <87o9j7dwjt.fsf@elephly.net> User-agent: mu4e 1.0; emacs 25.3.1 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-reply-to: <87o9j7dwjt.fsf@elephly.net> Date: Sat, 31 Mar 2018 00:07:45 +0200 Message-ID: <87efk1jjym.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Hi Ricardo, Ricardo Wurmus writes: > Hi Clément, > >> I am surprised that you didn't comment on >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30728#32 (where I explain >> to you why I disagree with Guix being installed in ~root) before saying >> LGTM. > > Don’t be surprised: there are too many emails and I’m bound to forget > about some. My apologies for not repyling to your email earlier. Thank you for your reply. :-) I definitely understand. > I read your mail but I disagree with the conclusions. It is not the job > of the installer script to install Guix for a particular user. It is > for a site-wide installation, including the set up of the daemon and a > service script. These things must happen as root. The idea is that > Guix is installed for the whole site and made available to all users. The installation must happen with root privileges, but that doesn't mean that Guix should be installed in ~root, because root is a particular user. See http://www.linfo.org/root.html: "/root contains configuration files for the root account, just as each ordinary user's home directory." Thus I don't think things in ~root should be site-wide, and I have never seen such things. Site-wide stuff is usually in /var, /etc, etc. (Which is not what I'm asking for, but in the long term it would be better, in my opinion.) > Individual users can then choose to use “guix pull” to control their own > version of Guix. And they will typically forget to update the daemon (and the site-wide Guix). Allowing a user to be responsible for updating Guix makes it more likely to be updated. Much more likely if the user doesn't need to handle two different Guix installations. > I consider it inelegant and dangerous to make the Guix installation of > an unprivileged user the variant of Guix that is used by all users on > the system. Having it managed by the root user avoids surprises, even > on single-user systems, because the implication is that changes to the > root user’s Guix installation have system-wide effects. I agree that those system-wide effects are not ideal, but I don't think it's worse than the system-wide effects from ~root. The implication you are talking about isn't obvious to me, because root is a user as every other, the only difference being its power. Things root does shouldn't have system-wide effects either. And I wasn't asking to install Guix in the user's home, rather to let them choose between two imperfect solutions. In other words, to give them more freedom. For example if the user does 'sudo -E ./guix-install.sh', Guix would be installed in their home, whereas if the user does 'sudo -H ./guix-install.sh', Guix would be installed in ~root. Your script is very useful anyway, thank you for it! Clément