From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MJJdCH/wzV9iegAA0tVLHw (envelope-from ) for ; Mon, 07 Dec 2020 09:06:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CPRKBH/wzV9zIAAAB5/wlQ (envelope-from ) for ; Mon, 07 Dec 2020 09:06:07 +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 89C2F940111 for ; Mon, 7 Dec 2020 09:06:06 +0000 (UTC) Received: from localhost ([::1]:55100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmCT7-0004BU-Do for larch@yhetil.org; Mon, 07 Dec 2020 04:06:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmCS6-0003RJ-4B for guix-patches@gnu.org; Mon, 07 Dec 2020 04:05:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kmCS5-0001kw-Qy for guix-patches@gnu.org; Mon, 07 Dec 2020 04:05:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kmCS5-00047G-ML for guix-patches@gnu.org; Mon, 07 Dec 2020 04:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45039] [PATCH] Remove duplicate path declaration Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Dec 2020 09:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45039 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Leo Famulari Cc: 45039@debbugs.gnu.org, Holger Peters Received: via spool by 45039-submit@debbugs.gnu.org id=B45039.160733186115771 (code B ref 45039); Mon, 07 Dec 2020 09:05:01 +0000 Received: (at 45039) by debbugs.gnu.org; 7 Dec 2020 09:04:21 +0000 Received: from localhost ([127.0.0.1]:52363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmCRQ-00046J-LU for submit@debbugs.gnu.org; Mon, 07 Dec 2020 04:04:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kmCRP-000467-Hm for 45039@debbugs.gnu.org; Mon, 07 Dec 2020 04:04:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50995) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmCRK-0001XK-8X; Mon, 07 Dec 2020 04:04:14 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=46986 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kmCRJ-0005RP-EM; Mon, 07 Dec 2020 04:04:13 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Mon, 07 Dec 2020 10:04:12 +0100 In-Reply-To: (Leo Famulari's message of "Fri, 4 Dec 2020 14:13:37 -0500") Message-ID: <87v9de0yyb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.80 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: 89C2F940111 X-Spam-Score: -2.80 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: ye0S6aErpH5s Hi, Leo Famulari skribis: > On Fri, Dec 04, 2020 at 10:51:37AM +0100, Holger Peters wrote: >> * doc/guix.texi: Fixup path declaration. > >> @example >> -GUIX_PROFILE=3D"$HOME/.config/guix/current/etc/profile" >> +GUIX_PROFILE=3D"$HOME/.config/guix/current" >> . "$GUIX_PROFILE/etc/profile" >> @end example > > Thanks! That example is definitely not right... Indeed; applying. > However, it doesn't seem right to me either that GUIX_PROFILE should > point to '~/.config/guix/current/etc/profile'. That profile won't > contain anything useful related to packages the user installs. Compare > it to the contents of '~/.guix-profile/etc/profile' to see what I mean. Note that GUIX_PROFILE here is a shell variable, not an environment variable. It value matters only for the =E2=80=9C.=E2=80=9D that immediate= ly follows. After that, it no longer matters. > I alo was curious about the preceding paragraph, which states "Unless > you=E2=80=99re on Guix System, the first time you run guix pull, be sure = to > follow the hint that the command prints [...]". I re-installed Guix on a > Debian system and it prints this instead: > > ------ > hint: Consider setting the necessary environment variables by running: > > GUIX_PROFILE=3D"/root/.guix-profile" > . "$GUIX_PROFILE/etc/profile" > > Alternately, see `guix package --search-paths -p "/root/.guix-profile"'. > ------ > > CC-ing Ludovic (who wrote this section) for clarification. Isn=E2=80=99t it what =E2=80=98guix install=E2=80=99 printed rather than wh= at =E2=80=98guix pull=E2=80=99 printed? For example, look: --8<---------------cut here---------------start------------->8--- $ guix pull -p /tmp/g [=E2=80=A6] building profile with 1 package... hint: Consider setting the necessary environment variables by running: GUIX_PROFILE=3D"/tmp/g" . "$GUIX_PROFILE/etc/profile" Alternately, see `guix package --search-paths -p "/tmp/g"'. hint: After setting `PATH', run `hash guix' to make sure your shell refers = to `/tmp/g/bin/guix'. --8<---------------cut here---------------end--------------->8--- The hint is about this very profile, not about ~/.guix-profile. Thanks, Ludo=E2=80=99.