diff options
| author | Morgan Smith <Morgan.J.Smith@outlook.com> | 2026-07-23 12:05:26 -0400 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-08-28 16:58:33 +0200 |
| commit | da4116e6b5ba32a1b60c47a2cf65faef1879d931 (patch) | |
| tree | 60ba6de633cbbc84a4b8963c0a5212c3b0571ad8 | |
| parent | 2accee47359ccf5c9616bda404fbce66e8adfa76 (diff) | |
gnu: emacs-tramp: Copy patch phase from emacs-minimal.
* gnu/packages/emacs-xyz.scm
(emacs-tramp)[#:phases]<patch-el-files>: Replace contents with
those from the “patch-tramp” phase from emacs-minimal.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Merges: guix/guix#10135
| -rw-r--r-- | gnu/packages/emacs-xyz.scm | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 9c04f0b85cc..ccc8c373bd0 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm | |||
| @@ -41672,14 +41672,36 @@ well as an option for visually flashing evaluated s-expressions.") | |||
| 41672 | #:emacs emacs ;need D-Bus | 41672 | #:emacs emacs ;need D-Bus |
| 41673 | #:phases | 41673 | #:phases |
| 41674 | #~(modify-phases %standard-phases | 41674 | #~(modify-phases %standard-phases |
| 41675 | ;; All but one "/bin/" directory refer to remote | 41675 | ;; This phase is duplicated in the emacs-minimal package. Please |
| 41676 | ;; environments, which may not be Guix. Do not patch them | 41676 | ;; ensure they stay in sync |
| 41677 | ;; blindly. However, local encoding shell has to be patched. | ||
| 41678 | (replace 'patch-el-files | 41677 | (replace 'patch-el-files |
| 41679 | (lambda* (#:key inputs #:allow-other-keys) | 41678 | (lambda* (#:key inputs #:allow-other-keys) |
| 41680 | (emacs-substitute-variables "tramp.el" | 41679 | ;; All but one "/bin/" directory refer to remote |
| 41681 | ("tramp-encoding-shell" | 41680 | ;; environments, which may not be Guix. Do not patch them |
| 41682 | (search-input-file inputs "/bin/sh")))))))) | 41681 | ;; blindly. However, tramp-encoding-shell has to be patched. |
| 41682 | (substitute* "tramp.el" | ||
| 41683 | (("\"/bin/sh\"") | ||
| 41684 | (format #f "~s" (search-input-file inputs "bin/sh"))) | ||
| 41685 | |||
| 41686 | ;; Make sure Tramp looks for binaries in the right places on | ||
| 41687 | ;; remote Guix System machines, where 'getconf PATH' returns | ||
| 41688 | ;; something bogus. | ||
| 41689 | ;; Patch the line after "(defcustom tramp-remote-path". | ||
| 41690 | (("\\(tramp-default-remote-path") | ||
| 41691 | (format | ||
| 41692 | #f "(tramp-default-remote-path ~s ~s ~s ~s ~s ~s ~s " | ||
| 41693 | "/run/privileged/bin" | ||
| 41694 | "~/.guix-profile/bin" "~/.guix-profile/sbin" | ||
| 41695 | "~/.guix-home/bin" "~/.guix-home/sbin" | ||
| 41696 | "/run/current-system/profile/bin" | ||
| 41697 | "/run/current-system/profile/sbin"))) | ||
| 41698 | |||
| 41699 | ;; match ".gvfs-fuse-daemon-real" and ".gvfsd-fuse-real" | ||
| 41700 | ;; respectively when looking for GVFS processes. | ||
| 41701 | (substitute* "tramp-gvfs.el" | ||
| 41702 | (("\\(tramp-process-running-p \"(.*)\"\\)" all process) | ||
| 41703 | (format #f "(or ~a (tramp-process-running-p ~s))" | ||
| 41704 | all (string-append "." process "-real"))))))))) | ||
| 41683 | (home-page "https://savannah.gnu.org/projects/tramp") | 41705 | (home-page "https://savannah.gnu.org/projects/tramp") |
| 41684 | (synopsis "Remote file editing package for Emacs") | 41706 | (synopsis "Remote file editing package for Emacs") |
| 41685 | (description | 41707 | (description |
