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: Mon, 08 May 2023 10:05:05 +0000 Message-ID: <875y93kujy.fsf@localhost> References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <87wn2ilwed.fsf@localhost> <83zg7ealrd.fsf@gnu.org> <87pm8a8dx4.fsf@localhost> <87pm7vt0mx.fsf@localhost> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16423"; 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 Mon May 08 12:02:25 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 1pvxhH-00040K-Rs for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 May 2023 12:02:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvxh4-0001If-Ab; Mon, 08 May 2023 06:02: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 1pvxgw-0001I7-Tb for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 06:02:03 -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 1pvxgw-0003iL-L5 for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 06:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pvxgw-0004Xi-1Y for bug-gnu-emacs@gnu.org; Mon, 08 May 2023 06:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 May 2023 10:02:02 +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.168354012017454 (code B ref 62762); Mon, 08 May 2023 10:02:02 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 8 May 2023 10:02:00 +0000 Original-Received: from localhost ([127.0.0.1]:39229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvxgu-0004XS-36 for submit@debbugs.gnu.org; Mon, 08 May 2023 06:02:00 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:39905) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pvxgs-0004X8-Df for 62762@debbugs.gnu.org; Mon, 08 May 2023 06:01:59 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0E1792402B5 for <62762@debbugs.gnu.org>; Mon, 8 May 2023 12:01:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1683540111; bh=oNUAZwev149qBGr9apIQfTvdrCHnpqYnB0b5VySTQao=; h=From:To:Cc:Subject:Date:From; b=hKiOmko/wiLQCXIO1UtZgX1+WlXiAJEu5OtkwzDc3IseGk4GLPjTrhxZlg+iYnDBF REhKsLtaP46q7gUG6gUaBfHuUMue5+PELDa5Q6+91HZEdPG7bzkMM34uR3VTvMxy+g kzT4KxPNOI6gygFosl5/le7dxe1xpyTgnt/E4gtlJwk76KXvrefYTgp7vtobMGHFm6 6raz4OOdR3bwm3820h5b68nA9vBsiWpRy/oOXqqOXaSKyjLGuttzKxVe5jOPnQTCHI Ug6ejNA5ChB1nCEUlhFxM+birb0ViGCBV2kOHTS4dOwlpeOK0i8hltCGVKpk3Tibgk ttgGjbQrnW+tg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QFGzL08d0z6tvn; Mon, 8 May 2023 12:01:49 +0200 (CEST) In-Reply-To: <03d0e4f4-3855-fa3e-d502-bee77ea53b74@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:261299 Archived-At: Max Nikulin writes: >> So, to me, (assuming the above is true) the remaining question is what >> Org developers want to do about `git pull; make` in Org's own repository. > > Perhaps `org-assert-directory' may be added to `org-assert-version' > > > (defun tst-assert-load-dir () > (let ((dir (tst-get-load-dir)) > (url "https://orgmode.org/worg/org-faq.html#mixed-install")) > (unless (equal tst-load-dir dir) > (error "Path shadowing detected, see <%s>. %s vs %s" > url dir tst-load-dir)))) Sounds reasonable. I think we can try to do the following: 1. Use the load-dir test, warn, and try to re-load 2. Use org-assert-version, but downgrade error to simple warning WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at