From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.bugs Subject: bug#74382: `compile-first` Make rule is no longer using `load-prefer-newer` Date: Sun, 17 Nov 2024 01:54:48 +0300 Message-ID: <46a8bf630b89755bd6edc1521390352ecc176881.camel@yandex.ru> References: <6bc3a410f0857c3e3433070ac19deaf7eae88c63.camel@yandex.ru> <86o72ff2h0.fsf@gnu.org> <2b134414542a4af7b87435099570fd88c7d25aa6.camel@yandex.ru> <86y11jvthj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1041"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.54.1 Cc: acm@muc.de, 74382@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 16 23:55:28 2024 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 1tCRhP-00006h-U8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Nov 2024 23:55:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCRh2-00018I-Fi; Sat, 16 Nov 2024 17:55:04 -0500 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 1tCRh0-00016u-Nz for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 17:55:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCRh0-00085T-EM for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 17:55:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=/Fe2Qvs6Trd7Ibn3vD5TTmE7IFgDyNmyMuwIksuoD9I=; b=Wa2dOeDPEUx64IywUWjjvsmMNgw4OQD90Bo/qZqhpEM9KtJe/3ciV67kfxCo2PAz4vN/sgXeW4DNsz5YG0KT5wBrpW6KhrBSR9eV4jHzrxLgT9VLElcA91QgpeUTR7CAVu/W2ERVTlXLHxQNLsjq8OokFNY632mRvHoQe9yjU28otCVacvyGxy4MI4i1HC1ZubpO2RKujzD6qwzs03mwQBS/7iP7oFIDhlJIvj6mEUNkfeo2wK/S5YNSjA6stdRgdu0pRUaGGF4PmSv7Sj/UKnmvZ3HGjXyeWfVw0GBlxrGm/xmDQdO7DjOztf/4l9cdgCdXlRbGoPGhMjgw63xMqQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCRh0-0003ru-5E for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 17:55:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Konstantin Kharlamov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2024 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74382 X-GNU-PR-Package: emacs Original-Received: via spool by 74382-submit@debbugs.gnu.org id=B74382.173179770114866 (code B ref 74382); Sat, 16 Nov 2024 22:55:02 +0000 Original-Received: (at 74382) by debbugs.gnu.org; 16 Nov 2024 22:55:01 +0000 Original-Received: from localhost ([127.0.0.1]:55117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCRgz-0003ra-59 for submit@debbugs.gnu.org; Sat, 16 Nov 2024 17:55:01 -0500 Original-Received: from forward502b.mail.yandex.net ([178.154.239.146]:49940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCRgw-0003rL-Go for 74382@debbugs.gnu.org; Sat, 16 Nov 2024 17:54:59 -0500 Original-Received: from mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:c61f:0:640:7720:0]) by forward502b.mail.yandex.net (Yandex) with ESMTPS id 40E1760F47; Sun, 17 Nov 2024 01:54:50 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id nsXXgROOjGk0-4BgH11DQ; Sun, 17 Nov 2024 01:54:49 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1731797689; bh=/Fe2Qvs6Trd7Ibn3vD5TTmE7IFgDyNmyMuwIksuoD9I=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=hbAZBxvDNd6CWjCEC0vHKgA/Rfb/WfzGKqIO5dk6YFWBHuB5mIWiTEduQyfKpshcX E18fWrLOnJGWQas/pUHCdChUyEo2JDSsiM1QKIqW5gdMlkQj1Flt3FOyhlqDqOwOjT aKHQjLhrS0sgMmbTA1I05HA7azKFUBkRzDPu3WX0= Authentication-Results: mail-nwsmtp-smtp-production-main-39.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <86y11jvthj.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:295500 Archived-At: On Sat, 2024-11-16 at 22:00 +0200, Eli Zaretskii wrote: > > Cc: acm@muc.de, 74382@debbugs.gnu.org > > From: Konstantin Kharlamov > > Date: Sat, 16 Nov 2024 21:43:41 +0300 > >=20 > > > I don't think this is related to what lisp/Makefile does.=C2=A0 When > > > macroexp.el is updated, builds are known to fail until you remove > > > macroexp.elc (or bootstrap). > >=20 > > Okay, but why you need to remove macroexp.elc >=20 > Because macroexp.el contains macros, which might have been already > expanded in the .elc file(s). >=20 > > isn't it the build system job to rebuild it when it's changed? >=20 > It's impractical, because we have many files with macros.=C2=A0 Tracking > all of those dependencies would mean that changes in any file will > trigger unnecessary recompilation of many other files.=C2=A0 If you don't > mind spending that time waiting for the build, just "make bootstrap" > every time you update from Git, and you will have that. Unless I'm missing something, the problem seems to be with one exact file, macroexpand.elc, and not with others. So the algorithm is simple: if `macroexpand.el` was modified, remove its elc file. You don't need to track any dependencies.