From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6AfNOKA6tWVznwAAqHPOHw:P1 (envelope-from ) for ; Sat, 27 Jan 2024 18:17:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6AfNOKA6tWVznwAAqHPOHw (envelope-from ) for ; Sat, 27 Jan 2024 18:17:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bayesians.ca header.s=protonmail2 header.b=PMv1vNHO; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706375840; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=t9PHz2WEoH9SqKfmHshSXZwgIbrxkC6qX2+MvEDbOeA=; b=LkLZf4hU07vr5Bam4bx2JgI8oluMv80n7EpMdI54FQ0wLhc5Gwjhsbs5pt9+/a7eBdEmIg KaeA2F01wHypcB8/Yb32rBcYoIiSgniCCLH3ZQB7Qc86vPRIPWSQ5XmskVQs4v8CSThdN5 uvu89MhWHamMogGuzG5zCaJepHUH2kXrqIBYJ31fo46NtMaB8x3Kyu7ybkPG3uKxRF1ofs w2pK+OBKnmahzoQizSFrU2fmR2g7zfhKT1+IREKkkbIvg2dFlP9YWQ7uJkqAWNvDKuUzP6 Ic4mkON+zcjkaSpwGDThZLY7HJmaiGq9jUCE52P5/YejFAN4b18ltAPK8vdXZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bayesians.ca header.s=protonmail2 header.b=PMv1vNHO; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706375840; a=rsa-sha256; cv=none; b=qdygmEusXi9kmU3Kw/3N6akHwpKTuwaI6gcogD6M/GELhaPLRcYFkXQLpuh/TF74UL6hk/ wwv5lAnHSamdOaZ7leEBe438EYC6nB9v7vjQ7kqBb8qOY+vQmfK3LuMRRv00n7JOTN7oTl wzOqyn+1HpoQCiXq7szZI5UY3HuqrMmzDIl/mN5s64oq2ubg2ms6rg/UCAvEmZrk1Xd/eG U0ZV2gJFJ6NnxTIGh2S8i9QFykC8RqkQ36VjxufwPDiK0C7Gbp0mgjUZ7k9tCnUayTOgEh MCEQFZgZGt41nuW+462ehjr8m7hbHqqV4Ox6rXQB82/HFQgQLHPWAARQqLSZ/g== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9328244775 for ; Sat, 27 Jan 2024 18:17:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTmIb-0007Hb-1v; Sat, 27 Jan 2024 12:16:57 -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 ) id 1rTmIZ-0007H0-GX for guix-patches@gnu.org; Sat, 27 Jan 2024 12:16:55 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rTmIZ-0003bh-86 for guix-patches@gnu.org; Sat, 27 Jan 2024 12:16:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTmIf-0006lQ-Vd for guix-patches@gnu.org; Sat, 27 Jan 2024 12:17:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67260] [PATCH v6 1/7] gnu: emacs: Wrap EMACSNATIVELOADPATH. References: In-Reply-To: Resent-From: Suhail Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Jan 2024 17:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67260 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: cox.katherine.e+guix@gmail.com, 67260@debbugs.gnu.org, Suhail , andrew@trop.in Received: via spool by 67260-submit@debbugs.gnu.org id=B67260.170637578725930 (code B ref 67260); Sat, 27 Jan 2024 17:17:01 +0000 Received: (at 67260) by debbugs.gnu.org; 27 Jan 2024 17:16:27 +0000 Received: from localhost ([127.0.0.1]:55811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTmI6-0006k8-Mc for submit@debbugs.gnu.org; Sat, 27 Jan 2024 12:16:27 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]:39597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTmI1-0006jo-VV for 67260@debbugs.gnu.org; Sat, 27 Jan 2024 12:16:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bayesians.ca; s=protonmail2; t=1706375768; x=1706634968; bh=t9PHz2WEoH9SqKfmHshSXZwgIbrxkC6qX2+MvEDbOeA=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=PMv1vNHO7OU6TJkPY+kU17j5PJrJcXRhDRLg3m6VUsG6sZxcTHIcXIMyLDH5I/6YK efr77zml6NoAHX+Drkjgnu+9CqKJzh/R91jSSIMCXooqPyyyxf6smX9jFvMoL2vyqq sc9gm8i/vDgL2VahZdKlNFihPBGs99vt3g+4gAbBFKLv/avaR9DjYHEPqS22XF9JDp GE+YkRQPq0+2vePn6KgVmP3u4K5ueraCN32z3ATVx6rhFyDuXuflKsGr00fmXqLNBX /nd7CtSHsIw9VfgDJHFuuKZQjqeaIvouoXv+1vTC41fIn7mr2sfcUjMbBQOYI+t6bx p+gcuij/fUboQ== Date: Sat, 27 Jan 2024 17:15:49 +0000 Message-ID: <87sf2i8zpa.fsf@> Feedback-ID: 38691229:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Suhail X-ACL-Warn: , Suhail via Guix-patches From: Suhail via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.45 X-Migadu-Queue-Id: 9328244775 X-Spam-Score: -3.45 X-Migadu-Scanner: mx11.migadu.com X-TUID: ZoDJCK8Mc4H5 Liliana Marie Prikler writes: > Would you care to debug this a bit more and report your findings? The locations in question are in the store and hence write-protected. What's a "safe" way to debug this? >> Packages such as ox-html are available from two locations in the >> native-comp-eln-load-path.=C2=A0 In one location they are symlinked, but >> (presumably because org is a builtin package) it is also available >> from another location in the native-comp-eln-load-path and in the >> latter location it's not symlinked in.=C2=A0 I believe this difference i= s >> why for some packages natively-compiled versions are loaded (e.g. >> org, ox-html, etc) whereas for others it's not the case. > Well, as pointed out in the deleted code, dlopen has a "one shared > library per file name" limitation. I don't think we're hit by that > thanks to unique hashes in the store directory, but I might be wrong > about that. Maybe we have to do java-style FQDNs instead. Perhaps. I'd wondered, more simply, if symlinked .eln files were ever being loaded. In the limited testing I did, I didn't find such an instance. For what it's worth, only one of the entries in native-comp-eln-load-path seems to have symlinked entries (namely, ~/.guix-profile/lib/emacs/native-site-lisp). >> In addition, I believe there's another issue.=C2=A0 Some packages' names >> are getting=C2=A0 truncated.=C2=A0 For instance, instead of uniquify.eln= , I >> observe niquify.eln.=C2=A0 In this case, the .eln isn't symlinked >> (presumably because it's a builtin), but due to the name being messed >> up (perhaps too aggressive a truncation of hashes?) the natively >> compiled version is not available: > I am not truncating any hashes, I'm not even computing them in the > first place. The functions I'm modifying are publicly callable, namely > comp-el-to-eln-rel-filename for the relative file names, and > comp-el-to-eln-filename for the absolute ones. > > There could be an off-by-one error hidden in the stripping of the > BOGUS_DIRS, however. Let's investigate that. Were you thinking out loud, or are there specific steps you'd like me to help with? > Note, that you can map transform1, saving some typing overhead, and > since you are transforming all of your packages you could compose that > with specification->package. Appreciate the tips, but I should clarify that the manifest file in question was generated by way of guix shell --export-manifest. I'd omitted the header. --=20 Suhail This email is not an offer capable of acceptance, does not evidence an intention to enter into an agreement, has no operative effect until a definitive agreement is signed in writing by both parties, and that no party should act in reliance on the email or any representations of the sender until a definitive agreement is signed in writing by both parties.