From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id oBj5NJwK1mY8sgAA62LTzQ:P1 (envelope-from ) for ; Mon, 02 Sep 2024 18:57:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oBj5NJwK1mY8sgAA62LTzQ (envelope-from ) for ; Mon, 02 Sep 2024 20:57: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=aUQ0RikD; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Hju9WBc2; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725303452; 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=mVtY6QJU2Q4lKAHcTG+SGMFhIL+BxBtspRjB06WJNTQ=; b=mcHbIhepg6K8Kr/4CnZ5zxo60yCu3jeIodPj1xdb/bySLnArvGD2/dC3hkvRiPLLtCEC5G IGF550HkZAy+M7y1/MOvQ6Smue5gHog/DJW8gBQwiY4/qlEhwnkXJrudO8GfyOYlOhMWwy ILYGxiuN4PMJQWJFbTnVZjUtWv3qdpa1lsFgb50i1k5sw3AZ9+onH5gkqRrU/TUzGWbRZo 9+d8A3Ro02Vnb6amx1evVUl3ggX8pAXvfKBPU1p455rgX5X/lrPa1Ejy2Ng0v6JdkukDUG FX0xI/LYCi92z17abGtjQWNiR7NA0ZrvAaUrTczblvlkieHWQ39E6W7DdzaWDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725303452; a=rsa-sha256; cv=none; b=Tgt4ZH9OpTx1Ki6Km7AL0ZhdLaIze7gE5mFdGvHn04R2KKKcw0vr7TP4mqpRb3a+4AaFdy jfd3LFIYHL3PwfaBWl77Fs1JHlh+gnZZCiBzJVSe+oTdAjfXTCA46EbQHy6y8qfjHb92Mr bw2SqyUFA3tte6+qzqp6ZoPfu4sMRD8ARZhzQ90j1JzdX6Ate+8HXwghq9YKN17n+lwwXr 6FaJz1GCfAk33As2Kn70OrXok/8DO4pzUd/5oeDL7xtijJ0pmy/N9tBmMRc1a/m8j/zzmV mj/Y5DkMifxCk2zDfNehvNMGNUMiSEXLsvRepUh0oDOOUjXTgj3V0E1NEWEh1w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aUQ0RikD; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Hju9WBc2; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); 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" 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 85F0B74325 for ; Mon, 2 Sep 2024 20:57:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slCEk-0005ks-UI; Mon, 02 Sep 2024 14:57:14 -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 1slCEd-0005iI-4x for bug-guix@gnu.org; Mon, 02 Sep 2024 14:57:11 -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 1slCEX-0000Ru-JC for bug-guix@gnu.org; Mon, 02 Sep 2024 14:57:02 -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:Date:References:In-Reply-To:From:To:Subject; bh=mVtY6QJU2Q4lKAHcTG+SGMFhIL+BxBtspRjB06WJNTQ=; b=aUQ0RikD8HJR+40l+galYSwJXoVIS9zCG5HyqgU9pHe62qMPCGaFi063DAibrE2CizYd7Tx6fZVbcCYNACco8xHVNxZl2t/8FPgEk7Vq6d3Kor74pn0Z3VEH4maO5HqPI/J3GkM9ndGj5hVmAE1KhEjtqgK8QxPkASpXD+lD72RYHVoGuLNV4TanuOcS5x0r8jshG3r2sqjUTUu5It1bjmZjDGEDlPOaa+XGv0d7GFRw0tHcSoS53WEeDSkyotboLzdEHjU10dangnUX3DoJxvydqtmiMRlyGUQmKrk1mi2hU1KOx0Ba/stDHBZfuHO72fUP0OffGdFqO2jFmU5q6w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slCFW-0001eU-5J for bug-guix@gnu.org; Mon, 02 Sep 2024 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#72333: builtin native-compiled is loaded instead of emacs-packages Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 02 Sep 2024 18:58: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: daniel szmulewicz , 72333@debbugs.gnu.org, Liliana Marie Prikler , 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.17253034546280 (code B ref 72333); Mon, 02 Sep 2024 18:58:02 +0000 Received: (at 72333) by debbugs.gnu.org; 2 Sep 2024 18:57:34 +0000 Received: from localhost ([127.0.0.1]:52353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slCF3-0001dA-Em for submit@debbugs.gnu.org; Mon, 02 Sep 2024 14:57:34 -0400 Received: from mail-wm1-f41.google.com ([209.85.128.41]:48284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slCF2-0001cx-BN for 72333@debbugs.gnu.org; Mon, 02 Sep 2024 14:57:33 -0400 Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42bbd16fca8so27739525e9.0 for <72333@debbugs.gnu.org>; Mon, 02 Sep 2024 11:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725303325; x=1725908125; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=mVtY6QJU2Q4lKAHcTG+SGMFhIL+BxBtspRjB06WJNTQ=; b=Hju9WBc2iJNEKqsyHyYgJSMEESSY0qcSP4kkUfVqtoCLMgUPAN17QHiAJmFE2ZOSnU xabsPHOxkucAxOUoir4vaK/OmpiKgZMvc/JDnIJoOUCmIeRiAMfQVHmhBrSvK8yd/SqT itol6tEWroTeh60aPoKytWeSkZnt6dFTOVPCxTv8eOeImYgLV0FFcwM5BZRSduiL+8EI NnnoGz2ai6wOm1Jvw+w4OMk/L5WEPYMnkQGwefhl0SfwImMpQ6jIW2zBXK1d5LY0m6Q8 V2oPK7zvm1TP2m+9kXIK8Wngng8yQ4GI52hulB+gpUzRw6sipxcIkWG6kKipggfEvi2f QzSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725303325; x=1725908125; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mVtY6QJU2Q4lKAHcTG+SGMFhIL+BxBtspRjB06WJNTQ=; b=omZcXeEgopTxztgjPuM7cCNyCQpeNChtOsVs698v7pRls8HZg4hlKmnEm3KaxVqWT0 BTeHyfOMYFe6qtlTEkfxqe91uY9CrGPeMCGxC87l1Wr01wwgwOe4E+eQ42kajRYwvuty T8xlSd59YzdVXre9ox2/rNZla27wItIyXDAjqFAOP43UMLn312McA7hdA68NRFLEKlBk ur0CaqG1X1/mUY1QYWqsCbO7YPR6gbdHEFPKYa+853o2ObA7hf/VErcohiUa5UanwPff 4V89n+yB5PEcR729l73TeAvpfkh6gvhOWPYgfciO8Ov4qBRR6qo8NkpGBmS4rRu+Mjta BVWA== X-Forwarded-Encrypted: i=1; AJvYcCVhf0UxUB4th+I7ASCHlmydka57qJXksLvgIwfYznAfRKMO/z7UvR0MhBkvmFDevl8uhVPzkQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxFdeCZeWo/P9XM9AoGo0oVn2/2LluGmTfUuOrSfxMORsQM65IL 9I1f1QH2R2NVUzI+SfKFJrOx+OTRnQ9fBU1vQs8+H+TurAcetcrR X-Google-Smtp-Source: AGHT+IFHzORu4Te1v/COgvhsfenGNf0mnJrKawfCWG1ZDoAdW6gB89aXObHgAykuu9IH/ZePiKp2pA== X-Received: by 2002:a05:600c:4ecb:b0:428:e09d:3c with SMTP id 5b1f17b1804b1-42c88108630mr7794405e9.33.1725303324661; Mon, 02 Sep 2024 11:55:24 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-43.net.univ-paris-diderot.fr. [194.254.61.43]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb72fcca2sm81418265e9.1.2024.09.02.11.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 11:55:24 -0700 (PDT) From: Simon Tournier In-Reply-To: <87ikvias2d.fsf@gmail.com> References: <87ikvias2d.fsf@gmail.com> Date: Mon, 02 Sep 2024 20:55:15 +0200 Message-ID: <87y149q418.fsf@gmail.com> 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: 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 85F0B74325 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.92 X-Spam-Score: -8.92 X-TUID: EycNV4SXEf21 Hi, Alvin Hsu Once bisecting, the first occurrence appears with: 7a2fc32ba2cec79b087932f30d77751f9133d740 CommitDate: Sun Jul 21 13:32:27 2024 +0200 Parent: bb1aea46e6 gnu: emacs-gnosis: Update to 0.3.2. gnu: emacs-magit: Update to 3.3.0-8.538cb2f * gnu/packages/emacs-xyz.scm (emacs-magit): Update to 3.3.0-8.538cb= 2f. A.o. it contains the fix for https://github.com/magit/magit/issues/= 4940 which is a showstopper. Change-Id: Id83a237d38c03a97f9f1043db4b8ba594521a2f7 This update of emacs-magit depends on transient-prefix-object, i.e., it depends on a new version of transient. --8<---------------cut here---------------start------------->8--- $ ag transient-prefix-object \ $(guix time-machine -q --commit=3D7a2fc32ba2cec79b087932f30d77751f9133= d740 -- build emacs-magit -S) /gnu/store/fgcz4a4adhnrcxa541kdkn30f0hgn6c5-emacs-magit-3.3.0-8.538cb2f-che= ckout/lisp/magit-branch.el 213: (oref (transient-prefix-object) scope))) 217: (propertize (oref (transient-prefix-object) scope) 866: (propertize (oref (transient-prefix-object) scope) 910: (when-let* ((branch (oref (transient-prefix-object) scope)) 918: (magit-read-upstream-branch (oref (transient-prefix-object) scope) 922: (magit-set-upstream-branch (oref (transient-prefix-object) scope) ref= name) 924: (and-let* ((branch (oref (transient-prefix-object) scope)) 931: (let ((branch (oref (transient-prefix-object) scope))) /gnu/store/fgcz4a4adhnrcxa541kdkn30f0hgn6c5-emacs-magit-3.3.0-8.538cb2f-che= ckout/lisp/magit-remote.el 73: (oref (transient-prefix-object) scope))) 318: (propertize (oref (transient-prefix-object) scope) --8<---------------cut here---------------end--------------->8--- When the commit parent does not: $ ag transient-prefix-object \ $(guix time-machine -q --commit=3Dbb1aea46e6 -- build emacs-magit -= S) However, it should be an issue since emacs-transient is correctly updated and correctly contains the requirements. --8<---------------cut here---------------start------------->8--- $ ag transient-prefix-object \ $(guix time-machine -q --commit=3Dbb1aea46e6 -- build emacs-transient) /gnu/store/8zwwwprv93shxjjfcc4a406gs9qgk58i-emacs-transient-0.7.2/share/ema= cs/site-lisp/transient-0.7.2/transient.el 1605:(defun transient-prefix-object () 3044: (format "levels > %s" (oref (transient-prefix-object) l= evel)) 3058: (transient-set-value (transient-prefix-object))) 3066: (transient-save-value (transient-prefix-object))) 3074: (transient-reset-value (transient-prefix-object))) 3607: (oref (transient-prefix-object) scope)) --8<---------------cut here---------------end--------------->8--- Therefore, the issue=E2=80=A6 On Fri, 30 Aug 2024 at 18:33, Simon Tournier wro= te: > Why is emacs-transient not loaded? =E2=80=A6is something about loading Emacs Lisp code. --8<---------------cut here---------------start------------->8--- $ guix time-machine -q --commit=3Dbb1aea46e6 \ -- shell emacs emacs-transient \ -- emacs --batch --eval "(progn (require 'transient) (transient-pref= ix-object) (print \"done\"))" =20 Error: void-function (transient-prefix-object) mapbacktrace(#f(compiled-function (evald func args flags) #)) debug-early-backtrace() debug-early(error (void-function transient-prefix-object)) (transient-prefix-object) (progn (require 'transient) (transient-prefix-object) (print "done")) command-line-1(("--eval" "(progn (require 'transient) (transient-prefix-o= bject) (print \"done\"))")) command-line() normal-top-level() Symbol=E2=80=99s function definition is void: transient-prefix-object --8<---------------cut here---------------end--------------->8--- Compared to: --8<---------------cut here---------------start------------->8--- $ guix time-machine -q --commit=3Dbb1aea46e6 \ -- shell emacs emacs-transient \ -- emacs --batch --eval "(progn (load (locate-library \"transient\")= ) (transient-prefix-object) (print \"done\"))" Loading /gnu/store/8zwwwprv93shxjjfcc4a406gs9qgk58i-emacs-transient-0.7.2/s= hare/emacs/site-lisp/transient-0.7.2/transient.elc... "done" --8<---------------cut here---------------end--------------->8--- Now, if native compilation is not able to find .eln files then all work as expected. --8<---------------cut here---------------start------------->8--- $ guix time-machine -q --commit=3Dbb1aea46e6 \ -- shell emacs emacs-transient \ -- emacs --batch --eval "(progn (setq native-comp-eln-load-path nil)= (require 'transient) (transient-prefix-object) (print \"done\"))" =20 "done" --8<---------------cut here---------------end--------------->8--- Other said, the bug is not about Magit or Transient but the bug is about all native-compiled Emacs Lisp code that are part of builtin Emacs: these are loaded and not the ones from packages if provided. About the example of Org-mode, I guess =E2=80=99org-version=E2=80=99 is not= marked for the compilation and that=E2=80=99s why it works in appearances. Well, maybe that=E2=80=99s a bug known upstream (I have not checked) and ma= ybe this behaviour has already been reported for Guix. In both cases, that=E2=80=99s annoying because it means that emacs-packages are useless as dependencies since builtin is always used instead. 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. Or another solution would to split =E2=80=99native-comp-eln-load-path=E2=80= =99. 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. 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). Cheers, simon