gnu: emacs: Find real GVFS processes.

* gnu/packages/emacs.scm (emacs)[#:phases]<patch-program-file-names>: Expand
calls to “tramp-compat-process-running-p” so that Guix wrappers are also
matched.
This commit is contained in:
Liliana Marie Prikler 2021-10-13 21:32:07 +02:00
parent 269baba919
commit f725279cdd
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -136,6 +136,12 @@ (define-public emacs
"lisp/progmodes/sh-script.el")
(("\"/bin/sh\"")
(format #f "~s" (which "sh"))))
;; match ".gvfs-fuse-daemon-real" and ".gvfsd-fuse-real"
;; respectively when looking for GVFS processes.
(substitute* "lisp/net/tramp-gvfs.el"
(("\\(tramp-compat-process-running-p \"(.*)\"\\)" all process)
(format #f "(or ~a (tramp-compat-process-running-p ~s))"
all (string-append "." process "-real"))))
#t))
(add-before 'configure 'fix-/bin/pwd
(lambda _