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#27253: 25.2; Suggestion: On startup after Emacs version change, package should offer to correct invalid bytecode Date: Wed, 15 Jun 2022 13:18:29 -0400 Message-ID: References: <87shjeo42b.fsf@moondust.localdomain> <87pmkcht9m.fsf@gnus.org> <87letxg9li.fsf@gnus.org> 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="4706"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "N. Jackson" , 27253@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 15 19:19:14 2022 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 1o1Wff-0000y8-BB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Jun 2022 19:19:11 +0200 Original-Received: from localhost ([::1]:52384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1Wfe-0002R9-0g for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Jun 2022 13:19:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1WfW-0002R0-Qc for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 13:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1WfW-00027o-ID for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 13:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1WfW-0001qs-Ex for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 13:19: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: Wed, 15 Jun 2022 17:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27253 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 27253-submit@debbugs.gnu.org id=B27253.16553135217084 (code B ref 27253); Wed, 15 Jun 2022 17:19:02 +0000 Original-Received: (at 27253) by debbugs.gnu.org; 15 Jun 2022 17:18:41 +0000 Original-Received: from localhost ([127.0.0.1]:39743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1WfB-0001qC-36 for submit@debbugs.gnu.org; Wed, 15 Jun 2022 13:18:41 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:60440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1Wf8-0001pv-3f for 27253@debbugs.gnu.org; Wed, 15 Jun 2022 13:18:40 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 0EB1180784; Wed, 15 Jun 2022 13:18:32 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9504C8019D; Wed, 15 Jun 2022 13:18:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1655313510; bh=7h1kDLS2eQoT4uVstKwo4OLGXHaS+1n83S/QUFNzSL4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZEiy87cMOM1D8Dk3HIq7Fz441lZYzPQvgptgpi5kZ7DVOK3T8jtAS57ALUX4mSLrt WfusMeag6IoYv4h2+Heu1zzuoieA5Qmxi0HChDdStLDd5rYjw1sAYNjbmeUPIgmHbQ Y28HpiONxDZM0eHKopI7yskeuiaerdewCkpWtSkJ/wyjctlJr3E95moQbbZt9NmfRq VQu8z4rnknHgo9ZHfD8na1ns+2EzxMAswVDiEPZ0H4HxD4OoymzVuMDJR8sPPYp1D0 4khjFKTBait+50AM7LmHl4B7HoBXDkn43V0FOk/ynhSxmi536usY+DPnVMxghK8WtX ntIdPZP1uXKaw== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7FDE11203A5; Wed, 15 Jun 2022 13:18:30 -0400 (EDT) In-Reply-To: <87letxg9li.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 15 Jun 2022 18:44:25 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:234601 Archived-At: Lars Ingebrigtsen [2022-06-15 18:44:25] wrote: > Lars Ingebrigtsen writes: >> There should perhaps be a command to recompile all installed packages? >> Or does that exist somewhere? (I don't see any such command...) > Perhaps Stefan knows; added to the CCs. There should be a command/function to recompile an installed package, and maybe another to do the same for all packages, yes. I don't think the OP's situation would be best served by recompiling everything, because usually recompilation is only needed for those few packages that were compiled a *long* time ago ( where I'd expect most packages have probably been recompiled since then because of package updates). But there's definitely room for improvement along the path of: detecting the presence of a file that's too old, figuring out which package needs to be recompiled, and then recompiling it. Stefan