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: Wed, 05 May 2021 17:01:34 +0300 Message-ID: <83mtt92sap.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9553"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, stefan@marxist.se, 48079@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 05 16:03:25 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 1leI7Z-0002NK-H5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 16:03:25 +0200 Original-Received: from localhost ([::1]:43234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leI7Y-0005qJ-Hq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 May 2021 10:03:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39040) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leI7C-0005pD-PT for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 10:03:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leI7C-0007yl-3s for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 10:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leI7C-00047U-0k for bug-gnu-emacs@gnu.org; Wed, 05 May 2021 10:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 May 2021 14:03:01 +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.162022332515824 (code B ref 48079); Wed, 05 May 2021 14:03:01 +0000 Original-Received: (at 48079) by debbugs.gnu.org; 5 May 2021 14:02:05 +0000 Original-Received: from localhost ([127.0.0.1]:60440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leI6H-00047A-Ai for submit@debbugs.gnu.org; Wed, 05 May 2021 10:02:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leI6F-00046l-9s for 48079@debbugs.gnu.org; Wed, 05 May 2021 10:02:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44971) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leI69-0007QG-PS; Wed, 05 May 2021 10:01:57 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1891 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1leI5z-0001gI-Jj; Wed, 05 May 2021 10:01:49 -0400 In-Reply-To: <875yzx73f4.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 05 May 2021 14:47:43 +0200) 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:205699 Archived-At: > 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". > 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.