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, 11 Apr 2023 18:59:17 +0000 Message-ID: <87jzyi8cu2.fsf@localhost> References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <837cujaqzq.fsf@gnu.org> <87wn2ilwed.fsf@localhost> <83zg7ealrd.fsf@gnu.org> <87pm8a8dx4.fsf@localhost> <8335569rs7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38045"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bzg@gnu.org, dmitry@gutov.dev, 62762@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 11 20:57:10 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 1pmJAz-0009iP-O2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Apr 2023 20:57:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmJAt-0002TT-W2; Tue, 11 Apr 2023 14:57: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 1pmJAs-0002T4-Cd for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 14:57: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 1pmJAs-0004rw-3g for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 14:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmJAr-0006Ry-Lm for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 14:57: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, 11 Apr 2023 18:57: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.168123942024787 (code B ref 62762); Tue, 11 Apr 2023 18:57:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 11 Apr 2023 18:57:00 +0000 Original-Received: from localhost ([127.0.0.1]:38237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJAq-0006Rj-7V for submit@debbugs.gnu.org; Tue, 11 Apr 2023 14:57:00 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:59497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJAl-0006RS-FH for 62762@debbugs.gnu.org; Tue, 11 Apr 2023 14:56:58 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9181324034D for <62762@debbugs.gnu.org>; Tue, 11 Apr 2023 20:56:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681239409; bh=EqDb3/JNdUl+2rxf3iIHhTIdfsEfcHUpsB7iZn7Lur4=; h=From:To:Cc:Subject:Date:From; b=qBlCh+XEfYHSsTq9X2jibnrIaUzsRilfLlau/gqnIj3WnyKO/iM4dOLwIhv6Ni8Hh vzcABDOQB+qYO7Xghv2xJVwiEwfUZoFJXpBKQKB7saTpJ1KI6+IzbbcIOfW1wg4e4T BP9gkB1NpN3aDoDcNU2uGV6I4r5KI9H99/dAsBASJY1Jeb1IcVXgHVtyvsFJECPS/f rFXjP6KdiwTJ38DnOIVnmDcQu3EBMJSVgdFW5hPRspN2vUH8bhliQ+EbyZ1gmjJ0FD VDWqTprYkGJ34LNcfIGKddyw0JUGE5ZSPkhM1YTATbVjH4LbwqlDHXbIUZ3VlxkZhW AkH3Y5Gjevc5g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pww746rJ9z9rxD; Tue, 11 Apr 2023 20:56:48 +0200 (CEST) In-Reply-To: <8335569rs7.fsf@gnu.org> 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:259667 Archived-At: Eli Zaretskii writes: >> Note that the reported issue will only happen when Org version string >> changes between the builds. > > Which happened twice during the last week or two, AFAIR. Moreover, it > happens on almost every branch, and if someone builds several branches > routinely (I do), the annoyance happens several times in a row. Fair point. >> What we might do to work around the problem is detecting Emacs compilation >> and disable the check. Is there a way to detect that Emacs source is >> being compiled from Elisp? > > Not sure I understand: the byte compiler is a Lisp program, so every > compilation is "from Lisp", no? Or what am I missing? I mean, can we detect when the compiler is invoked from "make" in Emacs source? >> > Also, how about the alternative of including the version string in >> > every Org Lisp file that needs to be recompiled when the version >> > changes (or the macros change)? Then recompilation will happen >> > automatically, and this problem will go away. Does this make sense? >> >> No. We will not be able to maintain this manually. > > I guess it means we are on our own, sigh... You are not. In the worst case, we may add some flag into Org sources that are inside Emacs tree. Something like `org-version-built-in-p' that will be set to t only in the Emacs' version of Org. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at