From: Juanma Barranquero <lekktu@gmail.com>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: master 2772ebe366: Do not prune native-compiled system directories (bug#59658)
Date: Thu, 1 Dec 2022 02:05:21 +0100 [thread overview]
Message-ID: <CAAeL0SQ8s=7oKRicWt-uL4JZJ5rNiFUSFSUSQ9tDjaradW7a4Q@mail.gmail.com> (raw)
In-Reply-To: <CADwFkmmpqErvCeBunEcMnqOoZcX15LTeW8Q3tb==Fw_L+J9kwg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1499 bytes --]
Yes, I see. We'll have to decide where's the error, or what's the intended
behavior.
test-native-compile-prune-cache sets native-comp-eln-load-path to a single
directory and then tests whether native-compile-prune-cache can delete a
stale cache dir inside it (and keep a non-stale one).
It is obviously going to fail with my fix, because with it installed,
native-compile-prune-cache is never going to delete anything in the last
(or, in this case, unique) directory in native-comp-eln-load-path, because,
as the docstring of native-comp-eln-load-path says, "[t]he last directory
of this list is assumed to be the system one" (i.e, the one containing the
preloaded/ subdirectory and its content).
So, alternatives:
1.- We fix the test so it sets native-comp-eln-load-path to a list of two
directories, and checks that the stale subdir is deleted in the first, and
nothing is deleted in the second ("system") one.
2.- We remove my change and allow that native-compile-prune-cache sometimes
deletes files in the "system" eln cache, but Eli argued that we don't know
if the user will have write access to it, and we're not sure we *want* to
allow native-compile-prune-cache to delete files there...
3.- Or we find a way to reliably decide whether a cache directory is, in
fact, the "system" one (which we can currently do, heuristically, because
it contains preloaded/), and fix *both* my patch and the test so it only
considers untouchable those cache directories that really are "system" ones.
[-- Attachment #2: Type: text/html, Size: 1915 bytes --]
next prev parent reply other threads:[~2022-12-01 1:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <166965402487.18442.18379860639913355185@vcs2.savannah.gnu.org>
[not found] ` <20221128164705.366A7C004B6@vcs2.savannah.gnu.org>
2022-11-30 17:34 ` master 2772ebe366: Do not prune native-compiled system directories (bug#59658) Stefan Kangas
2022-12-01 1:05 ` Juanma Barranquero [this message]
2022-12-01 3:49 ` Stefan Kangas
2022-12-01 3:57 ` Juanma Barranquero
2022-12-01 7:18 ` Eli Zaretskii
2022-12-01 16:56 ` Juanma Barranquero
2022-12-03 11:25 ` Juanma Barranquero
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAeL0SQ8s=7oKRicWt-uL4JZJ5rNiFUSFSUSQ9tDjaradW7a4Q@mail.gmail.com' \
--to=lekktu@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=stefankangas@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).