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: Wed, 03 May 2023 10:30:55 +0000 Message-ID: <87bkj1g10g.fsf@localhost> References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <837cujaqzq.fsf@gnu.org> <87wn2ilwed.fsf@localhost> <83zg7ealrd.fsf@gnu.org> <87pm8a8dx4.fsf@localhost> <87pm7vt0mx.fsf@localhost> <87cz3k8i27.fsf@localhost> <87sfcfdldt.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23445"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bzg@gnu.org, dmitry@gutov.dev, Eli Zaretskii , 62762@debbugs.gnu.org, Max Nikulin To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 03 12:29:36 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 1pu9js-0005v4-0T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 May 2023 12:29:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pu9jM-0006qg-FI; Wed, 03 May 2023 06:29:04 -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 1pu9jK-0006h8-IV for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 06:29: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 1pu9jJ-00049e-W9 for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 06:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pu9jJ-0004Jg-RG for bug-gnu-emacs@gnu.org; Wed, 03 May 2023 06:29: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: Wed, 03 May 2023 10:29: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.168310968616507 (code B ref 62762); Wed, 03 May 2023 10:29:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 3 May 2023 10:28:06 +0000 Original-Received: from localhost ([127.0.0.1]:45697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu9iP-0004IA-9o for submit@debbugs.gnu.org; Wed, 03 May 2023 06:28:05 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:57107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pu9iF-0004HY-Fn for 62762@debbugs.gnu.org; Wed, 03 May 2023 06:28:04 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id EDF29240345 for <62762@debbugs.gnu.org>; Wed, 3 May 2023 12:27:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683109670; bh=sbSBN7SvYmHE0KhZ/hdxTJR1uPkcd230X1XoJcZlJhk=; h=From:To:Cc:Subject:Date:From; b=KvBGUbNTLri+6EF4cWYsbWu80hARDtQQSZbP9ScTiqZSRkVa9GxsW54+jnTdtGG1H /r3yzCTGPi7u1jqOoIuXq2wfP4/bP4dxCaH5bI4wt8vk4PgVCb5byV7oEOeKApE48y VFYFt0VvqIrJzpBVQKd+YIKFOgw+y5wA0ASWNNtSOBQMWqBCGKKDjJpqh9X/OD7f+T zXH/j2l7VxZGL8O+1bkeIphjqrmMJ0A5DM2J155xCv4KULLVNaRfRMFT9YDsCCikRI Adg7LIgmvN24PlSMel3b7PpMpCKfx3aGNB1OF+CDQoUrVEwIEROtYW3f5OrM+jmTrI /gvkJA+rizCzQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QBCnc6hckz6tn4; Wed, 3 May 2023 12:27:48 +0200 (CEST) In-Reply-To: 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:260971 Archived-At: Stefan Monnier writes: >> This looks interesting, if we replace all the requires in Org with >> `my-require-with-shadow-check'. > > If we make it signal an error, then I think we only need it for the > requires that load "the one first file" (which you suggest could be > `org-macs.el`). This might work. Max, do you see any obvious downsides in Stefan's idea about consulting `load-history' vs. `load-path'? >> Although, AFAIU, it does not address the problem with stale .elc files >> kept from the previous Org version in the same folder (AFAIR, it is what >> often happens in ELPA builds). > > I don't understand what you mean here: when `package.el` compiles the > files of the Org package, that package has just been untarred into > a fresh new directory, so there should never be any stale `.elc` files > in there. I am referring to https://orgmode.org/list/jwvsfkv5s7l.fsf-monnier+emacs@gnu.org >> And we somehow need to make sure that `my-require-with-shadow-check' is >> available for all its users. > > Ah, the fun of bootstrapping :-) I guess that the cleanest way could be putting `require-with-shadow-check' into a new file. Then, we have no chance of this file being loaded by old Org version. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at