From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#36785: Impossible to pull on foreign distro Date: Mon, 23 Sep 2019 23:09:52 +0900 Message-ID: <871rw7f6j3.fsf@gmail.com> References: <6733C9AB-E5C1-4B63-8F0E-04CD1BB32338@lepiller.eu> <874l39ra37.fsf@gnu.org> <3DC355B8-FE36-4C4E-BBC9-EEC5F580AF0D@lepiller.eu> <87tvb9qktd.fsf@gnu.org> <87woe6fune.fsf@gnu.org> <87pnjv73sg.fsf@gmail.com> <87woe3otut.fsf@gnu.org> <87pnjt6dbf.fsf@gmail.com> <87d0frl8js.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35808) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCP3Q-0002xf-E9 for bug-guix@gnu.org; Mon, 23 Sep 2019 10:11:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCP3O-0004fB-Qe for bug-guix@gnu.org; Mon, 23 Sep 2019 10:11:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCP3O-0004f7-Mo for bug-guix@gnu.org; Mon, 23 Sep 2019 10:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iCP3O-00062S-GS for bug-guix@gnu.org; Mon, 23 Sep 2019 10:11:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87d0frl8js.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 23 Sep 2019 10:29:43 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36785@debbugs.gnu.org Hello, Ludovic Court=C3=A8s writes: > Hi Maxim, > > Maxim Cournoyer skribis: > >> --- a/doc/guix.texi >> +++ b/doc/guix.texi >> @@ -2387,8 +2387,8 @@ Success, you've now booted into Guix System! From= then on, you can update the >> system whenever you want by running, say: >>=20=20 >> @example >> -guix pull >> -sudo guix system reconfigure /etc/config.scm >> +sudo -i guix pull >> +sudo -i guix system reconfigure /etc/config.scm >> @end example >>=20=20 >> @noindent >> @@ -2396,14 +2396,6 @@ This builds a new system generation with the late= st packages and services >> (@pxref{Invoking guix system}). We recommend doing that regularly so t= hat >> your system includes the latest security updates (@pxref{Security Updat= es}). >>=20=20 >> -@c See . >> -@quotation Note >> -@cindex sudo vs. @command{guix pull} >> -Note that @command{sudo guix} runs your user's @command{guix} command a= nd >> -@emph{not} root's, because @command{sudo} leaves @code{PATH} unchanged.= To >> -explicitly run root's @command{guix}, type @command{sudo -i guix @dots{= }}. >> -@end quotation > > I think these bits were correct. They are correct when applied to a Guix System; what my commits aim to do is make them generally true regardless of the Guix System vs foreign distro situation, in an attempt to negate possible confusion. It's not succeeding, obviously :-). I had modified that bit of the manual because that's apparently the only place where we mention 'sudo guix pull' in the manual. In the commit message I wrote: Although this section is specific to Guix System, it is likely to be read by users of foreign GNU/Linux distributions as well. Remove the note, given that sudo doesn't preserve the user's PATH on foreign distributions such as Debian. > That is, when running =E2=80=9Csudo foo=E2=80=9D, =E2=80=9Cfoo=E2=80=9D i= s looked up in the user=E2=80=99s > $PATH, not in root=E2=80=99s $PATH. That=E2=80=99s what led to this text= in commit > 796a4491fdaa4a0a3d669457b89356f9fbfc966e. > > So this part is fine. > > Perhaps we need another section for this? Or perhaps we can drop the > ball=E2=80=A6 Agreed, until more real use cases come so that the proper solution can be more clear (in regards to what needs to be changed in the manual). Maxim