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#48079: Temporary files while building after native-comp merge Date: Thu, 06 Jan 2022 18:48:01 +0200 Message-ID: <83o84o7qv2.fsf@gnu.org> References: <835z06hanw.fsf@gnu.org> <83y2d2fv6c.fsf@gnu.org> <83wnslekok.fsf@gnu.org> <83lf91e9bq.fsf@gnu.org> <83zgocbv2u.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12530"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, stefan@marxist.se, monnier@iro.umontreal.ca, 48079@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 06 17:49:45 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 1n5VxQ-00030o-Sc for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jan 2022 17:49:45 +0100 Original-Received: from localhost ([::1]:42466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5VxN-0006eo-Hd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jan 2022 11:49:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Vx0-0006eb-C7 for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 11:49:21 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5Vwk-0007Nl-3D for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 11:49:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n5Vwk-0006x2-2L for bug-gnu-emacs@gnu.org; Thu, 06 Jan 2022 11:49: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: Thu, 06 Jan 2022 16:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48079 X-GNU-PR-Package: emacs Original-Received: via spool by 48079-submit@debbugs.gnu.org id=B48079.164148769126597 (code B ref 48079); Thu, 06 Jan 2022 16:49:02 +0000 Original-Received: (at 48079) by debbugs.gnu.org; 6 Jan 2022 16:48:11 +0000 Original-Received: from localhost ([127.0.0.1]:42061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Vvv-0006ut-AD for submit@debbugs.gnu.org; Thu, 06 Jan 2022 11:48:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5Vvt-0006uT-J2 for 48079@debbugs.gnu.org; Thu, 06 Jan 2022 11:48:10 -0500 Original-Received: from [2001:470:142:3::e] (port=49904 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5Vvm-0007IZ-Ll; Thu, 06 Jan 2022 11:48:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=UFNYvLNsjpt2Mj95XWfATHFP1WM+10Dwgu6scLNdDmw=; b=Y7eDN+z9txKE 3bFuS6BtUT5Wj9HJBYw56/6wZUydSk4hNyzyikON800qpC/18wY1h+R027T0EozC5rHOV5Up+OyAt uNpZ9yRCkOh6OdhEt37pi0VHU/HwIg6NBRoCdBdohCx7NViw7VBNpMUIJUe8k8W5wByOc2/OmYc+1 XEfPyrDioitJ3ryL/t0C7duEivPHwHWFWuq8l6z9fq4smfazka7i7lsF72uugjsUDYYfFoOis7nZX 6GmmVYCzwFvwZLG+HVaKW9pjyhRzHOQ1tx19EpO4Wv+7i/M4e759cHPzsufPvqq1EHPERFGBntCOP VieUlNjksqlJhcZgyJ6qmA==; Original-Received: from [87.69.77.57] (port=3475 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5VvY-0001L4-5U; Thu, 06 Jan 2022 11:47:52 -0500 In-Reply-To: (message from Glenn Morris on Thu, 06 Jan 2022 11:30:26 -0500) 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:223738 Archived-At: > From: Glenn Morris > Cc: Eli Zaretskii , 48079@debbugs.gnu.org, stefan@marxist.se, Stefan Monnier > Date: Thu, 06 Jan 2022 11:30:26 -0500 > > Did you consider using a pattern rule with two targets in the Makefile > to properly express the relationship between .el and .elc/.eln? The problem here is that the *.eln files end up in a subdirectory of native-lisp/ whose precise name is only known to Emacs, and so cannot be easily written. You need the Emacs binary to be built (which already introduces some "interesting" dependencies), and you need to ask Emacs about the name of that subdirectory. And if that's not enough, there's another complication: some of the *.eln files need to be in that unknown directory, and some (most) need to be in its preloaded/ subdirectory. So we need two different rules for 2 groups of *.el files, and we need to keep those groups up-to-date at all times.