From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#62762: 'make' often errors with "Org version mismatch" after pulling a new version of the code Date: Tue, 04 Jul 2023 12:20:25 +0000 Message-ID: <87cz17rhpy.fsf@localhost> References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <87cz3k8i27.fsf@localhost> <87sfcfdldt.fsf@localhost> <87bkj1g10g.fsf@localhost> <1c5d0ff0-5bae-1123-d2f7-64d9013fbc0f@gmail.com> <6070e598-7dee-1b7a-7f97-26a90618cb7a@gmail.com> <5603ba14-8120-cf38-05ba-4435c1bece3f@gmail.com> <03d0e4f4-3855-fa3e-d502-bee77ea53b74@gmail.com> <875y93kujy.fsf@localhost> <2e6ea8c1-19fb-298a-1336-27b09925d8a0@gmail.com> <871qi2mlnc.fsf@localhost> <0c4df525-8192-86d2-ece4-564c6726ec82@gmail.com> <87leg5i30y.fsf@localhost> <8d3db18e-301b-586e-a90c-4d968df4b56a@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39609"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62762@debbugs.gnu.org, bzg@gnu.org, dmitry@gutov.dev, Stefan Monnier , Alan Mackenzie , Eli Zaretskii To: Max Nikulin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 04 14:21:37 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qGf2G-000A6V-Ex for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jul 2023 14:21:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGf1p-0001J3-B8; Tue, 04 Jul 2023 08:21:10 -0400 Original-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 1qGf1i-0001Gv-OZ for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 08:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGf1i-0007Ws-DI for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 08:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGf1h-00020H-QQ for bug-gnu-emacs@gnu.org; Tue, 04 Jul 2023 08:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jul 2023 12:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62762 X-GNU-PR-Package: emacs Original-Received: via spool by 62762-submit@debbugs.gnu.org id=B62762.16884732577671 (code B ref 62762); Tue, 04 Jul 2023 12:21:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 4 Jul 2023 12:20:57 +0000 Original-Received: from localhost ([127.0.0.1]:35137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGf1d-0001ze-0W for submit@debbugs.gnu.org; Tue, 04 Jul 2023 08:20:57 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:40651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGf1X-0001zK-VG for 62762@debbugs.gnu.org; Tue, 04 Jul 2023 08:20:55 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3962B24002B for <62762@debbugs.gnu.org>; Tue, 4 Jul 2023 14:20:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1688473246; bh=iPfuTi+q4obubca9Lhfocsn3SrJYeC/hKaiGRkmw+34=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=jVIxvWa8CYEOHJeFaVFL8q+Km3OFGZWnyiggIUtT2euaFx3tj6a/JeuJ2WtFMPXkE BDMKPu/SVRUGEMe0AUrHxs6scpocga0rTh6S/75Uf2ySmsU4x4ZvQDziiEKiQcpxAD 1pOmCqY1Z382N4r7WFMaD1d9u1lMJkB9/lIC9vV3L4ItaYAO1BEfysKY1iUkeMweni YDTKkk/9IQ7iGAV4OqnFO9Hqzw+bXghT1fyAirrImRf3PZVLKZAXJKbNzNPFJP8CUC evJZTURlWvi8TovqrOh4CDQGQnP3PC07o2uED8sjr12Ib2LrqT5wYZFvOZFwNWkPPB YacuEEhL6UGaA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QwMMF5gf8z9rxL; Tue, 4 Jul 2023 14:20:41 +0200 (CEST) In-Reply-To: <8d3db18e-301b-586e-a90c-4d968df4b56a@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264578 Archived-At: Max Nikulin writes: >> Do you know how to do it? Our previous reproducers involved M-x >> package-install, but I am not sure how to test it without ELPA release. > > I have not tried yet, but I hope, preparing a tar file and using=20 > `package-install-file' should behave in the same way as installing from=20 > ELPA. Some spacemacs users believe they have noticed some difference,=20 > but I am not convinced. I tried this and indeed it revealed issues... With (defmacro org-require-with-shadowcheck (feature) "Load FEATURE making sure that it is loaded using current `load-path'. When FEATURE is not yet loaded, act like `require' does. When FEATURE is loaded, but not consistent with the current value of `load-path', re-load it." `(eval-and-compile (if (not (featurep ,feature)) (require ,feature) (let ((file (locate-library (symbol-name ,feature)))) (unless (equal (feature-file ,feature) file) ;; The feature is already provided, but from some other file ;; than expected. Presumably because `load-path` has been ;; changed since the file was loaded. This is likely a sign ;; that we're loading a mix of files from different versions. ;; That can spell trouble. (load file nil t t)))))) using https://git.sr.ht/~yantar92/org-mode/tree/feature/shadowcheck 1. emacs-30 -Q 2. M-x org-version 3. M-x package-install-file /path/to/org/lisp I am getting ob-C.el:40:2: Error: Eager macro-expansion failure: (error "Eager macro-exp= ansion skipped due to cycle: =E2=80=A6 =3D> (load \"org-element.el\") =3D> (macroexpand-all (org-requi= re-with-shadowcheck 'org =E2=80=A6)) =3D> (macroexpand (org-require-with-sh= adowcheck =E2=80=A6)) =3D> (load \"org.el\") =3D> (load \"org-element.el\")= ") which is rather curious since org.el is not supposed to load org-element.el I feel that I am missing something obvious. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at