From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48079: Temporary files while building after native-comp merge Date: Wed, 05 May 2021 14:24:34 +0000 Message-ID: References: <835z06hanw.fsf@gnu.org> <83y2d2fv6c.fsf@gnu.org> <87r1ipimla.fsf@gnus.org> <87v97x7f49.fsf@gnus.org> <83sg312xe1.fsf@gnu.org> <875yzx73f4.fsf@gnus.org> <83mtt92sap.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="992"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , stefan@marxist.se, 48079@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 05 16:25:16 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 1leISg-000Abw-5P for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 16:25:14 +0200 Original-Received: from localhost ([::1]:56138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leISf-0006Q2-51 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 10:25:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leISU-0006MY-Pl for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 10:25:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leISU-0004W4-Gu for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 10:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leISU-0004Lf-CX for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 10:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 May 2021 14:25: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.162022468116693 (code B ref 48079); Wed, 05 May 2021 14:25:02 +0000 Original-Received: (at 48079) by debbugs.gnu.org; 5 May 2021 14:24:41 +0000 Original-Received: from localhost ([127.0.0.1]:60565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leIS9-0004LB-5i for submit@debbugs.gnu.org; Wed, 05 May 2021 10:24:41 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:60873) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leIS4-0004L5-QW for 48079@debbugs.gnu.org; Wed, 05 May 2021 10:24:40 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 145EOYhV018361 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 5 May 2021 14:24:35 GMT In-Reply-To: <83mtt92sap.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 05 May 2021 17:01:34 +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" Xref: news.gmane.io gmane.emacs.bugs:205703 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: stefan@marxist.se, akrl@sdf.org, 48079@debbugs.gnu.org >> Date: Wed, 05 May 2021 14:47:43 +0200 >> >> Eli Zaretskii writes: >> >> >> I guess we can't set up a signal trap to delete the temp file if we're >> >> being interrupted? >> > >> > You mean, in the Makefile? That won't handle the cases where the >> > compilation is manually invoked (e.g., from a running Emacs). >> >> I'm not actually sure -- I don't know what the possibilities at our >> disposal are here, really. If we can catch this in Emacs, that'd be >> nicer... but can we? > > With complicated enough code, sure, we could. > >> Another thing I'm wondering about is why we write the subr.elc0EdJIV >> file at all, and then apparently don't rename it to .elc immediately? >> It seems to linger on in that name for a very long time? But I haven't >> actually looked at the code here. > > AFAIR, we rename it atomically when we are done with it. I guess with > native-compilation it takes longer to "be done with it". Exactly, we can't rename before the native compilation is done as native compilation is a side product of byte compilation and the build system knows only the latter. >> So is it writing the subr.elc0EdJIV file, then doing the .eln >> compilation, and then moving subr.elc0EdJIV to subr.elc? > > Yes, I think so. Confirm. Andrea