From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74382: `compile-first` Make rule is no longer using `load-prefer-newer` Date: Sun, 17 Nov 2024 17:53:10 +0200 Message-ID: <86zflxvoux.fsf@gnu.org> References: <6bc3a410f0857c3e3433070ac19deaf7eae88c63.camel@yandex.ru> <31dfd7d1c1c19d3fff5609b86ce85c1533a84af0.camel@yandex.ru> <861pz9x45w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35609"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, acm@muc.de, 74382@debbugs.gnu.org To: Konstantin Kharlamov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 17 16:54:21 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 1tChbQ-00092f-Us for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Nov 2024 16:54:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tChbB-00076i-Mr; Sun, 17 Nov 2024 10:54:05 -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 1tChb8-00076W-Ph for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 10:54:03 -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 1tChb8-0006pQ-H2 for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 10:54: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:From:Date:To:Subject; bh=z9wDUh2vlrwhOAek/Qc0+TkMEp022ss5JHBVW/U5JRs=; b=qKr7/fIdYdyjez/WM5/mrzWulteKGc/6ZXB5qOzZ1AVd2n2IJo3v2pkP/SjnpBHOgqciaFbXCisyZgOImc5MTDBXpgtRkAs/gRzb6K9unawKwfcZLW+2hWlf+MSvvMLwM7Xu7p19MenIiMDUILNcc4OQIk0Ldb/OrHbsHBHajYDpJ6j3C1nvhbzdBFghkYhCEfqDH/62rFwqhPaxNDKfz79YTPDW8i5rt57TlLCtThpao6380+8Ad9b0jL5j1IvC972PdTZ06vrnUyuSekMOqXnz+kkqEnEx+ZDv1z6yba7pg5az61kWp7YaxYP3DhWycDEF7tuJg3uAkdvXOQoKQA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tChb8-0000WL-Bs for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 10:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Nov 2024 15:54: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.17318588041948 (code B ref 74382); Sun, 17 Nov 2024 15:54:02 +0000 Original-Received: (at 74382) by debbugs.gnu.org; 17 Nov 2024 15:53:24 +0000 Original-Received: from localhost ([127.0.0.1]:58175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tChaV-0000VL-HU for submit@debbugs.gnu.org; Sun, 17 Nov 2024 10:53:23 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tChaR-0000V3-RG for 74382@debbugs.gnu.org; Sun, 17 Nov 2024 10:53:21 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tChaL-0006kj-Ek; Sun, 17 Nov 2024 10:53:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=z9wDUh2vlrwhOAek/Qc0+TkMEp022ss5JHBVW/U5JRs=; b=VCDklm0OEo81tNpjyUOk yNUSZcM7ADh9xx9rJFLjt4beHJa3PjVGGF270z0jGbvp8vJDXiSdf7Ify7wGHOAb8kG5QXSmsRaKT iPBDsn9y71dHd+sLx7rveHZdC82pMNlgvtz2oaQaZeBR3THobTEunNoc+hrlLix5hp1A4OziDocOY FmgFLZG4WAwwPW7nqJd17As5UBnSMeJinBSw8JqMFTmGcJmmb8cjUqqFGE5rtjq274JiZeLXvi9Re dcsjkmTuA/X3TEbjQIlS5vxNiBKY/m2i2yRqH9gDkRNa8ygxUJJrBe0b93orH8SdZRsUuKJOej8CJ RZoxcz+wKcabZw==; In-Reply-To: (message from Konstantin Kharlamov on Sun, 17 Nov 2024 18:43:17 +0300) 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:295536 Archived-At: > From: Konstantin Kharlamov > Cc: gerd.moellmann@gmail.com, acm@muc.de, 74382@debbugs.gnu.org > Date: Sun, 17 Nov 2024 18:43:17 +0300 > > On Sun, 2024-11-17 at 17:37 +0200, Eli Zaretskii wrote: > > > Cc: Alan Mackenzie , 74382@debbugs.gnu.org > > > From: Konstantin Kharlamov > > > Date: Sun, 17 Nov 2024 18:21:36 +0300 > > > > > > On Sun, 2024-11-17 at 08:25 +0100, Gerd Möllmann wrote: > > > > Konstantin Kharlamov writes: > > > > > > > > > Sure, I just reproduced it after removing all `.elc` files in > > > > > the > > > > > repo, > > > > > here how: > > > > > > > > > > 1. `git checkout f2f13fa630b` (a commit from April) > > > > > 2. `make -j$(nproc)` to compile. Note: you don't need to wait > > > > > for > > > > > build > > > > > to finish, I just waited for all files under `lisp/emacs-lisp` > > > > > directory to finish compilation, and then ^C'ed it. > > > > > 3. `git checkout 29098a291f5` (a November commit). > > > > > 4. `make -j$(nproc)` > > > > > > > > This would always work if lisp/Makefile would rm the .elc files > > > > from > > > > COMPILE_FIRST, right? I suspect this isn't done to speed up the > > > > build > > > > in > > > > the usual case, and because it's a bit difficult to automatically > > > > determine if it has to done or not. > > > > > > > > Does a "make clean" after the checkout in (3) make it work? > > > > > > I don't think so, because `make clean` for some reason doesn't > > > remove > > > `.elc` artifacts. > > > > And it shouldn't, because *.elc files are part of a release tarball. > > But if someone decided to build from a release tarball, sure they can > produce .elc files as well, can't they? No, Emacs release tarballs come with *.elc files, and users shouldn't recompile them. For starters, it makes the build significantly longer, besides being unnecessary. Recompiling *.elc files is only needed if the corresponding *.el files are modified, something that doesn't normally happen when you build a release tarball.