From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62762: 'make' often errors with "Org version mismatch" after pulling a new version of the code Date: Tue, 02 May 2023 09:12:18 -0400 Message-ID: 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> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30066"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: bzg@gnu.org, dmitry@gutov.dev, Eli Zaretskii , 62762@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 02 15:13: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 1ptpoo-0007Wc-6k for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 May 2023 15:13:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptpoX-0005C3-J3; Tue, 02 May 2023 09:13:05 -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 1ptpoU-0005Bj-Mz for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 09:13: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 1ptpoU-0000rd-Ai for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ptpoU-0002x6-66 for bug-gnu-emacs@gnu.org; Tue, 02 May 2023 09:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 May 2023 13:13: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.168303315011306 (code B ref 62762); Tue, 02 May 2023 13:13:02 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 2 May 2023 13:12:30 +0000 Original-Received: from localhost ([127.0.0.1]:41968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptpnx-0002wH-SM for submit@debbugs.gnu.org; Tue, 02 May 2023 09:12:30 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ptpnu-0002w3-TS for 62762@debbugs.gnu.org; Tue, 02 May 2023 09:12:28 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id A2A74100048; Tue, 2 May 2023 09:12:21 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 000061000BF; Tue, 2 May 2023 09:12:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1683033140; bh=npaVF3P4z2+x41w+AGIk0F/t0y8M25YQJ8wtONpwm9o=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=AO/cNJ5JczZs/ymmcFQAsc1HrR+DuZMEbMYGLxrfNvGvQ5FUPCQYCyF3hrSzZtgUF wrRVbKz+HdKPhGYqYxJuaRTD+Kw7IZiS9bzJo348zDFE3MlXiSMFhS4vImNnApM6+v 96Hm8soDcRjJ/W3X4YccO+4AfsGx+rzEuLRSk1/9qt6t4YduRicerygg5tkHGlGMF5 fpsNEXBYRaWGzC/42WVsP8LQeQdhquR0zJ0fNqfwqykDHlurMeW/Z61jtzpsaFH4qn PilGx2bbQQFMm81/AmyH6G42E2CGN3NzFOkKE+SmZu9Ya2U5TWFw5tNqc3eGaIlS/1 6uBO8ewrrMLTQ== Original-Received: from pastel (unknown [45.72.217.176]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9786712045B; Tue, 2 May 2023 09:12:19 -0400 (EDT) In-Reply-To: <87sfcfdldt.fsf@localhost> (Ihor Radchenko's message of "Tue, 02 May 2023 11:26:54 +0000") 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:260923 Archived-At: >>> May you provide an approximate code for that function? >> >> Something like (guaranteed 100% untested): >> >> (defun my-require-with-shadow-check (feature &optional reload) > > Thanks! > 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`). > 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. Stale `.elc` files can happen for "in place builds", such as when doing `git pull; make` in Emacs's source directory, but we just disabled the mixed-version check for that case... > And we somehow need to make sure that `my-require-with-shadow-check' is > available for all its users. Ah, the fun of bootstrapping :-) Stefan