diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-05-16 14:15:59 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-05-16 14:16:56 +0200 |
commit | 5a3429bcc52a47ca9c879b9ace092eecddeed300 (patch) | |
tree | 03395695b49a1a633f94a885d47dc1a89476121e /gnu/packages/patches | |
parent | d116695b315f75b93ac8083721b522a82a7cc139 (diff) | |
download | guix-5a3429bcc52a47ca9c879b9ace092eecddeed300.tar guix-5a3429bcc52a47ca9c879b9ace092eecddeed300.tar.gz |
gnu: guile-ssh: Fix bug in 'node-guile-version'.
* gnu/packages/patches/guile-ssh-rexec-bug.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/ssh.scm (guile-ssh)[source](patches): New field.
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/guile-ssh-rexec-bug.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/guile-ssh-rexec-bug.patch b/gnu/packages/patches/guile-ssh-rexec-bug.patch new file mode 100644 index 0000000000..363fea38c9 --- /dev/null +++ b/gnu/packages/patches/guile-ssh-rexec-bug.patch @@ -0,0 +1,16 @@ +Fix a bug whereby 'node-guile-version' would pass a node instead of +a session to 'rexec'. + +diff --git a/modules/ssh/dist/node.scm b/modules/ssh/dist/node.scm +index 9c065c7..29a3906 100644 +--- a/modules/ssh/dist/node.scm ++++ b/modules/ssh/dist/node.scm +@@ -411,7 +411,8 @@ procedure returns the 1st evaluated value if multiple values were returned." + "Get Guile version installed on a NODE, return the version string. Return + #f if Guile is not installed." + (receive (result rc) +- (rexec node "which guile > /dev/null && guile --version") ++ (rexec (node-session node) ++ "which guile > /dev/null && guile --version") + (and (zero? rc) + (car result)))) |