From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iMukJfAQ1mbgRAEA62LTzQ:P1 (envelope-from ) for ; Mon, 02 Sep 2024 19:24:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iMukJfAQ1mbgRAEA62LTzQ (envelope-from ) for ; Mon, 02 Sep 2024 21:24:32 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QAgtn39U; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=QfyW6WCi; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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=1725305072; 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=OxzmHkF7ifN/3TiPZvDOKP2jlfnsFEacmE50DCrvdyQ=; b=ieNkdtm+V+DxEdycsqI4zrr06Nwj2Y8FJKW+GXwmhBitfvvbGEpEjBhznQ5/dTqWx5WfvA SdsweWR7GLrZwsSSZ6pW7bbCRLaAU5EBfqDnH16/chkXEQPMjBz4GsiW8GnCI/vZsv/KpN g08o49lKUPJA7RCvalipTxXp029XYmyEDvvzblVM38osvml22v6+FwjNwWLaNcsIVp21Vg ko743xVWel3K6FuTus9jK0cAdEFNCDdfzsPQOGOvwvkiKn9nbeL2BEUgt0ZO6MbcpLNP2h rjaOb5RFNEGI4fPi4Tk2jV09kw+l7kULyBq8zeNnFIyR4zgiIaw4oYWxtnfDMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=QAgtn39U; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=QfyW6WCi; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725305072; a=rsa-sha256; cv=none; b=rco2nplFssyoUi8dFvy/x61nNKzclHSdkqsxRx2AsrmODKxe/G89VJTEwT/JtqwKHN1/no 7ayTb0Aan9mdjRVuU3KawZlafQ3iorLVLVPyHKh8zKu1a9vDiyRIKXkNtLaNmDFgievxlb Ct76AtsexpaaONhyeCFxiJnhgqx+T6Wtl7Kyi7I68Ptar2DXZn0J1BEgp/jIiuJgL/pgta znt3/DeMgp661YA+Sd5n7RN7Ku18S/Ys8LtjC6KDrmVGYBLS/pqiBDEV2xqO0Fd12l30JK VnVsd9gLwU04Km9vODKSspQBgEwoR3JkDA2s56/W3zI0Eu7SaiLLC6q67rmWew== 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 5FFE67462C for ; Mon, 2 Sep 2024 21:24:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slCel-0000td-GS; Mon, 02 Sep 2024 15:24:07 -0400 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 1slCeg-0000tR-Bv for bug-guix@gnu.org; Mon, 02 Sep 2024 15:24:02 -0400 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 1slCef-0003Wd-39 for bug-guix@gnu.org; Mon, 02 Sep 2024 15:24:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=OxzmHkF7ifN/3TiPZvDOKP2jlfnsFEacmE50DCrvdyQ=; b=QAgtn39UlSvqZkuz/9r7pt2InWvw6Xqg/IUEK1wYZEMWSwE1SUK9S7qQlpEmc3iUzYsUDsd45pDIJ0YECXu/+whKH/UnfFCC9yXzkUMqT4OHDabL7fe5WGsP5CbwGNpskHbYaNa12S+MBRp2U7M9at3ahPdbU3b5zx6Atgnpce5elaTdJ00bxMe+U83fYEBnFVR6Jra+a9EIY52J/N55VxzQGEHQhTl3zWdVtst2Kg/K0LX3lNMDts4lAh8REaWuZXFC2/YLsE75W2IDbNh6Uz1w6MSLZh33wqPGlV0CJHAY56IonCAXWRVzB8C+TrK7kSvVXM0o+cLBHQ2WTxnEXw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slCfe-0002iG-8Y for bug-guix@gnu.org; Mon, 02 Sep 2024 15:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#72333: builtin native-compiled is loaded instead of emacs-packages Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 02 Sep 2024 19:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72333 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier , daniel szmulewicz , 72333@debbugs.gnu.org, Katherine Cox-Buday , Andrew Tropin Cc: Alvin Hsu , aurtzy@gmail.com, Richard Sent , Nicolas Goaziou , gemmaro , Tomas Volf <~@wolfsden.cz> Received: via spool by 72333-submit@debbugs.gnu.org id=B72333.172530506010337 (code B ref 72333); Mon, 02 Sep 2024 19:25:02 +0000 Received: (at 72333) by debbugs.gnu.org; 2 Sep 2024 19:24:20 +0000 Received: from localhost ([127.0.0.1]:52505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slCex-0002ge-OU for submit@debbugs.gnu.org; Mon, 02 Sep 2024 15:24:20 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:49498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slCew-0002gO-K9 for 72333@debbugs.gnu.org; Mon, 02 Sep 2024 15:24:19 -0400 Received: by mail-ed1-f67.google.com with SMTP id 4fb4d7f45d1cf-5c251ba0d1cso1431338a12.3 for <72333@debbugs.gnu.org>; Mon, 02 Sep 2024 12:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725304931; x=1725909731; 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=OxzmHkF7ifN/3TiPZvDOKP2jlfnsFEacmE50DCrvdyQ=; b=QfyW6WCiaH90Z8aqeAzSRSyfMPIymRHFf7hdFtW64lUasQiTZTzZ0kbAuJSlEx/TGm ydpbrV5vafkRg298Ugnd+w9YhAz2EDUd/UPZOOaFlEZb0S6meceRuddi6SPY14JJyfAn 1eNBcNvmfTcTHxHH9RtTVIEL9qIko4i2dYguGL3T0l+C+AisAx11cPKimYTFIXyQaSEV 3NQQ9e1CfMY4bV3mGsxcwgGUTnXE2uxlFQN7+/2dWG4KgzgcAJPOG4RxdkdezM+XRWnP D5VYeS61LLDW5GyvWWFTBup4/2CiVXRcwh2/FYOCtpiO/9pMMRjOiK2yzAdR7P6KckcC teZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725304931; x=1725909731; 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=OxzmHkF7ifN/3TiPZvDOKP2jlfnsFEacmE50DCrvdyQ=; b=gqwGPxqRjttkldzlU3dWMdI+nCKhjSDZQa/b9GmkP5F0abOvM6e4ugDLkVBjy17A9G w3U+8RA3WyUWZqsQaUd3M1qgLKj9PMv5F3fIPWkBWclgjizOtizDFYPlWnOxvPOBb/bj cWRg9Ni4mpAzM6xJVniPE2kR9NGx9oBSipwMOsxFOo/b7Z/OJgPR33UePQaNEFNVTBxL aWAEvBt6youdWCet/P6x4yq0XQdl8P9XAagLP8MQiJXv/DKS268OqCDyaMKGJMDwfgoz ovs0AhR7OhqTGuKUCU53cpszvJEr1hG6HkVVbIH4o3EOxg6CWMM1spjLCF9eyGib/vs9 vT5A== X-Forwarded-Encrypted: i=1; AJvYcCUxNQ6+JIvzlh1+R/z0x5+2Uxh6jXXbYjcM9Quxh6zD79rCHnUqvjkf8IEa+Ze0CY6ZLjTgYQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yym3x5jm/uqx99BJH1vX4FBBHI/Oz4UkCNXhDIwaEfAKtNgtx5s pnQ9lp+i0swAoPf3Ekpqrze7sCDbha+g09n5xseAXtTELzzY7uFB X-Google-Smtp-Source: AGHT+IHwsdd+kBWSpQeag5Ob0F6EDn4kDTzKWvtcOuEX6qH/n6ztPmMe8vRFHIE3GifOAhF0lmcetg== X-Received: by 2002:a17:907:944c:b0:a86:9644:2a60 with SMTP id a640c23a62f3a-a8a1d29b64fmr103863366b.6.1725304931188; Mon, 02 Sep 2024 12:22:11 -0700 (PDT) Received: from lumine.fritz.box (85-127-20-124.dsl.dynamic.surfer.at. [85.127.20.124]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8989196715sm590050266b.113.2024.09.02.12.22.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 12:22:10 -0700 (PDT) Message-ID: <82d48037563e5cdc51d038216538c7a03f54e786.camel@gmail.com> From: Liliana Marie Prikler Date: Mon, 02 Sep 2024 21:22:08 +0200 In-Reply-To: <87y149q418.fsf@gmail.com> References: <87ikvias2d.fsf@gmail.com> <87y149q418.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.02 X-Migadu-Queue-Id: 5FFE67462C X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.02 X-TUID: 3jXJjwAid0K2 Hi Simon Am Montag, dem 02.09.2024 um 20:55 +0200 schrieb Simon Tournier: > [=E2=80=A6] > Well, maybe that=E2=80=99s a bug known upstream (I have not checked) and > maybe this behaviour has already been reported for Guix.=C2=A0 In both > cases, that=E2=80=99s annoying because it means that emacs-packages are > useless as dependencies since builtin is always used instead. It is a bug unique to our handling in Guix =E2=80=93 upstream uses hashes t= o guard against it, but those break grafts. In any case, builtin packages are only used instead if the dependency isn't natively compiled with a compatible Emacs (sadly the current default!) =E2=80=93 I'v= e started a WIP series at [1], but we're still looking for solutions that scale better in terms of what we need to declare for our packages (and CI integration). > Somehow, one solution would to not provide native-compilation of > source code that is developed outside the Emacs tree (transient, > Magit, etc.) and let user locally native-compile them. I'm not sure that'd work. Even if you byte-compile that code, you are still loading the natively-compiled stuff from the Emacs tree. You could disable native compilation for the Emacs package itself, but that'd kinda defeat the purpose of bundling these things with Emacs (which tbf is an upstream thing). > Or another solution would to split =E2=80=99native-comp-eln-load-path=E2= =80=99.=C2=A0 Say > one folder for builtin code that we know is developed outside Emacs > tree, e.g., transient, Org, etc. And append them in > EMACSNATIVELOADPATH by default.=C2=A0 When a known package is provided by > the user, the builtin path is removed from EMACSNATIVELOADPATH (and > the package path could be added if emacs-build-system native-compile > them). This already happens. The bug is not that built-in stuff is found prior to non-builtin stuff, it's that it is found *at all*. Since we don't do native compilation for packages at the moment, most folks only get Emacs itself natively compiled. Cheers [1] https://issues.guix.gnu.org/72406