From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#48141: 28.0.50; Files left over by native compiler Date: Mon, 03 May 2021 08:42:08 +0000 Message-ID: References: <70v982mm2m.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39989"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , 48141@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 03 11:01:51 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 1ldUSc-000AGP-VC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 11:01:50 +0200 Original-Received: from localhost ([::1]:45242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldUSb-0004F8-VM for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 May 2021 05:01:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldUAQ-0007sc-8u for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:43:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldUAQ-0003fJ-0s for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldUAP-0005QG-VN for bug-gnu-emacs@gnu.org; Mon, 03 May 2021 04:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 May 2021 08:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48141 X-GNU-PR-Package: emacs Original-Received: via spool by 48141-submit@debbugs.gnu.org id=B48141.162003133120812 (code B ref 48141); Mon, 03 May 2021 08:43:01 +0000 Original-Received: (at 48141) by debbugs.gnu.org; 3 May 2021 08:42:11 +0000 Original-Received: from localhost ([127.0.0.1]:46182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldU9a-0005Pc-SJ for submit@debbugs.gnu.org; Mon, 03 May 2021 04:42:11 -0400 Original-Received: from heytings.org ([95.142.160.155]:35280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldU9Z-0005PW-BT for 48141@debbugs.gnu.org; Mon, 03 May 2021 04:42:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1620031328; bh=hgUAL10hhtHisN9O+q/GwEoNF6/ZMeM1zKDEkJk4/Is=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=DM7AWpxijNg3KeQPKuCjJLv+iiFElyReUEB8xMtjyXBlaHqeemRouV22jNIhIAVbK zb00qmX6S2G17PPcpf/HpCzXAmTuKUZjJ+sz4VTQkNjePzAmg/pT0O/qMTmh2r9kZz Bd0GPOQoS0+IMPJ2ITBVuemszv+G/IxIr4EgnyxU7nZ3SOd6LDAFN501AaYqrfDg4p ZVwvHHQglrO/aEBIhBOAUaW5dRbLbVk2x8xKY0Jiwodrm68yWpNcj67EtlO/LSVfy3 FIPb9F9vfjIW/2XGp9t3rHnOu7ohRZR9fqiSwQTgVRvj0/v+1kUJY69y/d9vACPVTN koBK5fWhO1ncw== In-Reply-To: <70v982mm2m.fsf@fencepost.gnu.org> 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:205483 Archived-At: >> I have a few files apparently left over from failed native >> compilations. They look like `lisp/foo.elcABCDEF` where `ABCDEF` is >> random (presumably chosen by `make-temp-file`). > > This is not directly related to native compilation. This is so creation > of .elc files can be atomic (bug#4196). > >> and maybe we should put them in /tmp? > > IIUC, the temp files must be on the same partition as the destination > .elc files, else the move would not be atomic. > Given that requirement (atomicity) and its implication (same partition), would it not be better to create these temporary files in a 'tmp' subdirectory of their target directory (e.g. 'lisp/tmp' for el files in 'lisp' and 'lisp/calc/tmp' for el files in 'lisp/calc') instead of using random filenames in the target directory itself?