GNU logs - #75817, boring messages


Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#75817] [PATCH] profiles: emacs-subdirs: Avoid building list with a loop
Resent-From: Thiago Jung Bauermann <bauermann@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Fri, 24 Jan 2025 23:04:02 +0000
Resent-Message-ID: <handler.75817.B.17377597812124 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 75817
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 75817 <at> debbugs.gnu.org
Cc: Liliana Marie Prikler <liliana.prikler@HIDDEN>, Thiago Jung Bauermann <bauermann@HIDDEN>
X-Debbugs-Original-To: guix-patches@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17377597812124
          (code B ref -1); Fri, 24 Jan 2025 23:04:02 +0000
Received: (at submit) by debbugs.gnu.org; 24 Jan 2025 23:03:01 +0000
Received: from localhost ([127.0.0.1]:47423 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbShY-0000Y7-VA
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:03:01 -0500
Received: from lists.gnu.org ([2001:470:142::17]:49468)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bauermann@HIDDEN>)
 id 1tbShV-0000Xn-Ev
 for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:02:59 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bauermann@HIDDEN>)
 id 1tbShQ-0005J6-03
 for guix-patches@HIDDEN; Fri, 24 Jan 2025 18:02:52 -0500
Received: from mx.kolabnow.com ([212.103.80.155])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <bauermann@HIDDEN>)
 id 1tbShN-0006uC-VA
 for guix-patches@HIDDEN; Fri, 24 Jan 2025 18:02:51 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 36D653004C73;
 Sat, 25 Jan 2025 00:02:46 +0100 (CET)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:subject:subject:from:from:received
 :received:received; s=dkim20240523; t=1737759765; x=1739574166;
 bh=G0dZc/oX2tw2kdVJkdIVXi1N0z9EjOQGObgczEeq084=; b=bGO7SUSqF5vo
 8UGqjwiivqcMc6PescH8ni1PNJJFA2ktUIrEIupSO1x4LkHx+JKQB7B7V0pWPSY+
 ykg2dJQ6hxPYs/QQW75YQdJ0lC/AQB6K2TChr1CwUVpnleNeDGZMBTlferXt8wxd
 Y5u06jJR/U68EfpIr7eWgJYSEpaqndA5Z1JWYAYc8dYfobQxNWBo+MaTqqgkMKlI
 foNKO/ajdr+tziE30h9+RTvFGZL7wZNMy/X4HmAPIzcJY9gIunhjcJ3Jr5AerPJ7
 Y+eMuRuo+wbdZj7MNqNPNCHm2+z0ahsC0W4Bx7razPDeYRpsuArsHJsdssaifNpV
 gZvb3/VvFg==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id fgFZPeqh-ki2; Sat, 25 Jan 2025 00:02:45 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id F01353004C72;
 Sat, 25 Jan 2025 00:02:43 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 9D63231604F4;
 Sat, 25 Jan 2025 00:02:43 +0100 (CET)
From: Thiago Jung Bauermann <bauermann@HIDDEN>
Date: Fri, 24 Jan 2025 20:01:35 -0300
Message-ID: <20250124230226.107387-1-bauermann@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=212.103.80.155;
 envelope-from=bauermann@HIDDEN; helo=mx.kolabnow.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
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 (-)

If the EMACSNATIVELOADPATH environment variable (by mistake) has duplicated
paths, Emacs fails to load with:

  $ emacs
  List contains a loop:
  ("/home/user/.guix-profile/lib/emacs/native-site-lisp"
   "/gnu/store/…-emacs-lsp-mode-9.0.0/lib/emacs/native-site-lisp"
   "/home/user/.guix-profile/lib/emacs/native-site-lisp"
   "/home/user/.guix-profile/lib/emacs/native-site-lisp"
   "/gnu/store/…-emacs-lsp-mode-9.0.0/lib/emacs/native-site-lisp" . #2)
  $ echo $?
  255

A git bisect in Guix to find when the problem was introduced arrived at
commit e9b13294700d ("profiles: emacs-subdirs: Also expand
native-comp-eln-load-path.").

Fix the problem by applying Liliana's suggestion of changing 'nconc' to
'append' in the Elisp code written to subdirs.el.

* guix/profiles.scm (emacs-subdirs): Use 'append' rather than 'nconc'.

Change-Id: If646b806f24666b5247850d30d2819c7482c130b
Fixes: <https://issues.guix.gnu.org/75709>
Suggested-by: Liliana Marie Prikler <liliana.prikler@HIDDEN>
---
 guix/profiles.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/profiles.scm b/guix/profiles.scm
index 87b9543ac01f..63b2a08a48d4 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1230,8 +1230,8 @@ (define build
                         (setq native-comp-eln-load-path
                               (mapcan (lambda (dir)
                                         (if (equal dir needle)
-                                            (nconc ',native-comp-dirs
-                                                   (list dir))
+                                            (append ',native-comp-dirs
+                                                    (list dir))
                                             (list dir)))
                                       native-comp-eln-load-path))))
                    port)




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Thiago Jung Bauermann <bauermann@HIDDEN>
Subject: bug#75817: Acknowledgement ([PATCH] profiles: emacs-subdirs:
 Avoid building list with a loop)
Message-ID: <handler.75817.B.17377597812124.ack <at> debbugs.gnu.org>
References: <20250124230226.107387-1-bauermann@HIDDEN>
X-Gnu-PR-Message: ack 75817
X-Gnu-PR-Package: guix-patches
X-Gnu-PR-Keywords: patch
Reply-To: 75817 <at> debbugs.gnu.org
Date: Fri, 24 Jan 2025 23:04:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 guix-patches@HIDDEN

If you wish to submit further information on this problem, please
send it to 75817 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
75817: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75817
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#75817] [PATCH] profiles: emacs-subdirs: Avoid building list with a loop
Resent-From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Sat, 25 Jan 2025 00:31:01 +0000
Resent-Message-ID: <handler.75817.B75817.17377650486119 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 75817
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Thiago Jung Bauermann <bauermann@HIDDEN>, 75817 <at> debbugs.gnu.org
Received: via spool by 75817-submit <at> debbugs.gnu.org id=B75817.17377650486119
          (code B ref 75817); Sat, 25 Jan 2025 00:31:01 +0000
Received: (at 75817) by debbugs.gnu.org; 25 Jan 2025 00:30:48 +0000
Received: from localhost ([127.0.0.1]:47781 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbU4V-0001Zv-RH
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 19:30:48 -0500
Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:56726)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <liliana.prikler@HIDDEN>)
 id 1tbU4T-0001HE-3x
 for 75817 <at> debbugs.gnu.org; Fri, 24 Jan 2025 19:30:45 -0500
Received: by mail-wm1-x342.google.com with SMTP id
 5b1f17b1804b1-4361f65ca01so27494005e9.1
 for <75817 <at> debbugs.gnu.org>; Fri, 24 Jan 2025 16:30:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737765039; x=1738369839; darn=debbugs.gnu.org;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=K0fCMEjqqCPCpjiCRPqGiKDdPlo9Wab2Fg/FCH65sxY=;
 b=j41gBxbPv2vupoXBhD3U07YMTJdOXZBRVuL/3plIQo9Ez9qxorBqcoqcOfsFAiLwGc
 finSbt3fUSOcXoN9TtSCHypOes9iUzyXcc8zgn2P5qJISbGR59ZtbPdb6HLiZWS6iOne
 VFqC+XO25b8g4afNK1nw3lhLIg3qX1jL/K/C5LYxIr02erDoHcfOcszifBgVPdQH2oWA
 TptMxwKXkyDT986Ow7UCUSS/wKUWw8znIyE54QH8kmBg+1dAhJ4ZidkYMoYQpt1LFZgc
 j1u2rbdiTykedFHxO+5LX6U7JCMedMFFOfzatzWkcJvAe3A2mxQnqPaFWm00cLciW9PO
 oTWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737765039; x=1738369839;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=K0fCMEjqqCPCpjiCRPqGiKDdPlo9Wab2Fg/FCH65sxY=;
 b=MLPDVD0d+vAQMkuI9c832/SZJetCwa19MceyGsL2Myd/U+bHgC91OlwMtSlUwaDWRE
 nR5BK+c+fG4o2B+1SarKQ8QuChFW5dHAn312Z6wl4lIZrhBPCW9OW50S7Xpj57jT3OMd
 sE/yLyHYX4XLS4jY/QAGCk6gFHOaVPxEcKcE+/mlfjagN6VVwTAYWUI4AkIRdlgN19nz
 vxJk21rq8qVLnSNmcysD1AO0z0dusCsATET+E3+wr3tCPBEN1FkYlPZ0q6sx95l1CW52
 o1zULzc/Le7lB1ucLDfJMXsMJ8TuVS+DQ+FymDJjags8Bv+4mli1lFVTJbDkSZBRk8j7
 smyA==
X-Forwarded-Encrypted: i=1;
 AJvYcCVMa74zphDHVN4jP+19y+Gw+iVRTOAgWNhRfxHHKbjmIH85jqmj5vXVH2XWEnhbvPk6Xp+Lxg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yxpqe4SekCsQpx4oOfWK5zuq9ETQcXW+LSj2DTqvk7pv9VQ5cN+
 r4V2R0pgFlwY7SKzAakK7wnSwUerYkPbb1np0wfyC+Lc8v2NFrjy
X-Gm-Gg: ASbGnctCgikJLhd+S/mN5kWsy9+narNel5UFrj36YvI+KAIOnaNybxpQRgQjibrg+w5
 OM/oOqiuxDklzbBxDb/lRbct2ecSVjEcIBWKfpka0CUeN493s0bMIiYYlkG8yQjB7gyXOKgAO3P
 DBSmktrat92k+909VKsj9nghHOK6CeUygBdxaiLHWGVSrZEj4BxK1TOWdhpFFO22RNR0kV6jzqG
 UqqR1P6CSwPUZB/vGIEdCVGdqVRCC894Zj6MJ+ESDByWW0C4RWHBlnQ721lezYg2Zx3hW7WR6pv
 Pu3q4Bp8NF22l2Ggvykgdsp/heAJYHOrsLu+/XipHygJzVELWsNmBvmh
X-Google-Smtp-Source: AGHT+IG9w9tazeboJAjLEC0llYYmphsNQPOpGBv+/HMDBWtdRroQpknjzFn83Q+rWbq/JmVnMvuffQ==
X-Received: by 2002:a05:600c:1c16:b0:435:32e:8270 with SMTP id
 5b1f17b1804b1-438913de562mr310776355e9.14.1737765038461; 
 Fri, 24 Jan 2025 16:30:38 -0800 (PST)
Received: from lumine.fritz.box (85-127-114-32.dsl.dynamic.surfer.at.
 [85.127.114.32]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-438bd54bfa5sm42348145e9.25.2025.01.24.16.30.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 24 Jan 2025 16:30:37 -0800 (PST)
Message-ID: <bf38579037ec2abaddcc2ffe60b1aa3377d6415c.camel@HIDDEN>
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Date: Sat, 25 Jan 2025 01:30:45 +0100
In-Reply-To: <20250124230226.107387-1-bauermann@HIDDEN>
References: <20250124230226.107387-1-bauermann@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
User-Agent: Evolution 3.48.4 
MIME-Version: 1.0
X-Spam-Score: -0.0 (/)
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 (-)

QW0gRnJlaXRhZywgZGVtIDI0LjAxLjIwMjUgdW0gMjA6MDEgLTAzMDAgc2NocmllYiBUaGlhZ28g
SnVuZwpCYXVlcm1hbm46Cj4gSWYgdGhlIEVNQUNTTkFUSVZFTE9BRFBBVEggZW52aXJvbm1lbnQg
dmFyaWFibGUgKGJ5IG1pc3Rha2UpIGhhcwo+IGR1cGxpY2F0ZWQgcGF0aHMsIEVtYWNzIGZhaWxz
IHRvIGxvYWQgd2l0aDoKPiAKPiDCoCAkIGVtYWNzCj4gwqAgTGlzdCBjb250YWlucyBhIGxvb3A6
Cj4gwqAgKCIvaG9tZS91c2VyLy5ndWl4LXByb2ZpbGUvbGliL2VtYWNzL25hdGl2ZS1zaXRlLWxp
c3AiCj4gwqDCoCAiL2dudS9zdG9yZS/igKYtZW1hY3MtbHNwLW1vZGUtOS4wLjAvbGliL2VtYWNz
L25hdGl2ZS1zaXRlLWxpc3AiCj4gwqDCoCAiL2hvbWUvdXNlci8uZ3VpeC1wcm9maWxlL2xpYi9l
bWFjcy9uYXRpdmUtc2l0ZS1saXNwIgo+IMKgwqAgIi9ob21lL3VzZXIvLmd1aXgtcHJvZmlsZS9s
aWIvZW1hY3MvbmF0aXZlLXNpdGUtbGlzcCIKPiDCoMKgICIvZ251L3N0b3JlL+KApi1lbWFjcy1s
c3AtbW9kZS05LjAuMC9saWIvZW1hY3MvbmF0aXZlLXNpdGUtbGlzcCIgLgo+ICMyKQo+IMKgICQg
ZWNobyAkPwo+IMKgIDI1NQo+IAo+IEEgZ2l0IGJpc2VjdCBpbiBHdWl4IHRvIGZpbmQgd2hlbiB0
aGUgcHJvYmxlbSB3YXMgaW50cm9kdWNlZCBhcnJpdmVkCj4gYXQgY29tbWl0IGU5YjEzMjk0NzAw
ZCAoInByb2ZpbGVzOiBlbWFjcy1zdWJkaXJzOiBBbHNvIGV4cGFuZAo+IG5hdGl2ZS1jb21wLWVs
bi1sb2FkLXBhdGguIikuCj4gCj4gRml4IHRoZSBwcm9ibGVtIGJ5IGFwcGx5aW5nIExpbGlhbmEn
cyBzdWdnZXN0aW9uIG9mIGNoYW5naW5nICduY29uYycKPiB0byAnYXBwZW5kJyBpbiB0aGUgRWxp
c3AgY29kZSB3cml0dGVuIHRvIHN1YmRpcnMuZWwuCkl0J3MgYmV0dGVyIHRvIGRlc2NyaWJlIHRo
ZSBidWcgaW4gY29kZSBzbyB0aGF0IGZvbGtzIHdvbid0IHN0dW1ibGUKb3ZlciBpdCBhZ2Fpbi4g
IEUuZy4gIk5vdGU6IG5lZWRsZSBtYXkgYmUgZm91bmQgbXVsdGlwbGUgdGltZXMsIHNvCmRvbid0
IHVzZSBkZXN0cnVjdGl2ZSBwcm9jZWR1cmVzIGxpa2UgbmNvbmMuIgo+ICogZ3VpeC9wcm9maWxl
cy5zY20gKGVtYWNzLXN1YmRpcnMpOiBVc2UgJ2FwcGVuZCcgcmF0aGVyIHRoYW4KPiAnbmNvbmMn
Lgo+IAo+IENoYW5nZS1JZDogSWY2NDZiODA2ZjI0NjY2YjUyNDc4NTBkMzBkMjgxOWM3NDgyYzEz
MGIKPiBGaXhlczogPGh0dHBzOi8vaXNzdWVzLmd1aXguZ251Lm9yZy83NTcwOT4KWW91IGhhdmUg
c29tZSBob3Jpem9udGFsIHNwYWNlIGhlcmUgdG8gbmFtZSB0aGUgYnVnIDopCj4gU3VnZ2VzdGVk
LWJ5OiBMaWxpYW5hIE1hcmllIFByaWtsZXIgPGxpbGlhbmEucHJpa2xlckBnbWFpbC5jb20+Cj4g
LS0tCj4gwqBndWl4L3Byb2ZpbGVzLnNjbSB8IDQgKystLQo+IMKgMSBmaWxlIGNoYW5nZWQsIDIg
aW5zZXJ0aW9ucygrKSwgMiBkZWxldGlvbnMoLSkKPiAKPiBkaWZmIC0tZ2l0IGEvZ3VpeC9wcm9m
aWxlcy5zY20gYi9ndWl4L3Byb2ZpbGVzLnNjbQo+IGluZGV4IDg3Yjk1NDNhYzAxZi4uNjNiMmEw
OGE0OGQ0IDEwMDY0NAo+IC0tLSBhL2d1aXgvcHJvZmlsZXMuc2NtCj4gKysrIGIvZ3VpeC9wcm9m
aWxlcy5zY20KPiBAQCAtMTIzMCw4ICsxMjMwLDggQEAgKGRlZmluZSBidWlsZAo+IMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAoc2V0cSBuYXRpdmUtY29t
cC1lbG4tbG9hZC1wYXRoCj4gwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgIChtYXBjYW4gKGxhbWJkYSAoZGlyKQo+IMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgIChpZiAoZXF1YWwgZGlyIG5lZWRsZSkKPiAtwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqAgKG5jb25jICcsbmF0aXZlLWNvbXAtCj4gZGlycwo+IC3CoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgIChsaXN0IGRpcikpCj4gK8KgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgIChhcHBlbmQgJyxuYXRpdmUtY29tcC0KPiBkaXJzCj4gK8KgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAobGlzdCBkaXIpKQo+IMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKGxpc3QgZGlyKSkpCj4gwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoCBuYXRpdmUtY29tcC1lbG4tbG9hZC1wYXRoKSkpKQo+IMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgIHBvcnQpCgpDaGVlcnMKCg==





Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#75817] [PATCH] profiles: emacs-subdirs: Avoid building list with a loop
Resent-From: Thiago Jung Bauermann <bauermann@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Sat, 25 Jan 2025 04:17:02 +0000
Resent-Message-ID: <handler.75817.B75817.173777860918809 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 75817
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Cc: 75817 <at> debbugs.gnu.org
Received: via spool by 75817-submit <at> debbugs.gnu.org id=B75817.173777860918809
          (code B ref 75817); Sat, 25 Jan 2025 04:17:02 +0000
Received: (at 75817) by debbugs.gnu.org; 25 Jan 2025 04:16:49 +0000
Received: from localhost ([127.0.0.1]:48022 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbXbF-0004tJ-1F
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 23:16:49 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:51062)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bauermann@HIDDEN>)
 id 1tbXbC-0004t1-1f
 for 75817 <at> debbugs.gnu.org; Fri, 24 Jan 2025 23:16:47 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 8F8163005A13;
 Sat, 25 Jan 2025 05:16:39 +0100 (CET)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:references:in-reply-to:subject:subject
 :from:from:received:received:received; s=dkim20240523; t=
 1737778597; x=1739592998; bh=DzCJcDcn85WisRb4lOZScZ5YjjE+oztN0wd
 EggZ8jas=; b=Y3jS3k4/0ScbnTInl3U7uSSpMWRxwbVBu580bGXjA/mmEx0+KJ8
 mh2RzkurzB9Lh/mHk85RLB+4/T4wU0j0oVWZS6nnr8+myyYYcw13Vg8LNYK3iuQs
 nI2NCxtlgfbnJdbquHl9C/iLVQdHA1coVZHNvY0JfSu6HbHxIumsp5zaT6WOEKd9
 fwrowGte6QI+mImYRLhg6x0SJBmOZlYoRJA4SY/QCQTHa4wUYIXMm3/RG4m4rHB+
 5GEH0egBCoiPC6jMDnu5aHd1r2ORa7zb0MrbLPs3qtBn8AKMDrJ8uji0d4ky0NXE
 ZawrrR3A43KFroCgTKXOkq9/TDv0N3D5H+Q==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id zlXM9Sk-nJGf; Sat, 25 Jan 2025 05:16:37 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id C06613004C73;
 Sat, 25 Jan 2025 05:16:36 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 5012C31604FD;
 Sat, 25 Jan 2025 05:16:36 +0100 (CET)
From: Thiago Jung Bauermann <bauermann@HIDDEN>
In-Reply-To: <bf38579037ec2abaddcc2ffe60b1aa3377d6415c.camel@HIDDEN>
 (Liliana Marie Prikler's message of "Sat, 25 Jan 2025 01:30:45 +0100")
References: <20250124230226.107387-1-bauermann@HIDDEN>
 <bf38579037ec2abaddcc2ffe60b1aa3377d6415c.camel@HIDDEN>
Date: Sat, 25 Jan 2025 01:16:32 -0300
Message-ID: <864j1ncyu7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
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 (-)

Liliana Marie Prikler <liliana.prikler@HIDDEN> writes:

> Am Freitag, dem 24.01.2025 um 20:01 -0300 schrieb Thiago Jung
> Bauermann:
>> If the EMACSNATIVELOADPATH environment variable (by mistake) has
>> duplicated paths, Emacs fails to load with:
>>
>> =C2=A0 $ emacs
>> =C2=A0 List contains a loop:
>> =C2=A0 ("/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native=
-site-lisp"
>> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native=
-site-lisp" .
>> #2)
>> =C2=A0 $ echo $?
>> =C2=A0 255
>>
>> A git bisect in Guix to find when the problem was introduced arrived
>> at commit e9b13294700d ("profiles: emacs-subdirs: Also expand
>> native-comp-eln-load-path.").
>>
>> Fix the problem by applying Liliana's suggestion of changing 'nconc'
>> to 'append' in the Elisp code written to subdirs.el.
> It's better to describe the bug in code so that folks won't stumble
> over it again.  E.g. "Note: needle may be found multiple times, so
> don't use destructive procedures like nconc."

Good point. I added your suggested note as a comment in the Elisp code.

>> * guix/profiles.scm (emacs-subdirs): Use 'append' rather than
>> 'nconc'.
>>
>> Change-Id: If646b806f24666b5247850d30d2819c7482c130b
>> Fixes: <https://issues.guix.gnu.org/75709>
> You have some horizontal space here to name the bug :)

Indeed. I added a short description.

Thank you for your quick review!
--
Thiago




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#75817] [PATCH v2] profiles: emacs-subdirs: Avoid building list with a loop
References: <20250124230226.107387-1-bauermann@HIDDEN>
In-Reply-To: <20250124230226.107387-1-bauermann@HIDDEN>
Resent-From: Thiago Jung Bauermann <bauermann@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Sat, 25 Jan 2025 04:19:01 +0000
Resent-Message-ID: <handler.75817.B75817.173777868818981 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 75817
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 75817 <at> debbugs.gnu.org
Cc: Liliana Marie Prikler <liliana.prikler@HIDDEN>, Thiago Jung Bauermann <bauermann@HIDDEN>
Received: via spool by 75817-submit <at> debbugs.gnu.org id=B75817.173777868818981
          (code B ref 75817); Sat, 25 Jan 2025 04:19:01 +0000
Received: (at 75817) by debbugs.gnu.org; 25 Jan 2025 04:18:08 +0000
Received: from localhost ([127.0.0.1]:48026 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbXcW-0004w2-1Y
	for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 23:18:08 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:56074)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bauermann@HIDDEN>)
 id 1tbXcT-0004vV-8j
 for 75817 <at> debbugs.gnu.org; Fri, 24 Jan 2025 23:18:05 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 49ADD2083208;
 Sat, 25 Jan 2025 05:17:59 +0100 (CET)
Authentication-Results: ext-mx-out011.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:subject:subject:from:from:received
 :received:received; s=dkim20240523; t=1737778678; x=1739593079;
 bh=7J/trYASPdMvJiWfNp6CGvyY37HtyaeSS3OhDaqS/ok=; b=Sg33tvNu4WIa
 XR4Mz1o8pl8jYDishdiL4OYexOme+MoJeqZdAUTQOD+zLCw6G+t3k7RPpy2IX1cy
 92iUG7y3l6kOB+GXMqbC7YcOI4JykB19ngFvS0bh9WZtrnnzS7rWNNDM//clANJG
 qC0stJpSRUpO6qK4LdrEzEyVQG+fMBb2PuRMDKqI6fJdnoaRkufP++ICV45fApuI
 LP2YiEcOr3W+nqmj8Q+7+m/N9sQoxOkinNuEp+BcRZGl8GZZY6jDhv2nv52FWe97
 gLFtcBQv3k39PvWRXISbS5IRMtyc05lZqfiFZdwQ99mVgF7fNLV84ocwcGinE7F9
 7KjJbdk8gw==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id mMlUtR7oBrgQ; Sat, 25 Jan 2025 05:17:58 +0100 (CET)
Received: from int-mx009.mykolab.com (unknown [10.9.13.9])
 by mx.kolabnow.com (Postfix) with ESMTPS id EA8C12083249;
 Sat, 25 Jan 2025 05:17:57 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx009.mykolab.com (Postfix) with ESMTPS id B19C7200BABD;
 Sat, 25 Jan 2025 05:17:57 +0100 (CET)
From: Thiago Jung Bauermann <bauermann@HIDDEN>
Date: Sat, 25 Jan 2025 01:14:08 -0300
Message-ID: <20250125041742.168342-1-bauermann@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
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 (-)

If the EMACSNATIVELOADPATH environment variable (by mistake) has duplicated
paths, Emacs fails to load with:

  $ emacs
  List contains a loop:
  ("/home/user/.guix-profile/lib/emacs/native-site-lisp"
   "/gnu/store/…-emacs-lsp-mode-9.0.0/lib/emacs/native-site-lisp"
   "/home/user/.guix-profile/lib/emacs/native-site-lisp"
   "/home/user/.guix-profile/lib/emacs/native-site-lisp"
   "/gnu/store/…-emacs-lsp-mode-9.0.0/lib/emacs/native-site-lisp" . #2)
  $ echo $?
  255

A git bisect in Guix to find when the problem was introduced arrived at
commit e9b13294700d ("profiles: emacs-subdirs: Also expand
native-comp-eln-load-path.").

Fix the problem by applying Liliana's suggestion of changing 'nconc' to
'append' in the Elisp code written to subdirs.el.

* guix/profiles.scm (emacs-subdirs): Use 'append' rather than 'nconc'.

Change-Id: If646b806f24666b5247850d30d2819c7482c130b
Fixes: Emacs "List contains a loop" error <https://issues.guix.gnu.org/75709>
Suggested-by: Liliana Marie Prikler <liliana.prikler@HIDDEN>
---
 guix/profiles.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Changes since v1:
Made the following changes suggested by Liliana:
- Added comment to Elisp comment warning about destructive procedures
- Added short bug description to "Fixes" tag.

diff --git a/guix/profiles.scm b/guix/profiles.scm
index 87b9543ac01f..fb4dbc5bd079 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -1230,8 +1230,12 @@ (define build
                         (setq native-comp-eln-load-path
                               (mapcan (lambda (dir)
                                         (if (equal dir needle)
-                                            (nconc ',native-comp-dirs
-                                                   (list dir))
+                                            ;; Note: needle may be found
+                                            ;; multiple times, so don't use
+                                            ;; destructive procedures like
+                                            ;; nconc.
+                                            (append ',native-comp-dirs
+                                                    (list dir))
                                             (list dir)))
                                       native-comp-eln-load-path))))
                    port)




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#75817] [PATCH v2] profiles: emacs-subdirs: Avoid building list with a loop
Resent-From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Sat, 25 Jan 2025 14:27:03 +0000
Resent-Message-ID: <handler.75817.B75817.17378151779908 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 75817
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Thiago Jung Bauermann <bauermann@HIDDEN>, 75817 <at> debbugs.gnu.org
Received: via spool by 75817-submit <at> debbugs.gnu.org id=B75817.17378151779908
          (code B ref 75817); Sat, 25 Jan 2025 14:27:03 +0000
Received: (at 75817) by debbugs.gnu.org; 25 Jan 2025 14:26:17 +0000
Received: from localhost ([127.0.0.1]:49060 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tbh71-0002Zi-TY
	for submit <at> debbugs.gnu.org; Sat, 25 Jan 2025 09:26:17 -0500
Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:42340)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <liliana.prikler@HIDDEN>)
 id 1tbh6t-0002Z9-Vm
 for 75817 <at> debbugs.gnu.org; Sat, 25 Jan 2025 09:26:13 -0500
Received: by mail-wr1-x442.google.com with SMTP id
 ffacd0b85a97d-38a8b35e168so1997228f8f.1
 for <75817 <at> debbugs.gnu.org>; Sat, 25 Jan 2025 06:26:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1737815160; x=1738419960; darn=debbugs.gnu.org;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=wvD9m+hr/ZrjZIBCAPeyYQa7TeKuuIFJMRqXuVSk1co=;
 b=l2yCnAwpbsC60iNJeH5gFurL2A/heIh7JrtSWE53PWnPScnYO0DqWcoZkU6VrpcNTK
 xbyJAc5hRA3RguzBLzRXHKVA3zV2gnS2dSlgKWfkyblgB/0CoqIFO1ut6wp0NVgCvKfk
 SR5mXpvRO1uU7IZ0CHFQk+7IXbBM8UGOhiXYl0pzVm/HlurAnsTHva+KUGNZeqXuMqed
 TJV0pJFPjb0wLuCP/hPNzKg090JWmnYS8EAByXsZMwiPxJTPrm+cVcXnc9EY5LDOtNzc
 VVdxTvWF6LJMCQtwfQ59r3un0Tn+OBqPt1dCXRFbBV3Tv3Q6a7vDxuspWYsgHd6t8Xqt
 rFhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1737815160; x=1738419960;
 h=mime-version:user-agent:content-transfer-encoding:references
 :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=wvD9m+hr/ZrjZIBCAPeyYQa7TeKuuIFJMRqXuVSk1co=;
 b=H2rBiS2fQGYTv9eAPJRojUnHqKNfGTbHNoz4GBcW5TTeWvO6Y9YWEVXxuKGAvJkAw8
 D/r0STxIg7+dfxkM5P1HnjvsZcNPMtjpqD63zuvKASIbPSNvJ2a7S6GWmAFcdvAeFgCQ
 etw9Tgp1bKUpKJLNItw61OnpJbQio8TL7LubvVnAHiSRwmlgzgXPJsjbmcXOTuHlo5Di
 1ATieKA9L4UXwUhozUDJhNEOn5OIPTOZnSe76foprJqtpKHOrrpBCq924WZsIoEJ5NyA
 P2rB4NI+OuQuPFqsJpmYhn/FrxGmf+C+rJWRcJhtgSNHY+polXWI5Qj5A4aaql4a7ci6
 2Mfg==
X-Forwarded-Encrypted: i=1;
 AJvYcCW5xA4EL65met9BsR3lzAPoCwZCS4sOkg6dyrqOK3RUOzJRUAry4y0hp+2sCfFmw8U1FW3e4w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwTUJhA92izXGkeqKAt33613q3AC1GVAysFzrd4cri1DbwKDnUC
 pLXT141NN61L/2tTmbKXsp8ROARy0+Mu3fyRA4bd+6rh/uSDDDKu3xbKigB4
X-Gm-Gg: ASbGnctZQkyYUC6C93XcvzygBrb+gp6pTIVS7KfKNX4EkPCdxig+d4AVlKgfDiMxKRF
 8HeG7N7MN5an1LHsBQNEghL25kDNkS+OAHvYyBAeFTOq7F82q9qS+2bSwDd7k7KJDuT/8EuYiIH
 2XUIocFFUH+c6XEtfyCFrg4ISirg1d/j6o0tF18g3jSx00CVt1IF4b/9nEEyudQZnysRM6iU9XW
 7Vi/ID2kfXt3LMuDw7P3qIyMuwnn6rKGq2FkfOv3EDRGeHdsrITNXk7ZdE5qQDsOlQiN6Vz0kR7
 f5qjgclUdZ2sL9NXSrJK9QmCDt6MU6MNub3z+Gu/e6WjVn2UwEKfWfIw
X-Google-Smtp-Source: AGHT+IFGwcqhX9160+i/tT0rKscmmQ5PusMyZw9UREj2vcA5m4fQZbhGm5j4NNt7CEaRfrgCHDi66w==
X-Received: by 2002:a5d:5f47:0:b0:386:3672:73e7 with SMTP id
 ffacd0b85a97d-38c2b772610mr7011612f8f.9.1737815159936; 
 Sat, 25 Jan 2025 06:25:59 -0800 (PST)
Received: from lumine.fritz.box (85-127-114-32.dsl.dynamic.surfer.at.
 [85.127.114.32]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-38c2a188a61sm5746641f8f.52.2025.01.25.06.25.58
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 25 Jan 2025 06:25:59 -0800 (PST)
Message-ID: <a667a2d1fe5ef63598de0e3cb65eaf6df4da1c46.camel@HIDDEN>
From: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Date: Sat, 25 Jan 2025 15:26:07 +0100
In-Reply-To: <20250125041742.168342-1-bauermann@HIDDEN>
References: <20250125041742.168342-1-bauermann@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.48.4 
MIME-Version: 1.0
X-Spam-Score: -0.0 (/)
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 (-)

Am Samstag, dem 25.01.2025 um 01:14 -0300 schrieb Thiago Jung
Bauermann:
> If the EMACSNATIVELOADPATH environment variable (by mistake) has
> duplicated
> paths, Emacs fails to load with:
>=20
> =C2=A0 $ emacs
> =C2=A0 List contains a loop:
> =C2=A0 ("/home/user/.guix-profile/lib/emacs/native-site-lisp"
> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native-=
site-lisp"
> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native-=
site-lisp" .
> #2)
> =C2=A0 $ echo $?
> =C2=A0 255
>=20
> A git bisect in Guix to find when the problem was introduced arrived
> at commit e9b13294700d ("profiles: emacs-subdirs: Also expand
> native-comp-eln-load-path.").
>=20
> Fix the problem by applying Liliana's suggestion of changing 'nconc'
> to 'append' in the Elisp code written to subdirs.el.
>=20
> * guix/profiles.scm (emacs-subdirs): Use 'append' rather than
> 'nconc'.
>=20
> Change-Id: If646b806f24666b5247850d30d2819c7482c130b
> Fixes: Emacs "List contains a loop" error
> <https://issues.guix.gnu.org/75709>
> Suggested-by: Liliana Marie Prikler <liliana.prikler@HIDDEN>
> ---
Reworded commit message slightly and pushed to emacs-team.  Let's wait
a little for all Emacsen to rebuild on CI before merging this into
master :)

Thanks




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#75817] [PATCH v2] profiles: emacs-subdirs: Avoid building list with a loop
Resent-From: Thiago Jung Bauermann <bauermann@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Sun, 26 Jan 2025 18:05:01 +0000
Resent-Message-ID: <handler.75817.B75817.173791467813976 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 75817
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Cc: 75817 <at> debbugs.gnu.org
Received: via spool by 75817-submit <at> debbugs.gnu.org id=B75817.173791467813976
          (code B ref 75817); Sun, 26 Jan 2025 18:05:01 +0000
Received: (at 75817) by debbugs.gnu.org; 26 Jan 2025 18:04:38 +0000
Received: from localhost ([127.0.0.1]:57802 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tc6zt-0003dM-VX
	for submit <at> debbugs.gnu.org; Sun, 26 Jan 2025 13:04:38 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:34934)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <bauermann@HIDDEN>)
 id 1tc6zr-0003cq-1a
 for 75817 <at> debbugs.gnu.org; Sun, 26 Jan 2025 13:04:35 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 65F233004C77;
 Sun, 26 Jan 2025 19:04:28 +0100 (CET)
Authentication-Results: ext-mx-out013.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:references:in-reply-to:subject:subject
 :from:from:received:received:received; s=dkim20240523; t=
 1737914666; x=1739729067; bh=+X9gSDk0catvUDedZQ5TJe4+kE54X0sep/c
 TS3jYPSo=; b=NlFPYQ+e6kG3QIZC/ITyGdziPwUslsezEa1N0cpi9q9ayR593YA
 FoRRDu4I4TlbaiOsTTbCLc5NyXE123A3GXrgN/IB6HUA/QniK5x9qKQjLimhoEON
 fMDq0/ZQ/Hp4eRChCqkPYv5NVNF/Lag6bSOitVLNizJoyFRVytYA0nQBHaDHSnMd
 Xf3WOAgPsL5QXBYglhf2ap0JaCE2Z5GSm/3g/0O7msssMR9bz0/MKXHDcwti1Ujh
 i0A4nKArHof046iB+5Ax33V8DnY/HZH8K42geZgDaYiA8qoYtoX5ElV5ZuczeVH5
 Mp/vV/PhXCjGXFR+W0i4ZobiTYTdlGRnNrQ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id uf-DjHfn6j_a; Sun, 26 Jan 2025 19:04:26 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id 098313004C66;
 Sun, 26 Jan 2025 19:04:24 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 6A2C13165E26;
 Sun, 26 Jan 2025 19:04:24 +0100 (CET)
From: Thiago Jung Bauermann <bauermann@HIDDEN>
In-Reply-To: <a667a2d1fe5ef63598de0e3cb65eaf6df4da1c46.camel@HIDDEN>
 (Liliana Marie Prikler's message of "Sat, 25 Jan 2025 15:26:07 +0100")
References: <20250125041742.168342-1-bauermann@HIDDEN>
 <a667a2d1fe5ef63598de0e3cb65eaf6df4da1c46.camel@HIDDEN>
Date: Sun, 26 Jan 2025 15:04:20 -0300
Message-ID: <86tt9l78pn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
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 (-)

Liliana Marie Prikler <liliana.prikler@HIDDEN> writes:

> Am Samstag, dem 25.01.2025 um 01:14 -0300 schrieb Thiago Jung
> Bauermann:
>> If the EMACSNATIVELOADPATH environment variable (by mistake) has
>> duplicated
>> paths, Emacs fails to load with:
>>
>> =C2=A0 $ emacs
>> =C2=A0 List contains a loop:
>> =C2=A0 ("/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native=
-site-lisp"
>> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native=
-site-lisp" .
>> #2)
>> =C2=A0 $ echo $?
>> =C2=A0 255
>>
>> A git bisect in Guix to find when the problem was introduced arrived
>> at commit e9b13294700d ("profiles: emacs-subdirs: Also expand
>> native-comp-eln-load-path.").
>>
>> Fix the problem by applying Liliana's suggestion of changing 'nconc'
>> to 'append' in the Elisp code written to subdirs.el.
>>
>> * guix/profiles.scm (emacs-subdirs): Use 'append' rather than
>> 'nconc'.
>>
>> Change-Id: If646b806f24666b5247850d30d2819c7482c130b
>> Fixes: Emacs "List contains a loop" error
>> <https://issues.guix.gnu.org/75709>
>> Suggested-by: Liliana Marie Prikler <liliana.prikler@HIDDEN>
>> ---
> Reworded commit message slightly and pushed to emacs-team.  Let's wait
> a little for all Emacsen to rebuild on CI before merging this into
> master :)
>
> Thanks

Thank you!

--
Thiago




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#75817] [PATCH v2] profiles: emacs-subdirs: Avoid building list with a loop
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Mon, 27 Jan 2025 08:42:01 +0000
Resent-Message-ID: <handler.75817.B75817.173796729220174 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 75817
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Liliana Marie Prikler <liliana.prikler@HIDDEN>
Cc: 75817 <at> debbugs.gnu.org, Thiago Jung Bauermann <bauermann@HIDDEN>
Received: via spool by 75817-submit <at> debbugs.gnu.org id=B75817.173796729220174
          (code B ref 75817); Mon, 27 Jan 2025 08:42:01 +0000
Received: (at 75817) by debbugs.gnu.org; 27 Jan 2025 08:41:32 +0000
Received: from localhost ([127.0.0.1]:59252 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tcKgW-0005FJ-3m
	for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 03:41:32 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:50494)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1tcKgT-0005Ez-C7
 for 75817 <at> debbugs.gnu.org; Mon, 27 Jan 2025 03:41:30 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1tcKgN-0006Kc-R1; Mon, 27 Jan 2025 03:41:23 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=UpGdznXDjfiVRG5DlnqoGq3HPoqCZJIBbnPUME4/Tns=; b=nqVQKndfFZ+Be6hRGTg8
 7JfXQhohxxfyiPfCAvruODKqBzCoRbsrhNwUSJ3L5QUugfZQRRtgSpsWe1khfC7rd75g7Fmk9TU5x
 ePRcjNy07MxCQeDTw4Vb6417AARnZU4lhsUaxgA20Iih9QCbUXZm9IsOgLe8gMAAXlVI9ZvJDCKlP
 fFGVwEY8Agw9ljEQ3YzgU/GRzBSH/n2hNhsdBHodfh6U7UzwZPGOV2eIu5GqGh924RWrQJNyhmEnL
 GzV3Vf/RnfU/bOe0d+N0qVPpxu0ubVvTjs2Eh2IJlTmIczt9VAevsmo8bg/UjruktHJSJXqJkMSgN
 Q9Z9cipr1MP81w==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
In-Reply-To: <a667a2d1fe5ef63598de0e3cb65eaf6df4da1c46.camel@HIDDEN>
 (Liliana Marie Prikler's message of "Sat, 25 Jan 2025 15:26:07 +0100")
References: <20250125041742.168342-1-bauermann@HIDDEN>
 <a667a2d1fe5ef63598de0e3cb65eaf6df4da1c46.camel@HIDDEN>
Date: Mon, 27 Jan 2025 09:41:07 +0100
Message-ID: <87ed0ops2k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

Hello,

Liliana Marie Prikler <liliana.prikler@HIDDEN> skribis:

> Am Samstag, dem 25.01.2025 um 01:14 -0300 schrieb Thiago Jung
> Bauermann:
>> If the EMACSNATIVELOADPATH environment variable (by mistake) has
>> duplicated
>> paths, Emacs fails to load with:
>>=20
>> =C2=A0 $ emacs
>> =C2=A0 List contains a loop:
>> =C2=A0 ("/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native=
-site-lisp"
>> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/home/user/.guix-profile/lib/emacs/native-site-lisp"
>> =C2=A0=C2=A0 "/gnu/store/=E2=80=A6-emacs-lsp-mode-9.0.0/lib/emacs/native=
-site-lisp" .
>> #2)
>> =C2=A0 $ echo $?
>> =C2=A0 255
>>=20
>> A git bisect in Guix to find when the problem was introduced arrived
>> at commit e9b13294700d ("profiles: emacs-subdirs: Also expand
>> native-comp-eln-load-path.").
>>=20
>> Fix the problem by applying Liliana's suggestion of changing 'nconc'
>> to 'append' in the Elisp code written to subdirs.el.
>>=20
>> * guix/profiles.scm (emacs-subdirs): Use 'append' rather than
>> 'nconc'.
>>=20
>> Change-Id: If646b806f24666b5247850d30d2819c7482c130b
>> Fixes: Emacs "List contains a loop" error
>> <https://issues.guix.gnu.org/75709>
>> Suggested-by: Liliana Marie Prikler <liliana.prikler@HIDDEN>
>> ---
> Reworded commit message slightly and pushed to emacs-team.  Let's wait
> a little for all Emacsen to rebuild on CI before merging this into
> master :)

Looking forward to applying this fix (exwm wouldn=E2=80=99t start this morn=
ing).
:-)

Ludo=E2=80=99.





Last modified: Mon, 27 Jan 2025 08:45:02 UTC

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