From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IDcAEiUs0V7IFQAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 15:37:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cN/eDSUs0V6BYwAA1q6Kng (envelope-from ) for ; Fri, 29 May 2020 15:37:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DC4DD94042C for ; Fri, 29 May 2020 15:37:08 +0000 (UTC) Received: from localhost ([::1]:46346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeh4F-0000nE-Eh for larch@yhetil.org; Fri, 29 May 2020 11:37:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeh4A-0000mF-Fb for guix-patches@gnu.org; Fri, 29 May 2020 11:37:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeh4A-0005y9-6H for guix-patches@gnu.org; Fri, 29 May 2020 11:37:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeh4A-0006q3-4V for guix-patches@gnu.org; Fri, 29 May 2020 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41601] [PATCH] doc: Make 'sudo -E ./pre-inst-env guix-daemon' example less prominent. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 May 2020 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke ,41601@debbugs.gnu.org Received: via spool by 41601-submit@debbugs.gnu.org id=B41601.159076659826247 (code B ref 41601); Fri, 29 May 2020 15:37:02 +0000 Received: (at 41601) by debbugs.gnu.org; 29 May 2020 15:36:38 +0000 Received: from localhost ([127.0.0.1]:55851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeh3l-0006pG-Md for submit@debbugs.gnu.org; Fri, 29 May 2020 11:36:37 -0400 Received: from lepiller.eu ([89.234.186.109]:51684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeh3h-0006ox-2J for 41601@debbugs.gnu.org; Fri, 29 May 2020 11:36:33 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 7e2518d8; Fri, 29 May 2020 15:36:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=s05gjssyn+DCL8f5vQ2cRXnjZ/oUlL/ctO04rX5ualM=; b=oAlhYMtA8964 1AG8hTPnLrRIUhw+A2S2C/6T3h8Vx6vvEG1/lu897kMn0WUgrGFVlswH8e4bjfay a9ekL6DOUksnNKuDGbMBAsKuWJntoTnimIOEerx0NFD/qeB/O2DpD80qe5BMaV41 nHneZgHh9e2z7HkZcHOBmr8Mmg+QG7UM7h8kKI9QosNlsshWAzlBTXp+4udvMBlL ZFgjUDnRQVhtWX/43u8Ji9ocrlsAvQyROVKyvVocRDMddBl8vNpqrP7+imcRrp83 iiFhTDtlZUONPzviIzxzg9Wj8euzFNWGFyiqrp3OqcTTMjo57uq0aDsa4WsJ7M4b awt8uke+4Q== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 52f003d6 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 29 May 2020 15:36:30 +0000 (UTC) Date: Fri, 29 May 2020 11:36:15 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <20200529150003.4560-1-marius@gnu.org> References: <20200529150003.4560-1-marius@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=lepiller.eu header.s=dkim header.b=oAlhYMtA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: M0AQwDHvl+lZ Le 29 mai 2020 11:00:03 GMT-04:00, Marius Bakke a =C3=A9= crit : >* doc/contributing=2Etexi (Running Guix Before It Is Installed): Move >'=2E/pre-inst-env guix-daemon' example after the mention of >GUILE_LOAD_PATH & >co, because running the daemon from the checkout frequently trips new >users=2E >Additionally clarify that sudo must be setuid=2E >--- > doc/contributing=2Etexi | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) > >diff --git a/doc/contributing=2Etexi b/doc/contributing=2Etexi >index 88128e5498=2E=2Ed9e54dd23b 100644 >--- a/doc/contributing=2Etexi >+++ b/doc/contributing=2Etexi >@@ -161,13 +161,8 @@ with all the dependencies available >(@pxref{Building from Git}), and then > simply prefix each command with > @command{=2E/pre-inst-env} (the @file{pre-inst-env} script lives in the > top build tree of Guix; it is generated by @command{=2E/configure})=2E >-An example@footnote{The @option{-E} flag to >-@command{sudo} guarantees that @code{GUILE_LOAD_PATH} is correctly set >-such that @command{guix-daemon} and the tools it uses can find the >Guile >-modules they need=2E}: >=20 > @example >-$ sudo -E =2E/pre-inst-env guix-daemon --build-users-group=3Dguixbuild > $ =2E/pre-inst-env guix build hello > @end example >=20 >@@ -205,6 +200,16 @@ $1 =3D 361 >The @command{pre-inst-env} script sets up all the environment variables >necessary to support this, including @env{PATH} and >@env{GUILE_LOAD_PATH}=2E >=20 >+When root privileges are required, use the @option{-E} argument to >+@command{sudo} to preserve the environment@footnote{Additionally, make >sure >+to use the installed @command{sudo} such as >@file{/run/setuid-programs/sudo} >+instead of the @code{sudo} package, otherwise sudo won't be able to >elevate >+privileges}=2E E=2Eg=2E if you are testing changes to >@command{guix-daemon}: >+ >+@example >+$ sudo -E =2E/pre-inst-env guix-daemon --build-users-group=3Dguixbuild >+@end example >+ >Note that @command{=2E/pre-inst-env guix pull} does @emph{not} upgrade >the > local source tree; it simply updates the @file{~/=2Econfig/guix/current} >symlink (@pxref{Invoking guix pull})=2E Run @command{git pull} instead >if Looks good, but you should mention that, before running the daemon that wa= y, the one running on the system must be stopped (herd stop guix-daemon or = whatever init system is installed)=2E