all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregory Heytings <gregory@heytings.org>
To: Glenn Morris <rgm@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, 48141@debbugs.gnu.org
Subject: bug#48141: 28.0.50; Files left over by native compiler
Date: Mon, 03 May 2021 08:42:08 +0000	[thread overview]
Message-ID: <a4dfe72ae2811489989c@heytings.org> (raw)
In-Reply-To: <70v982mm2m.fsf@fencepost.gnu.org>


>> 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?





  parent reply	other threads:[~2021-05-03  8:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-01 14:36 bug#48141: 28.0.50; Files left over by native compiler Stefan Monnier
2021-05-01 14:44 ` Eli Zaretskii
2021-05-01 16:54 ` Glenn Morris
2021-05-02  7:05   ` Lars Ingebrigtsen
2021-05-03  8:42   ` Gregory Heytings [this message]
2021-05-03 11:49     ` Eli Zaretskii
2021-05-03 12:11       ` Gregory Heytings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a4dfe72ae2811489989c@heytings.org \
    --to=gregory@heytings.org \
    --cc=48141@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.