From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#48117: 28.0.50; Update of loaddefs.el during normal build is unreliable Date: Mon, 03 May 2021 08:41:49 +0000 Message-ID: References: <8335v8c7o0.fsf@gnu.org> <2weeer23xj.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48117@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 11:07:47 2021 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 1ldUYM-0006LW-Ly for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 11:07:46 +0200 Original-Received: from localhost ([::1]:32820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldUYL-0002PX-MI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 05:07:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldU9S-0007FS-LC for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldU9S-0003G5-Aj for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldU9S-0005PF-8X for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2021 08:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48117 X-GNU-PR-Package: emacs Original-Received: via spool by 48117-submit@debbugs.gnu.org id=B48117.162003131420775 (code B ref 48117); Mon, 03 May 2021 08:42:02 +0000 Original-Received: (at 48117) by debbugs.gnu.org; 3 May 2021 08:41:54 +0000 Original-Received: from localhost ([127.0.0.1]:46178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldU9K-0005P1-KX for submit@debbugs.gnu.org; Mon, 03 May 2021 04:41:54 -0400 Original-Received: from heytings.org ([95.142.160.155]:35274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldU9G-0005Ov-2J for 48117@debbugs.gnu.org; Mon, 03 May 2021 04:41:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1620031309; bh=cWBOzvKNi3MUAHCQh1xPwPLmgfSWt6qjerZDAI7hS6U=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=m4v0ONG4t5mIcCof/aFrIKOkql0MjtD7MsxAoW+a1AhSCJIG6b5kGWMPlfhBg2fjT WeaJJOJDn9Wm13y5viIXBSBWF/zbgy7zrTBp/73Kuppz2gxGq8pbhgZk0Yuk2lWDWE ermbJ6aG0wXN+DVGdI8050Utf0fnSKaAwoRmCAOr5t4+ynl5/l3F9ko6YxSCQsB0O6 U3jSjl4FiHvseqA7RoB8HIJOxA3/pIqQg2qYJPYyaqanXklMqFhmMb1shnu+8r70OH 7HAL9iIYascbywj8AheXQSNgB00QBoacyk0Em0SAq5MJBqqESGU1ImqNAD422m+ZQ8 qxPD/CALM39tQ== 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" Xref: news.gmane.io gmane.emacs.bugs:205485 Archived-At: >> Another idea, FWIW: In the make rule for $(lisp)/loaddefs.el, if >> loaddefs.el exists and is older than ldefs-boot.el, start by copying >> the latter to the former. This ought to limit how outdated loaddefs can >> get? > > BTW, I think this might actually make things worse in terms of detecting > new secondary loaddefs files like texinfo-loaddefs (not that those > happen very often), by bumping the timestamp on the primary loaddefs. > Which is one of the reasons why I still believe that my proposed solution is better: whenever lisp/ldefs-boot.el is more recent than lisp/loaddefs.el, issue a warning when make is invoked to suggest the regeneration of _all_ autoload files, and add a command to do this in the main Makefile: make autoloads would do find -name '*loaddefs.el' -delete && make -C lisp autoloads. In theory this should have the same effect as make -C lisp autoloads-force, but that command is only marginally faster, and I much prefer the clarity / determinicity of a "delete all and regenerate" operation.