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>; dated Thu, 20 Jun 2019 16:18:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

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: Mon, 15 Jul 2019 11:45:01 UTC

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