GNU bug report logs - #52891
[PATCH] guix-install.sh: Run guix.sh script in /etc/profile.d last.

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: Konrad Hinsen <konrad.hinsen@HIDDEN>; Keywords: patch; dated Thu, 30 Dec 2021 08:40:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Added indication that bug 52891 blocks53214 Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 52891) by debbugs.gnu.org; 14 Jan 2022 08:27:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 14 03:27:31 2022
Received: from localhost ([127.0.0.1]:35462 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n8Hvm-0006vw-UT
	for submit <at> debbugs.gnu.org; Fri, 14 Jan 2022 03:27:31 -0500
Received: from hera.aquilenet.fr ([185.233.100.1]:53510)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1n8Hvh-0006ve-Sv
 for 52891 <at> debbugs.gnu.org; Fri, 14 Jan 2022 03:27:29 -0500
Received: from localhost (localhost [127.0.0.1])
 by hera.aquilenet.fr (Postfix) with ESMTP id 43AB53D2;
 Fri, 14 Jan 2022 09:27:19 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at aquilenet.fr
Received: from hera.aquilenet.fr ([127.0.0.1])
 by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id oHZTbBtbgy02; Fri, 14 Jan 2022 09:27:18 +0100 (CET)
Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201])
 by hera.aquilenet.fr (Postfix) with ESMTPSA id 3104B23C;
 Fri, 14 Jan 2022 09:27:18 +0100 (CET)
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Konrad Hinsen <konrad.hinsen@HIDDEN>
Subject: Re: bug#52891: [PATCH] guix-install.sh: Run guix.sh script in
 /etc/profile.d last.
References: <m1lf02qyf0.fsf@HIDDEN>
Date: Fri, 14 Jan 2022 09:27:17 +0100
In-Reply-To: <m1lf02qyf0.fsf@HIDDEN> (Konrad Hinsen's message of "Thu,
 30 Dec 2021 09:39:31 +0100")
Message-ID: <875yqm67tm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spamd-Bar: /
Authentication-Results: hera.aquilenet.fr;
	none
X-Rspamd-Server: hera
X-Rspamd-Queue-Id: 43AB53D2
X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[];
 RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[];
 TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[fastmail.net];
 TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain];
 RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[fastmail.net];
 FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+];
 RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[];
 MID_RHS_MATCH_FROM(0.00)[]
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 52891
Cc: 52891 <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: -0.0 (/)

Hi Konrad,

Konrad Hinsen <konrad.hinsen@HIDDEN> skribis:

> * etc/guix-install.sh: Rename /etc/profile.d/guix.sh to zzz-guix.sh.
>
> This script refers to environment variables set by the host distribution.
> They may be set in other scripts in /etc/profile.d, which must therefore
> be run first.
> Example: in Ubuntu 20.04, XDG_DATA_DIRS is set in
> /etc/profile.d/xdg_dirs_desktop_session.sh

[...]

> -    cat <<"EOF" > /etc/profile.d/guix.sh
> +    cat <<"EOF" > /etc/profile.d/zzz-guix.sh

Does anybody have objections, such as distros where this would not work?

Otherwise let=E2=80=99s apply it in time for the upcoming release.

Thanks,
Ludo=E2=80=99.




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

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


Received: (at submit) by debbugs.gnu.org; 30 Dec 2021 08:39:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 30 03:39:48 2021
Received: from localhost ([127.0.0.1]:51360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n2qyN-0006r0-6E
	for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 03:39:48 -0500
Received: from lists.gnu.org ([209.51.188.17]:35518)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <konrad.hinsen@HIDDEN>) id 1n2qyL-0006qq-D8
 for submit <at> debbugs.gnu.org; Thu, 30 Dec 2021 03:39:41 -0500
Received: from eggs.gnu.org ([209.51.188.92]:36180)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <konrad.hinsen@HIDDEN>)
 id 1n2qyJ-0000nd-3i
 for guix-patches@HIDDEN; Thu, 30 Dec 2021 03:39:41 -0500
Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60635)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <konrad.hinsen@HIDDEN>)
 id 1n2qyH-000103-61
 for guix-patches@HIDDEN; Thu, 30 Dec 2021 03:39:38 -0500
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id B1D9F5C0222;
 Thu, 30 Dec 2021 03:39:34 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162])
 by compute3.internal (MEProxy); Thu, 30 Dec 2021 03:39:34 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h=
 from:to:subject:date:message-id:mime-version:content-type; s=
 fm2; bh=NAGpWcwLpO5CHz6QShPB1y3DBG90c9ZhmfQ+6bFh/3o=; b=WH6aTcga
 OA/uvShl10/sFUqfH2eJ228VrlmUwuqb3WccZ7EYmt7kYHsNxImG9gNGElVakUmw
 OJrhzkKA8NLagomRp9olQxQUdijrfZerR49w3mDD6qz35tnbfT9YsyrdpELq8noM
 6j8Txflli2LLPKgXprU3rr02yD62i8FL/C1PxHg9NQ4sg+mMkHQkhMMWJh6lbWVg
 4M7MMz76YS/L/fR1yiKVKW0rewyPW/f8oi27RyhNQSTs6tuzSJh60HvGuTxvTJY2
 KxSlahyKSisZGMkt1cprKO2u4JGcHpQYiATfNviBkRzrObm5iwt59sM38csVTnc5
 VUiCD6ugVJMtfw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:message-id
 :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; bh=NAGpWcwLpO5CHz6QShPB1y3DBG90c
 9ZhmfQ+6bFh/3o=; b=ktE763NQwN2hLqJedfye5EVzvi9LE3KUb1+SiT4yuPX3c
 oa/AiWHB9IfSdtSkxsR0tatYFukWij4g0++06Wu3KeEEboAFuuPs5ka32OhSxQCV
 RHqf8prly6vrxFjYHgvORZk0jeKgJ+v2n8wGHXq1qWBlhzurEPsNPLh65QCoRmCj
 9fWgTQnI9ALI0x0r8n+dwKJUHdKUnsop2UW5HWCxA2rBh/hRHcWKF8L7ZEbYG1mP
 +zqrZKFUHSqD012QMqor3a64zEuuBF+5j1UNxNpkoNoe575PO5hJLocJNHvkai3o
 u1G6KAAsoKaC2uayfKzKttJ4HPgNmjT0toaBYvlOw==
X-ME-Sender: <xms:RnDNYfabCWaYvo8J3hODa5s2vn80e5yjlC2r4HjXUggZInKgW6OMPQ>
 <xme:RnDNYeaH9HYVrL81jnWNUkxsG54Y6zKtL0dKxJtbvnc0QKgSmakoYxUTCzyw5tsQ9
 _-Rq3-pB5NmhjKB>
X-ME-Received: <xmr:RnDNYR_ZngtLWXzpBRWmANz6hKGuGIPXSfnNvhy_86MhMv345QOJuuazZpZR_-hfyEO5NqVJeKKvmVVOD81doF4EkY6a8PNXhg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddvvddguddvhecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd
 dttdenucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhs
 vghnsehfrghsthhmrghilhdrnhgvtheqnecuggftrfgrthhtvghrnhepveefveeutdeitd
 ettefggeehvdduieelkefgheekheduteevheegueetueevjeehnecuvehluhhsthgvrhfu
 ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhnshgvnh
 esfhgrshhtmhgrihhlrdhnvght
X-ME-Proxy: <xmx:RnDNYVq4K_n8SDIANmnagDAlGOyDkRzWh3MZGeJi7nKfi8aSqnOJwQ>
 <xmx:RnDNYaoeepoc0310DH8Y9pEP_ZxSOMWjbGz2ZVDfmoS-vSfQHEMSCA>
 <xmx:RnDNYbRmKq_am6zaD77J-j6ZtuVub1ZyMQ7qk4huUNX4kyO8ObBvDg>
 <xmx:RnDNYRRbHPMndBCTCDnXC8R7RyaoiaIR1o-Yse-76MbEBj9fpKJ4rQ>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 30 Dec 2021 03:39:33 -0500 (EST)
From: Konrad Hinsen <konrad.hinsen@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] guix-install.sh: Run guix.sh script in /etc/profile.d last.
Date: Thu, 30 Dec 2021 09:39:31 +0100
Message-ID: <m1lf02qyf0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=66.111.4.29;
 envelope-from=konrad.hinsen@HIDDEN; helo=out5-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.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.7 (--)

* etc/guix-install.sh: Rename /etc/profile.d/guix.sh to zzz-guix.sh.

This script refers to environment variables set by the host distribution.
They may be set in other scripts in /etc/profile.d, which must therefore
be run first.
Example: in Ubuntu 20.04, XDG_DATA_DIRS is set in
/etc/profile.d/xdg_dirs_desktop_session.sh
---
 etc/guix-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index cd1a1c34c1..00a9fc5377 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -503,7 +503,7 @@ sys_create_init_profile()
 { # Define for better desktop integration
   # This will not take effect until the next shell or desktop session!
     [ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
-    cat <<"EOF" > /etc/profile.d/guix.sh
+    cat <<"EOF" > /etc/profile.d/zzz-guix.sh
 # _GUIX_PROFILE: `guix pull` profile
 _GUIX_PROFILE="$HOME/.config/guix/current"
 export PATH="$_GUIX_PROFILE/bin${PATH:+:}$PATH"
-- 
2.34.0





Acknowledgement sent to Konrad Hinsen <konrad.hinsen@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#52891; 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: Fri, 14 Jan 2022 08:30:02 UTC

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