Subject: [bug#67260] [PATCH emacs-team 0/2] Think ahead when compiling

From: Andrew Tropin <[email-masked]>
Date: Sat, 18 Nov 2023 19:44:05 +0400

On 2023-11-18 14:42, Liliana Marie Prikler wrote:

> Hi Guix,
>
> this series (hopefully) makes it so that everything we need to be natively
> compiled in Emacs a) is natively compiled, and b) is found in the right
> location.  Please check that you no longer get gratuitous writes to your
> local eln-cache when trying this out.
>
> Cheers
>
> Fixes: emacs-build-system … mismatching hashes <https://bugs.gnu.org/66864>
>
> Liliana Marie Prikler (2):
>   gnu: emacs: Build trampolines.
>   gnu: emacs: Don't hash file names in native compilation.
>
>  gnu/local.mk                                  |  1 +
>  gnu/packages/emacs.scm                        |  6 +-
>  .../emacs-native-comp-fix-filenames.patch     | 93 +++++++++++++++++++
>  3 files changed, 99 insertions(+), 1 deletion(-)
>  create mode 100644 gnu/packages/patches/emacs-native-comp-fix-filenames.patch
>
>
> base-commit: 60c97924e9519361494aaf0686e28eb831a42315

--8<---------------cut here---------------start------------->8---
$ rm -r ~/.config/emacs/eln-cache/29.1-09dbbf4e
$ guix time-machine --branch=emacs-team -- shell emacs-pgtk emacs-magit --pure -E '.*GTK.*|.*XDG.*|.*DISPLAY.*' -- emacs -Q
(require 'magit)
C-x C-c
$ ls ~/.config/emacs/eln-cache/29.1-09dbbf4e
dash-6c86c585-82fea3ab.eln              magit-log-58eeae71-b655dbfb.eln      magit-section-6e195547-0461e8af.eln
git-commit-927a864a-05a352a6.eln        magit-margin-ec1cc1e9-b1c0e957.eln   magit-sequence-40a35869-1b719931.eln
magit-7056b331-38ef85d9.eln             magit-merge-0070f654-7bc0ed2b.eln    magit-stash-06fe9f6e-f2a708b65jGJrl.eln.tmp
magit-autorevert-54dea36c-bf1f5ea3.eln  magit-mode-5ad95198-31fbb927.eln     magit-status-70fcb10a-f6654216.eln
magit-base-cd520092-751fcac2.eln        magit-notes-17dfe23c-ce57b283.eln    magit-tag-e968dc8c-f7b42d89.eln
magit-bisect-8f9f6b8f-6fbb9bc2.eln      magit-process-3e9d760a-410e523c.eln  magit-transient-1d163154-ba4b9651.eln
magit-branch-b9c8386b-b362e334.eln      magit-pull-1f116009-3bf3af7f.eln     magit-wip-99682fc2-0371c052.eln
magit-clone-28b35658-e3db2e06.eln       magit-push-08e42ed4-b67bbe05.eln     magit-worktree-8f50ba9f-7b120e5d.eln
magit-commit-18780595-ac089f0e.eln      magit-reflog-4106970e-69fc9edb.eln   subr--trampoline-6d616b652d70726f63657373_make_process_0.eln
magit-diff-278da2fe-8132fe46.eln        magit-refs-1e67efee-ab4fef69.eln     transient-29183598-be63c251.eln
magit-fetch-5ba6406a-029daf61.eln       magit-remote-55bccbe3-bb4a4595.eln   with-editor-415da08e-ddc1b93b.eln
magit-files-1ee9fbef-d629cbfc.eln       magit-repos-a48553be-da9ca79c.eln
magit-git-736caf3b-1398a0cc.eln         magit-reset-902f52f7-709d5f56.eln
--8<---------------cut here---------------end--------------->8---

-- 
Best regards,
Andrew Tropin