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 18:29:52 +0200 Message-ID: <86y11hvn5r.fsf@gnu.org> References: <6bc3a410f0857c3e3433070ac19deaf7eae88c63.camel@yandex.ru> <31dfd7d1c1c19d3fff5609b86ce85c1533a84af0.camel@yandex.ru> <861pz9x45w.fsf@gnu.org> <86zflxvoux.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="16931"; 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 17:31: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 1tCiBL-0004Eu-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Nov 2024 17:31:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCiB0-0003wC-89; Sun, 17 Nov 2024 11:31:06 -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 1tCiAy-0003vV-04 for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 11:31:04 -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 1tCiAx-0005aE-36 for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 11:31:03 -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=/qzF1fk1QcsmQcsMfdgu8DltTZDY6hE+O+u3zRJHF2o=; b=mMSblR9wEb9P1A0fEnQXbVt9Z3gbGWHU385+LpxQJWmeYB4vM6SvC2nZ8pgvgo41uqLCC0F3QUQp5En/WAV7ErKtF9SMYBtRiHYFLnBEosT6dygLehM9eFhu4cuYJ2AOoHrHAeGtKl0Mk3+vKiZFmIwiuW0ziv3Nc13zCjB3xAVqA0Zyy9r5YOab86mu6Ka7jrsFtfcatkUvjGRxGWS77nNzIHD+BpovG2DJjh41BokbRpfR83exY8mPHfbwHyQ7nuSd2lss+tGzIEh9AScdn80l86lGUMTPQXtd6MazNdqwr21lVGHttlS0w4A5TgPnRq1fdHnMB2hCnEvYBXf6wg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCiAw-0002RE-Tz for bug-gnu-emacs@gnu.org; Sun, 17 Nov 2024 11:31: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 16:31: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.17318610068923 (code B ref 74382); Sun, 17 Nov 2024 16:31:02 +0000 Original-Received: (at 74382) by debbugs.gnu.org; 17 Nov 2024 16:30:06 +0000 Original-Received: from localhost ([127.0.0.1]:58247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCiA1-0002Ji-5V for submit@debbugs.gnu.org; Sun, 17 Nov 2024 11:30:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCi9y-0002HP-Vk for 74382@debbugs.gnu.org; Sun, 17 Nov 2024 11:30:03 -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 1tCi9s-0005ET-MZ; Sun, 17 Nov 2024 11:29:56 -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=/qzF1fk1QcsmQcsMfdgu8DltTZDY6hE+O+u3zRJHF2o=; b=DJ4F/dJdJJZq2OGPFU91 PFQQ7f3z02DjLYWcnG0YF0u5eJItvOvUQjAuuwRcN3achU2f/bkR6LCDchIAxhGiVyG5iNl806Ouy YzyFT8L72D5q6Lp+yyq+JMNE6UZQPJQbSVtLmJffNzh2y6MgCTVyPYPcYJ35dR15EEDvOrt8sgDWH vRlk6i6YbLcvSNhH/8IKIH6GXo+zPRvFBmJEHPzTXn6QSPAkYmR28lLdbRICYSTy4U3Bt/WnEccLx 5a4ccA3Q8E4G8s6TAynXOhODdni3oWAQMZedm6pN/K03l0KO0xQQS8wvbVDUvJFLao8MsEp0GAPCs f9Du9Bw5pxI+Gw==; In-Reply-To: (message from Konstantin Kharlamov on Sun, 17 Nov 2024 19:04:42 +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:295542 Archived-At: > From: Konstantin Kharlamov > Cc: gerd.moellmann@gmail.com, acm@muc.de, 74382@debbugs.gnu.org > Date: Sun, 17 Nov 2024 19:04:42 +0300 > > On Sun, 2024-11-17 at 17:53 +0200, Eli Zaretskii wrote: > > 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. > > Okay. So, how about a compromise here: provide release tarball with > modified Makefiles which upon calling `make clean` would not remove > `.elc` files — but let `make clean` inside git-repository remove elc > files? We already have a special target for that: maintainer-clean. There's no need to make such confusing differences between what "make clean" does in a tarball and in Git. That's a standard GNU target, so it should do what the GNU Coding Standards say, and do it consistently. Removing all the *.elc files (and a few *.el files that are generated by the build from Git) makes the build much longer, so doing so should be harder and rarer, not easier and more frequent. > Users expect `make clean` to remove non-config-related bulid artifacts. > Which includes `.elc` files. I can't count how many times I was > forgetting about this peculiarity of Emacs build system, and after > finding out that even `make clean` doesn't help with build errors (due > to COMPILE_FIRST files stuff), I had to nuke everything with `git clean > -fdx`. Even Gerd in this discussion forgot about this peculiarity — and > Gerd unlike me is a regular Emacs developer. You will have to get used to this curiosity of the Emacs build system, sorry. The main audience of the build stuff in Git is Emacs developers, so everyone else have to adapt.