GNU bug report logs - #36311
doc: Add subsection and note about environment variables.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: swedebugia <swedebugia@HIDDEN>; Keywords: moreinfo; dated Thu, 20 Jun 2019 16:18:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 36311 <at> debbugs.gnu.org:


Received: (at 36311) by debbugs.gnu.org; 2 Sep 2023 03:02:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 01 23:02:33 2023
Received: from localhost ([127.0.0.1]:34648 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qcGu9-0005r6-79
	for submit <at> debbugs.gnu.org; Fri, 01 Sep 2023 23:02:33 -0400
Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]:42203)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1qcGu7-0005qt-Gv
 for 36311 <at> debbugs.gnu.org; Fri, 01 Sep 2023 23:02:32 -0400
Received: by mail-qv1-xf34.google.com with SMTP id
 6a1803df08f44-649edb3a3d6so2975726d6.0
 for <36311 <at> debbugs.gnu.org>; Fri, 01 Sep 2023 20:02:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693623736; x=1694228536; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=kqmsbfjHBtypdLgn3hxkj3YWBc4sKdoH5ec5+Ep6t+g=;
 b=rHkhl18VgfoXNpUhXkoZPi313gZ4ErJBOAj3dB97sDOoRkU6d3UhqKP22EaBAnZSe8
 XUAE5OqupaG9ibmz7SdYLNUW3QGPmfr1x0vGiqpOauQGtSkUWIGefmQh+xJQXdYtPgZJ
 SxUi1p3EzQloliCcSi6Z69jqddaYvN/OWI18ss037CDPWKHWjdY44irKjsgn+MTZTbCa
 jFhVBgH7ncSFA1jvfuiD/2JHsSu6BgYueCPkb7ioeZfLJJVeFb2R9FXEQ+1GndGvaNG/
 3j4xoMbmxpt+RrWLVb9Y4gvHHvk29ygkKdl3pjv8kludAtjVeWm9Rzhg18qoozrNp6Ha
 C8nw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693623736; x=1694228536;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=kqmsbfjHBtypdLgn3hxkj3YWBc4sKdoH5ec5+Ep6t+g=;
 b=T2sydVfYrj0l4gVPGu7ST28e6N0Muq0jpJAKSB+ClHZ12x1GUq0qwjl6x4NBAZpJgo
 M4KCYYJK31P7InMILy+BHIsdb+Ug6KdU6KNA9vwunBK3Mof7Onv0Rs/XjGhhRvxuBYt/
 KjTM59i1xmghl5UtoqsU2GFjpOuGomI37K6noOFRyoNPpq3e3Etz7XGf8IxnSVsrxW3Z
 vr4/sDkwhrHFu4d9Nyh4QQRCmV7b9+8P8bnNt1fF7R+CNZW0xao2nKceGS84voGkhAnl
 MLBZVt1Q4jaUFjQJRy+XA7/qcSSwBekX1FNth9OmPUU+qgeqo9Vh5/vxILucWWeRx6p/
 6cNA==
X-Gm-Message-State: AOJu0Yy9uDJaQqeKTWlwFvnUspP1N1WoEFX+pccSdFUVO5osXnCqasdV
 3yWikOofooKDYKd5TrHBJmbISoM12JVTlQ==
X-Google-Smtp-Source: AGHT+IHDB6NOoOK5M1b+4Xq9h8d3g+SNAZpNUap/UFoB/Z2YT8aKi+sNDU5mHmvL7vemjMh4GBOBcA==
X-Received: by 2002:a05:6214:e6f:b0:653:5c69:e984 with SMTP id
 jz15-20020a0562140e6f00b006535c69e984mr5049618qvb.29.1693623736268; 
 Fri, 01 Sep 2023 20:02:16 -0700 (PDT)
Received: from hurd (dsl-154-228.b2b2c.ca. [66.158.154.228])
 by smtp.gmail.com with ESMTPSA id
 k16-20020a0cb250000000b006490a9946b6sm1890448qve.119.2023.09.01.20.02.15
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 01 Sep 2023 20:02:15 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: swedebugia <swedebugia@HIDDEN>
Subject: Re: bug#36311: doc: Add subsection and note about environment
 variables.
References: <d564fea7-f3a5-3798-c186-a66c4c23f7a1@HIDDEN>
Date: Fri, 01 Sep 2023 23:02:14 -0400
In-Reply-To: <d564fea7-f3a5-3798-c186-a66c4c23f7a1@HIDDEN>
 (swedebugia@HIDDEN's message of "Thu, 20 Jun 2019 18:13:55 +0200")
Message-ID: <8734zx1dmx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36311
Cc: Nicolas Goaziou <mail@HIDDEN>, 36311 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

swedebugia <swedebugia@HIDDEN> writes:

> -- 
> Cheers Swedebugia
>
>>From f7507682af3b4072596e36321b5ec240e7ab3a10 Mon Sep 17 00:00:00 2001
> From: swedebugia <swedebugia@HIDDEN>
> Date: Thu, 20 Jun 2019 18:02:16 +0200
> Subject: [PATCH] doc: Add subsection and note about environment variables.
>
> * doc/guix.texi (Binary Installation and Application Setup): Clarify the
>   importance of correct environment variables.

[...]

> +@subsection Importance of environment variables
> +@cindex environment variables
> +Environment variables in the correct place are essential to the correct
> +operation of guix in a foreign system.
> +
> +Following the installation we recommend putting all environment variables into
> + @file{~.bash_profile} to make sure they are only executed when your login to
> + a shell (ie. open up a virtual terminal).
> +
> +If you use bash and put them into @file{.bashrc} you will end up with errors
> +because this file is executed by bash EVERY time a new environment is entered
> +(e.g. when entering a pure environment with @command{guix environment guix
> +--pure} and contaminate the environment).

I think this is maybe no longer as necessary, since we now have 'guix
shell --check' that will produce this kind of recommendation?

-- 
Thanks,
Maxim




Information forwarded to guix-patches@HIDDEN:
bug#36311; Package guix-patches. Full text available.

Message received at 36311 <at> debbugs.gnu.org:


Received: (at 36311) by debbugs.gnu.org; 15 Jul 2019 14:23:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 15 10:23:13 2019
Received: from localhost ([127.0.0.1]:48662 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hn1sn-0000Qw-9M
	for submit <at> debbugs.gnu.org; Mon, 15 Jul 2019 10:23:13 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:55749)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1hn1sk-0000Qk-Lw
 for 36311 <at> debbugs.gnu.org; Mon, 15 Jul 2019 10:23:11 -0400
X-Originating-IP: 185.131.40.67
Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67])
 (Authenticated sender: admin@HIDDEN)
 by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id CD06220012;
 Mon, 15 Jul 2019 14:22:05 +0000 (UTC)
From: Nicolas Goaziou <mail@HIDDEN>
To: swedebugia <swedebugia@HIDDEN>
Subject: Re: [bug#36311] doc: Add subsection and note about environment
 variables.
References: <d564fea7-f3a5-3798-c186-a66c4c23f7a1@HIDDEN>
 <46ddf909-ff9f-4d40-b229-e594bf06eeaf@HIDDEN>
 <87wogjmt3a.fsf@HIDDEN>
Date: Mon, 15 Jul 2019 16:22:04 +0200
In-Reply-To: <87wogjmt3a.fsf@HIDDEN> (Nicolas Goaziou's message of
 "Mon, 15 Jul 2019 13:32:09 +0200")
Message-ID: <87o91vml83.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36311
Cc: 36311 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Correcting myself,

Nicolas Goaziou <mail@HIDDEN> writes:

> See (info "Not Ending a Sentence") for more information.

I meant (info "(texinfo)Not Ending a Sentence")
>
> Also, according to (info "@command")

and (info "(texinfo)@command")




Information forwarded to guix-patches@HIDDEN:
bug#36311; Package guix-patches. Full text available.

Message received at 36311 <at> debbugs.gnu.org:


Received: (at 36311) by debbugs.gnu.org; 15 Jul 2019 11:32:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 15 07:32:42 2019
Received: from localhost ([127.0.0.1]:46703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hmzDk-00087o-Oy
	for submit <at> debbugs.gnu.org; Mon, 15 Jul 2019 07:32:42 -0400
Received: from relay11.mail.gandi.net ([217.70.178.231]:40817)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1hmzDh-00083M-MU
 for 36311 <at> debbugs.gnu.org; Mon, 15 Jul 2019 07:32:38 -0400
Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67])
 (Authenticated sender: admin@HIDDEN)
 by relay11.mail.gandi.net (Postfix) with ESMTPSA id E54F010000B;
 Mon, 15 Jul 2019 11:32:11 +0000 (UTC)
From: Nicolas Goaziou <mail@HIDDEN>
To: swedebugia <swedebugia@HIDDEN>
Subject: Re: [bug#36311] doc: Add subsection and note about environment
 variables.
References: <d564fea7-f3a5-3798-c186-a66c4c23f7a1@HIDDEN>
 <46ddf909-ff9f-4d40-b229-e594bf06eeaf@HIDDEN>
Date: Mon, 15 Jul 2019 13:32:09 +0200
In-Reply-To: <46ddf909-ff9f-4d40-b229-e594bf06eeaf@HIDDEN>
 (swedebugia@HIDDEN's message of "Mon, 15 Jul 2019 13:01:56 +0200")
Message-ID: <87wogjmt3a.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36311
Cc: 36311 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hello,

swedebugia <swedebugia@HIDDEN> writes:

>> +Following the installation we recommend putting all environment variabl=
es into
>> + @file{~.bash_profile} to make sure they are only executed when your lo=
gin to
>> + a shell (ie. open up a virtual terminal).

I think @file{~/.bash_profile} is clearer.

Also "ie. open up=E2=80=A6" -> "i.e., open up=E2=80=A6" or "i.e.@: open up=
=E2=80=A6"

>> +If you use bash and put them into @file{.bashrc} you will end up with e=
rrors
>> +because this file is executed by bash EVERY time a new environment is e=
ntered

Maybe @emph{every}, since emphasizing with capitals is typographically
suboptimal.

>> +(e.g. when entering a pure environment with @command{guix environment g=
uix
>> +--pure} and contaminate the environment).

"e.g. when" -> "e.g., when" or "e.g.@: when".=20

See (info "Not Ending a Sentence") for more information.

Also, according to (info "@command"), it shoud be either @samp or @code.
After a cursory look, "guix.texi" seems to use "@code" for entire shell
command invocations.

HTH,

--=20
Nicolas Goaziou




Information forwarded to guix-patches@HIDDEN:
bug#36311; Package guix-patches. Full text available.

Message received at 36311 <at> debbugs.gnu.org:


Received: (at 36311) by debbugs.gnu.org; 15 Jul 2019 11:02:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 15 07:02:02 2019
Received: from localhost ([127.0.0.1]:46598 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hmyk5-0002LT-W2
	for submit <at> debbugs.gnu.org; Mon, 15 Jul 2019 07:02:02 -0400
Received: from mx1.riseup.net ([198.252.153.129]:33416)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <swedebugia@HIDDEN>) id 1hmyk3-0002JQ-S1
 for 36311 <at> debbugs.gnu.org; Mon, 15 Jul 2019 07:02:00 -0400
Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net",
 Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
 by mx1.riseup.net (Postfix) with ESMTPS id 5E59B1B942E
 for <36311 <at> debbugs.gnu.org>; Mon, 15 Jul 2019 04:01:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1563188519; bh=K5B5slJ99JbFiwpmCLtr9RIsrGiHSHDPU16KTz/fs98=;
 h=Subject:From:To:References:Date:In-Reply-To:From;
 b=C5U8TrERLmSFhglv42YLFCRcPwVUVRazchp8nMBGWzKf8nsyeCXMl+Kp8F13JQ13a
 D7EQfCxS+73B2LlyMuFs6/m5YjPSy1UbrxvU+/+wwgfZIZRK86T5sAjD8TfJ1/Dbut
 E2N+q4JO3UBE4P/jMuSyGuv2ce9ljyDk/syOTlms=
X-Riseup-User-ID: 265CA7D301EF71D4235D1FFCEC09B34323816D5A4CFECE079A4B3B918A24F4F5
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by capuchin.riseup.net (Postfix) with ESMTPSA id 8CC64120323
 for <36311 <at> debbugs.gnu.org>; Mon, 15 Jul 2019 04:01:58 -0700 (PDT)
Subject: Re: [bug#36311] doc: Add subsection and note about environment
 variables.
From: swedebugia <swedebugia@HIDDEN>
To: 36311 <at> debbugs.gnu.org
References: <d564fea7-f3a5-3798-c186-a66c4c23f7a1@HIDDEN>
Message-ID: <46ddf909-ff9f-4d40-b229-e594bf06eeaf@HIDDEN>
Date: Mon, 15 Jul 2019 13:01:56 +0200
MIME-Version: 1.0
In-Reply-To: <d564fea7-f3a5-3798-c186-a66c4c23f7a1@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36311
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 2019-06-20 18:13, swedebugia wrote:
> 
> -- 
> Cheers Swedebugia
> 
> 0001-doc-Add-subsection-and-note-about-environment-variab.patch
> 
>  From f7507682af3b4072596e36321b5ec240e7ab3a10 Mon Sep 17 00:00:00 2001
> From: swedebugia<swedebugia@HIDDEN>
> Date: Thu, 20 Jun 2019 18:02:16 +0200
> Subject: [PATCH] doc: Add subsection and note about environment variables.
> 
> * doc/guix.texi (Binary Installation and Application Setup): Clarify the
>    importance of correct environment variables.
> ---
>   doc/guix.texi | 18 +++++++++++++++++-
>   1 file changed, 17 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/guix.texi b/doc/guix.texi
> index 65c3b8a7f..470157669 100644
> --- a/doc/guix.texi
> +++ b/doc/guix.texi
> @@ -601,7 +601,9 @@ where @command{guix pull} will install updates (@pxref{Invoking guix pull}):
>            ~root/.config/guix/current
>   @end example
>   
> -Source @file{etc/profile} to augment @code{PATH} and other relevant
> +@c This is explained further in @node Application Setup - Importance of
> +@c environment variables
> +Source @file{etc/profile} from @file{~.bash_profile} to augment @code{PATH} and other relevant
>   environment variables:
>   
>   @example
> @@ -1575,6 +1577,20 @@ When using Guix on top of GNU/Linux distribution other than Guix System---a
>   so-called @dfn{foreign distro}---a few additional steps are needed to
>   get everything in place.  Here are some of them.
>   
> +@subsection Importance of environment variables
> +@cindex environment variables
> +Environment variables in the correct place are essential to the correct
> +operation of guix in a foreign system.
> +
> +Following the installation we recommend putting all environment variables into
> + @file{~.bash_profile} to make sure they are only executed when your login to
> + a shell (ie. open up a virtual terminal).
> +
> +If you use bash and put them into @file{.bashrc} you will end up with errors
> +because this file is executed by bash EVERY time a new environment is entered
> +(e.g. when entering a pure environment with @command{guix environment guix
> +--pure} and contaminate the environment).
> +
>   @subsection Locales
>   
>   @anchor{locales-and-locpath}
> -- 2.19.2

Anyone up for reviewing?

-- 
Cheers
Swedebugia




Information forwarded to guix-patches@HIDDEN:
bug#36311; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Jun 2019 16:17:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 12:17:29 2019
Received: from localhost ([127.0.0.1]:49175 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hdzke-0003uE-RQ
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 12:17:29 -0400
Received: from lists.gnu.org ([209.51.188.17]:41808)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <swedebugia@HIDDEN>) id 1hdzkb-0003u5-QH
 for submit <at> debbugs.gnu.org; Thu, 20 Jun 2019 12:17:27 -0400
Received: from eggs.gnu.org ([209.51.188.92]:36566)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <swedebugia@HIDDEN>) id 1hdzka-0002An-Bn
 for guix-patches@HIDDEN; Thu, 20 Jun 2019 12:17:25 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <swedebugia@HIDDEN>) id 1hdzhI-0001qa-IN
 for guix-patches@HIDDEN; Thu, 20 Jun 2019 12:14:01 -0400
Received: from mx1.riseup.net ([198.252.153.129]:48652)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <swedebugia@HIDDEN>)
 id 1hdzhI-0001pK-5A
 for guix-patches@HIDDEN; Thu, 20 Jun 2019 12:14:00 -0400
Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*.riseup.net",
 Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK))
 by mx1.riseup.net (Postfix) with ESMTPS id 212E01A30E3
 for <guix-patches@HIDDEN>; Thu, 20 Jun 2019 09:13:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1561047239; bh=EF04leGQ2wA9aBYZa6UuarZum414+9cmA1Gb8Qf09LU=;
 h=To:From:Subject:Date:From;
 b=ZAPqV4v2tLf0gZsnEOTgpe3C7+E8wcLqKOsDo8KzrCtkhTOQp6patPjRcXsfky1Pw
 NDDaq+c52oBOqwqkDKCodXVrG1YQP0rEjSF9zhHTw28VexrOYj3TJYmLgvk/JhlQsh
 QhEP10bKghDL0cL3NpBj8av3mcC1gt6bvjJZ2IPA=
X-Riseup-User-ID: 2BFEBBACCF016E86B45878DD00CCF6C83B5FE4E4439BD5F0B2771FD27EC26454
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by capuchin.riseup.net (Postfix) with ESMTPSA id 7C06B120984
 for <guix-patches@HIDDEN>; Thu, 20 Jun 2019 09:13:58 -0700 (PDT)
To: guix-patches@HIDDEN
From: swedebugia <swedebugia@HIDDEN>
Subject: doc: Add subsection and note about environment variables.
Message-ID: <d564fea7-f3a5-3798-c186-a66c4c23f7a1@HIDDEN>
Date: Thu, 20 Jun 2019 18:13:55 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------C442C8E472733CB3F7CDE324"
Content-Language: en-US
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 198.252.153.129
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

This is a multi-part message in MIME format.
--------------C442C8E472733CB3F7CDE324
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit


-- 
Cheers Swedebugia

--------------C442C8E472733CB3F7CDE324
Content-Type: text/x-patch;
 name="0001-doc-Add-subsection-and-note-about-environment-variab.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename*0="0001-doc-Add-subsection-and-note-about-environment-variab.pa";
 filename*1="tch"

From f7507682af3b4072596e36321b5ec240e7ab3a10 Mon Sep 17 00:00:00 2001
From: swedebugia <swedebugia@HIDDEN>
Date: Thu, 20 Jun 2019 18:02:16 +0200
Subject: [PATCH] doc: Add subsection and note about environment variables.

* doc/guix.texi (Binary Installation and Application Setup): Clarify the
  importance of correct environment variables.
---
 doc/guix.texi | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 65c3b8a7f..470157669 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -601,7 +601,9 @@ where @command{guix pull} will install updates (@pxref{Invoking guix pull}):
          ~root/.config/guix/current
 @end example
 
-Source @file{etc/profile} to augment @code{PATH} and other relevant
+@c This is explained further in @node Application Setup - Importance of
+@c environment variables
+Source @file{etc/profile} from @file{~.bash_profile} to augment @code{PATH} and other relevant
 environment variables:
 
 @example
@@ -1575,6 +1577,20 @@ When using Guix on top of GNU/Linux distribution other than Guix System---a
 so-called @dfn{foreign distro}---a few additional steps are needed to
 get everything in place.  Here are some of them.
 
+@subsection Importance of environment variables
+@cindex environment variables
+Environment variables in the correct place are essential to the correct
+operation of guix in a foreign system.
+
+Following the installation we recommend putting all environment variables into
+ @file{~.bash_profile} to make sure they are only executed when your login to
+ a shell (ie. open up a virtual terminal).
+
+If you use bash and put them into @file{.bashrc} you will end up with errors
+because this file is executed by bash EVERY time a new environment is entered
+(e.g. when entering a pure environment with @command{guix environment guix
+--pure} and contaminate the environment).
+
 @subsection Locales
 
 @anchor{locales-and-locpath}
-- 
2.19.2


--------------C442C8E472733CB3F7CDE324--




Acknowledgement sent to swedebugia <swedebugia@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#36311; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 2 Sep 2023 03:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.