gnu: mu: Add additional file to patch-bin-references phase.

* gnu/packages/mail.scm (mu): Add mu-utils-file.cc's call to /bin/rm to
patch-bin-references phase.

When mu runs as a server, it creates a randomly-named temporary directory in
`/tmp/`. Mu previously hard-coded a path to `/bin/rm` for removing this
directory when the server closed. We missed this one in the phase that patches
these paths.

This has also been reported upstream, but will only make it into the next
release of mu. In the meantime, we can just patch the /bin/rm for ours and
remove the whole phase when the next release happens.

https://github.com/djcb/mu/issues/2887
f237a2b990
fc4d5b01a7

Change-Id: I419b994ca403a14c20520755116591196b724fae
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Raven Hallsby 2025-11-26 22:44:33 -06:00 committed by Ludovic Courtès
parent ff5eb0811f
commit 775dbde5a4
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1376,12 +1376,16 @@ security functionality including PGP, S/MIME, SSH, and SSL.")
#~(list (format #f "-Dguile-extension-dir=~a/lib" #$output))
#:phases
#~(modify-phases %standard-phases
;; This phase can be removed in the next major release of mu.
;; <https://github.com/djcb/mu/commit/f237a2b9905475fb95da6a04e318d10cab61ddeb>
;; <https://github.com/djcb/mu/commit/fc4d5b01a703e8c8cc390cfea135f08d3b45ccab>
(add-after 'unpack 'patch-bin-references
(lambda _
(substitute* '("guile/tests/test-mu-guile.cc"
"mu/tests/test-mu-query.cc")
(("/bin/sh") (which "sh")))
(substitute* '("lib/tests/bench-indexer.cc"
"lib/utils/mu-utils-file.cc"
"lib/utils/mu-test-utils.cc")
(("/bin/rm") (which "rm")))
(substitute* '("lib/mu-maildir.cc")