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 SMJxH4U0tWXNIQEAqHPOHw:P1 (envelope-from ) for ; Sat, 27 Jan 2024 17:51:17 +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 SMJxH4U0tWXNIQEAqHPOHw (envelope-from ) for ; Sat, 27 Jan 2024 17:51:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cm05zSr4; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706374277; h=from:from:sender:sender: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=hbkL6BElQaUxL4nkR27/SdHkmBUwfiLYbZFwQ7ucR6E=; b=nQVODWADCUyWbi3bKM9MjTMlv11d7jULbm5/LDEfD6fX1hGsvquoPCDPOBKo8ZsBrwW4SO ohGckNexzahzLnxL0WSEtVKBcXwJARgHGUGohWvXMjBc7N15xvBsNwMqpKykOTN4+bK0GB faG2rGR6q0sK8sY0CLGQsrtRR2ERHThCtjKDwLBNGx5ah+joL2Dr1jxklGRog1i+Xr3tM6 jkwDLYiKFvDRVuZUw8iMPhGVKXkzDQs9MtQkZFCsfE5dH+e+FM5A9vAT2Bi1bS0RQbD9Hm l4gFVEmu7ssIOm4VhMH2nLsGXXtyReERnA8fJcPujbFnhjJSiJ6OKhGXekNcyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cm05zSr4; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706374277; a=rsa-sha256; cv=none; b=tSHtCxOk5fP2CET7xr/2pB8v3pbs4rEnVQDlka3sT2GmFH9bmWcQP+nlR8KtspgohD0WU5 I8nO0+YJqsK6ClH+3gnw72P6+ClW3c3yNuyrjzu6wm51XJzT1gyZLt/Sh6ZNC9hunW+zC7 Wa4TzA4DnWvJTapvzCEEGHY1sN7Ee1FOzpftqgNfNYHewzDftzobCHKoqkki9SstYmF3Q/ Ts/mn0GP7n4G05Qj6vj47d1mMHV6eTAqryz9H2FYhOgquZDznMx3LT+Taq+guFC8GCLwPd BtXFRBn+h7L52mtcSENoHwdn19p5+e4EWOt9lRFYEDe5iynQXIeQQ52fA+Gm+w== 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 EC364438C3 for ; Sat, 27 Jan 2024 17:51:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTltR-00083v-3f; Sat, 27 Jan 2024 11:50: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 1rTltP-00083l-M3 for guix-patches@gnu.org; Sat, 27 Jan 2024 11:50: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 1rTltP-0007vc-E8 for guix-patches@gnu.org; Sat, 27 Jan 2024 11:50:55 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTltW-00063f-6U for guix-patches@gnu.org; Sat, 27 Jan 2024 11:51:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67260] [PATCH v6 1/7] gnu: emacs: Wrap EMACSNATIVELOADPATH. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Jan 2024 16:51:02 +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: Suhail Cc: cox.katherine.e+guix@gmail.com, 67260@debbugs.gnu.org, andrew@trop.in Received: via spool by 67260-submit@debbugs.gnu.org id=B67260.170637422623240 (code B ref 67260); Sat, 27 Jan 2024 16:51:02 +0000 Received: (at 67260) by debbugs.gnu.org; 27 Jan 2024 16:50:26 +0000 Received: from localhost ([127.0.0.1]:55798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTlsv-00062m-Ni for submit@debbugs.gnu.org; Sat, 27 Jan 2024 11:50:26 -0500 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]:42045) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTlsq-00062T-2p for 67260@debbugs.gnu.org; Sat, 27 Jan 2024 11:50:24 -0500 Received: by mail-ej1-x644.google.com with SMTP id a640c23a62f3a-a313b51cf1fso240094466b.0 for <67260@debbugs.gnu.org>; Sat, 27 Jan 2024 08:50:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706374207; x=1706979007; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=hbkL6BElQaUxL4nkR27/SdHkmBUwfiLYbZFwQ7ucR6E=; b=cm05zSr4JwsfN357yMeKibcnTv8vKpy4IftPVe5D/ZOsdUPn4XEFgvSlXU2DZKjwn+ k5XUhE4ZtF+xX1/MqPtf0XFJBP9JpkGKIgV0itQxgUErUkNt24/s3vFpJsoqgy9i0Mz/ 4ExE3MIIFwpHnl3vAQH39yKsxKlQJlGARgboXFxYuKbUkrA00sGYpXnf8j6vvJpXHAwx dBvyjtg2rrYctu2tgIPku7oGj+USMlpe+hhGxBYhm+VJlslvyb8nNPsMfX6QuTVmw28T Os37j1I9dLgEx1frN3jYKkQD6N1o22nExLWxoSvxOzyZ6fFT89G02QBCrRt5zcLsX9x/ 62EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706374207; x=1706979007; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hbkL6BElQaUxL4nkR27/SdHkmBUwfiLYbZFwQ7ucR6E=; b=b+xR/zV+i3cRbcpaAuWpLPL+eCRXptqIWB2d4v1xPYquhQRxRejxrT05UtkHOn4RaQ GTQtAOBcDR9TN5myfAdPqv+uK1DRGpxYBRMQGee7Esv1JWt2tLeesYF1I7V12h15xQ4q Fx4zwRA/02qb89VqGO5rx1PolfEmVOtNWSWnKdSnx5anFACR6nfgDrtPp1GswiHrFhO8 x6NLYWSjQnOBAsYrUjyb4suc/a/VeYKPOjyWR6WGv9Qacnc66hBf6vVBj+jEPlcijD3K bYTc9HAt1Tp9IEtJDT3bP2Ug03/YmZygkWkCjVrlVOtKJinY9eOUPNxLSp/fuGa2IQ0E ZlmQ== X-Gm-Message-State: AOJu0YwYnPQsS8iVnSi1OV1zqWRlkKUoZHEs12u9kS6rZTjsfgEU0HCZ hzbEe6geV9m/nODU7svsq9+V9reLHEnpvqmWESMVOczaspSUkgvg X-Google-Smtp-Source: AGHT+IG9F63VR1Uv2JL2DJ1GNO46XXm2y/Gc3arJ11VSRCbf+EVs7ia4Znec1TLR+snVDEyTu3CfTA== X-Received: by 2002:a17:907:9872:b0:a2f:6053:2ab7 with SMTP id ko18-20020a170907987200b00a2f60532ab7mr3580387ejc.11.1706374206692; Sat, 27 Jan 2024 08:50:06 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id n11-20020a1709061d0b00b00a31805b4165sm1929790ejh.11.2024.01.27.08.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 08:50:06 -0800 (PST) Message-ID: <070e018eb1d848cf296791672ffa6499995ffef3.camel@gmail.com> From: Liliana Marie Prikler Date: Sat, 27 Jan 2024 17:50:02 +0100 In-Reply-To: <65b522ef.050a0220.6e48b.a677SMTPIN_ADDED_BROKEN@mx.google.com> References: <65b522ef.050a0220.6e48b.a677SMTPIN_ADDED_BROKEN@mx.google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 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: , 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.85 X-Migadu-Queue-Id: EC364438C3 X-Spam-Score: 3.85 X-Migadu-Scanner: mx11.migadu.com X-TUID: Es49TNMdqP2i Am Samstag, dem 27.01.2024 um 15:36 +0000 schrieb Suhail: > Liliana Marie Prikler writes: > [=E2=80=A6] > For emacs-htmlize, I believe the issue may stem from the fact that > some .eln files are available from entries in native-comp-eln-load- > path only via symlinks and the .eln loader may not be able to load > symlinks. =C2=A0 Would you care to debug this a bit more and report your findings? > 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 is > 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. > 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. > > uniquify-item-p is a byte-compiled Lisp function in `uniquify.el'. >=20 > The manifest file that was used is below. >=20 > #+begin_src scheme > =C2=A0 (use-modules (guix transformations) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (gnu packages)) >=20 > =C2=A0 (define transform1 > =C2=A0=C2=A0=C2=A0 (options->transformation > =C2=A0=C2=A0=C2=A0=C2=A0 '((with-input . "emacs-minimal=3Demacs") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (without-tests . "emacs-clojure-mode= ")))) >=20 > =C2=A0 (packages->manifest > =C2=A0=C2=A0=C2=A0 (list (transform1 (specification->package "bash")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 (speci= fication->package "coreutils")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 (speci= fication->package "git")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 (speci= fication->package "make")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 (speci= fication->package "emacs")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 (speci= fication->package "emacs-org")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (speci= fication->package "emacs-org-contrib")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (speci= fication->package "emacs-citeproc-el")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (speci= fication->package "emacs-engrave-faces")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (speci= fication->package "emacs-haskell-mode")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (speci= fication->package "emacs-htmlize")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (speci= fication->package "emacs-markdown-mode")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (speci= fication->package > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 "emacs-org-pandoc-import")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (transform1 (speci= fication->package "pandoc")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 )) > #+end_src 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. Cheers