From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 yNH6Bv7W0WXLsgAAe85BDQ:P1 (envelope-from ) for ; Sun, 18 Feb 2024 11:07:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yNH6Bv7W0WXLsgAAe85BDQ (envelope-from ) for ; Sun, 18 Feb 2024 11:07:58 +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=eWxaNauY; 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=1708250878; 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=29kGOGzl76posLWVPYVHGbTSSTYZxRy1/AuCD36Fggg=; b=OvrCoxCvkdg0SnonBEx1Gva+0z1CAKXIeQAlfwYqV/3EYstZC7JDFX9VJmfM/TnGb30ojX FYb/ShM7KoYU8jRxreKyrJT5ilZIiMblo16txwyAMn7ZbCOW6vVNY7rB81rxnwRwKijmAw iBJtIihWpVtPS5CQEdBa0P5prLJeKOpj4B5KOJDsf7f8pWcNQQADFsSAxKLFmMcqZ+J9tq EAh+yn10rFjtut8EDhgapLOUQOlLvbKUu0K7p4sAn7Kh9259xMG4L5zALjItXJZ8qPFelz 4ttZPHDQkZQjFzkINCD0mHAVxO+7PtsnZF5gRhqLzZvuBupZp3z67xtsIjFggw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=eWxaNauY; 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=1708250878; a=rsa-sha256; cv=none; b=RyuHC3nAiMg6Ws2ZmKGzekq4YhqOR3rUafNkCs9HtROIMXHgbj1IcLWZC961dPnowI4ne9 bohBU2RIxQ3GTRMQFj6E4H2hNk1hyc7UFkObY2P9WBDYd0AdAtbIPNoqLPjaR+RIDZP9XN f8aLhsiO6Qr7RxrLIpKIWObVMaWIZqzlYIlLPH423l/fcNjPrrdOvT95lTGocOmP/7dB6r kRDcpq2ISnO2ckYGW7HM01Eu3CxtbM1Es7M3l4s+T8Q44hDRqOy1YHrXxQQddSkis54qL2 j9CZMSWKN+vJe12uLAYl18aC5Qo0EGBXHfHTcgGq65dXidfL03jP5+o9rtenJQ== 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 BD8B7399AD for ; Sun, 18 Feb 2024 11:07:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbdMl-0001mj-JJ; Sun, 18 Feb 2024 04:21:43 -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 1rbdMk-0001mY-5F for guix-patches@gnu.org; Sun, 18 Feb 2024 04:21:42 -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 1rbdMj-0007W5-Q8 for guix-patches@gnu.org; Sun, 18 Feb 2024 04:21:41 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rbdN3-0006R0-RU for guix-patches@gnu.org; Sun, 18 Feb 2024 04:22:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67260] [PATCH emacs-team v10 0/7] Preload most of the things Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Feb 2024 09:22: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: 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.170824808824695 (code B ref 67260); Sun, 18 Feb 2024 09:22:01 +0000 Received: (at 67260) by debbugs.gnu.org; 18 Feb 2024 09:21:28 +0000 Received: from localhost ([127.0.0.1]:34140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbdMV-0006QE-G3 for submit@debbugs.gnu.org; Sun, 18 Feb 2024 04:21:27 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:51359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rbdMT-0006Py-AP for 67260@debbugs.gnu.org; Sun, 18 Feb 2024 04:21:26 -0500 Received: by mail-ed1-f66.google.com with SMTP id 4fb4d7f45d1cf-563d56ee65cso2418847a12.2 for <67260@debbugs.gnu.org>; Sun, 18 Feb 2024 01:21:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708247999; x=1708852799; 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=29kGOGzl76posLWVPYVHGbTSSTYZxRy1/AuCD36Fggg=; b=eWxaNauYlBX0B/sGgXi22qm1I6razFyOQqHDRaHSE/+eCeKIXX+HNJYuzBc4Q9N2v3 R4EYEQ/HMue+QMuWdla9RifXFiFe51htWjMqQWeVBA3bW6MxyNFSR8bnngrJO2UzNHjv OWW2jsNnaBTUOPljXDlLx4P5gjqqbGbGF50P/p9DPk824GlVH7rxjIgai+a7vfV/vhC7 eOGjbESSiOib2RsId9FtdXeg0EIrEejBWzPU1VBcyJFDYQLj8+atc4Nwk9NdW5ohs/8e zuOUB2l0J12kWyrlc71AVZ2x86UiuI6rLERECyalc8CE/YiU8H9KUAO6f+rZt/0XsZ7V U22A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708247999; x=1708852799; 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=29kGOGzl76posLWVPYVHGbTSSTYZxRy1/AuCD36Fggg=; b=CPY2MfCIySz4eWKubV4awvblnbSnf8dsmCVeWEof1ahPrChkRDJbcAwgnmQDR+Vz6l jq5pBkQtMTTKP5wbq5ZYA6nZtHgGhiNlndfY8zML6NEpPQCFoNEaPjrgdLHVWBAq1zNa yeZVJqoGMCWwm5aR0Hgqfw9dw3uLwGmGGhCpfICr2arVEuadk/rlzNRYpNmL6+mzD//D gtY7UAjy+93bK+iuGybqyNMfHQmiSPvkttIoEyVGbX86v55N/c5G0FVBSp8CZPgCMhJF K4lVbNGlv20iaD5omn5CHROcYOdByHiWDH79b1EQecMczuryc2DV6ddk97FPv8Vvz7YB NzPw== X-Gm-Message-State: AOJu0YxBmUDs0ER3qA8M/rXIMoVOMO4AdbQ6GbK0jvbg/5KfqZmEtx/w hwgnU5pKHw630699X9LFcDu0/gJXeMSfeS+119fnHzHnVS0bG8wP X-Google-Smtp-Source: AGHT+IHJnns1sApQE3YDV3w7r/uelgc5UcFoaay1JTEAUB2jX4hNgjfxg7p0d/wKbje9g8f6ea4q5g== X-Received: by 2002:a17:906:a38d:b0:a3e:5c65:9e27 with SMTP id k13-20020a170906a38d00b00a3e5c659e27mr913960ejz.56.1708247998888; Sun, 18 Feb 2024 01:19:58 -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 u9-20020a170906780900b00a382bcd9943sm1769368ejm.145.2024.02.18.01.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 01:19:58 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Sun, 18 Feb 2024 10:19:56 +0100 In-Reply-To: <87il2megkb.fsf@gmail.com> References: <875xyndu36.fsf@bayesians.ca> <87il2megkb.fsf@gmail.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.88 X-Spam-Score: -3.88 X-Migadu-Queue-Id: BD8B7399AD X-Migadu-Scanner: mx11.migadu.com X-TUID: ikiHDF3ovhPi Am Sonntag, dem 18.02.2024 um 00:56 +0000 schrieb Suhail: > "Liliana Marie Prikler" writes: >=20 > > I don't think our choice of putting Emacs itself last is wrong > > here. >=20 > I'm not sure I understand.=C2=A0 Just to be clear (please ignore in case > this was already clear), in non-Guix Emacs the situation is as > follows: >=20 > 1. The directory where 'mule-util and 'ucs-normalize are located > =C2=A0=C2=A0 ("/usr/share/emacs/29.2/lisp/international") occurs in the l= oad- > path. > =C2=A0=C2=A0 And this entry occurs in the load-path AFTER > =C2=A0=C2=A0 "/usr/share/emacs/29.2/lisp". >=20 > 2. The directory where 'term/internal is located > =C2=A0=C2=A0 ("/usr/share/emacs/29.2/lisp/international") does NOT occur = in the > =C2=A0=C2=A0 load-path (and thus trivially doesn't occur before the > =C2=A0=C2=A0 "share/emacs/29.2/lisp" entry). Directory (2) is the same as directory (1). I think you meant $prefix/share/emacs/$emacs_version/lisp/term? =20 > After installing the v10 patch series, both 1 and 2 hold in Guix > Emacs as well.=C2=A0 However, Guix Emacs's behaviour when locating/loadin= g > natively-compiled versions of the above three features differs from > the behaviour in non-Guix Emacs.=C2=A0 Specifically, 1 and 2 above seem t= o > pose a problem for only Guix Emacs and after remedying 1 and 2 above, > as in the test script, the tests pass. >From my understanding (1) poses a problem because it messes up the way our patch computes relative file names. We could fix that with the newly introduced NATIVE_COMP_BOGUS_DIRS=E2=80=A6 hopefully. > All this to say, if by "putting Emacs itself last" you meant the > change I made to the test script to make the tests pass, then while > it may not be wrong, it also isn't correct either (seeing how it's > not needed in non-Guix Emacs).=C2=A0=C2=A0 The last (first) directory in EMACSLOADPATH (EMACSNATIVELOADPATH) is $prefix/share/emacs/$emacs_version/lisp ($prefix/lib/emacs/=E2=80=A6) on Gu= ix System. > My goal in sharing the patch was not to suggest a fix, but rather to > possibly highlight something correlated with the cause of the problem > we're observing. >=20 > > Can you do some more research as to how this confusion comes to be? >=20 > Since I have less familiarity with the internals of how Emacs locates > natively-compiled features and loads them, I'm not sure where to > begin. Do you have some concrete suggestions? > What (I believe) we know: >=20 > - Not all the .eln entries in the "preloaded"=20 > native-comp-eln-load-path directory in Emacs are actually loaded by > default.=C2=A0 This doesn't directly concern the issue, but it's to > clarify that my use of the term "preloaded" in this thread is > regarding the former and not the latter. Well, it does concern the issue in that locating such files becomes even harder. We need some place to put them and complicating these things for preloaded packages (for no real reason, might I add) is not fun. > - The issue of whether natively compiled variants are loaded or > depending on load-path order doesn't seem to affect packages that > aren't built-in.=C2=A0 Specifically, if the load-entry for a > not-built-in package is put after the "share/emacs/29.2/lisp" > entry, Guix Emacs is still able to load the natively-compiled > variant. Well, obviously not. Those are found under their packages and are probably still within a flat directory hierarchy. > - It is unclear why other packages such 'log-edit, 'find-func > =C2=A0 etc. (built-in, but not loaded by default, having their load-entry > =C2=A0 after the "share/emacs/29.2/lisp" entry) aren't affected. Update your script to account for them and we shall find out. Cheers