From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Subject: bug#36785: Impossible to pull on foreign distro Date: Mon, 23 Sep 2019 11:00:48 +0200 Message-ID: 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: multipart/alternative; boundary="000000000000ad0be8059334a83c" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51485) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCKEP-0000PM-AU for bug-guix@gnu.org; Mon, 23 Sep 2019 05:02:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCKEN-0003tU-CJ for bug-guix@gnu.org; Mon, 23 Sep 2019 05:02:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54452) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCKEM-0003t0-EB for bug-guix@gnu.org; Mon, 23 Sep 2019 05:02:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iCKEM-0003xJ-93 for bug-guix@gnu.org; Mon, 23 Sep 2019 05:02:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87d0frl8js.fsf@gnu.org> 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, Maxim Cournoyer --000000000000ad0be8059334a83c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s ezt =C3=ADrta (id=C5=91pont: 2019. szep= t. 23., H=C3=A9t 10:29): > 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! Fro= m > then on, you can update the > > system whenever you want by running, say: > > > > @example > > -guix pull > > -sudo guix system reconfigure /etc/config.scm > > +sudo -i guix pull > > +sudo -i guix system reconfigure /etc/config.scm > > @end example > > > > @noindent > > @@ -2396,14 +2396,6 @@ This builds a new system generation with the > latest packages and services > > (@pxref{Invoking guix system}). We recommend doing that regularly so > that > > your system includes the latest security updates (@pxref{Security > Updates}). > > > > -@c See < > https://lists.gnu.org/archive/html/guix-devel/2019-01/msg00268.html>. > > -@quotation Note > > -@cindex sudo vs. @command{guix pull} > > -Note that @command{sudo guix} runs your user's @command{guix} command > and > > -@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. > > 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 > I believe sudo -H would work in all distros for doing a root guix pull. Can someone confirm? > > Perhaps we need another section for this? Or perhaps we can drop the > ball=E2=80=A6 > > Thanks, > Ludo=E2=80=99. > Best regards, g_bor > --000000000000ad0be8059334a83c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


Ludovic Court=C3=A8s <ludo@gnu.org> ezt =C3=ADrta (id=C5=91pont: 2019. szept. 23., H=C3= =A9t 10:29):
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> --- a/doc/guix.texi
> +++ b/doc/guix.texi
> @@ -2387,8 +2387,8 @@ Success, you've now booted into Guix System!= =C2=A0 From then on, you can update the
>=C2=A0 system whenever you want by running, say:
>=C2=A0
>=C2=A0 @example
> -guix pull
> -sudo guix system reconfigure /etc/config.scm
> +sudo -i guix pull
> +sudo -i guix system reconfigure /etc/config.scm
>=C2=A0 @end example
>=C2=A0
>=C2=A0 @noindent
> @@ -2396,14 +2396,6 @@ This builds a new system generation with the la= test packages and services
>=C2=A0 (@pxref{Invoking guix system}).=C2=A0 We recommend doing that re= gularly so that
>=C2=A0 your system includes the latest security updates (@pxref{Securit= y Updates}).
>=C2=A0
> -@c See <https= ://lists.gnu.org/archive/html/guix-devel/2019-01/msg00268.html>.
> -@quotation Note
> -@cindex sudo vs. @command{guix pull}
> -Note that @command{sudo guix} runs your user's @command{guix} com= mand and
> -@emph{not} root's, because @command{sudo} leaves @code{PATH} unch= anged.=C2=A0 To
> -explicitly run root's @command{guix}, type @command{sudo -i guix = @dots{}}.
> -@end quotation

I think these bits were correct.

That is, when running =E2=80=9Csudo foo=E2=80=9D, =E2=80=9Cfoo=E2=80=9D is = looked up in the user=E2=80=99s
$PATH, not in root=E2=80=99s $PATH.=C2=A0 That=E2=80=99s what led to this t= ext in commit
796a4491fdaa4a0a3d669457b89356f9fbfc966e.

So this part is fine
I believ= e sudo -H would work in all distros for doing a root guix pull. Can someone= confirm?

Perhaps we need another section for this?=C2=A0 Or perhaps we can drop the<= br> ball=E2=80=A6

Thanks,
Ludo=E2=80=99.
Best regards,<= /div>
g_bor
--000000000000ad0be8059334a83c--