diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-03-02 22:39:48 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2016-11-25 23:44:20 +0100 |
| commit | 21531add3205e400707c8fbfd841845f9a71863a (patch) | |
| tree | 8a88aa7b2fe01f5707bcf130fe09d54c0a95d33f /m4 | |
| parent | 6634180f9eabc70cdc5bc8e9ce2ff0f9250625bc (diff) | |
offload: Use Guile-SSH instead of GNU lsh.
* guix/scripts/offload.scm (<build-machine>)[ssh-options]: Remove.
[host-key, host-key-type]: New fields.
(%lsh-command, %lshg-command, user-lsh-private-key): Remove.
(user-openssh-private-key, private-key-from-file*): New procedures.
(host-key->type+key, open-ssh-session): New procedures.
(remote-pipe): Remove 'mode' parameter. Rewrite in terms of
'open-ssh-session' etc. Update users.
(send-files)[missing-files]: Rewrite using the bidirectional channel
port.
Remove call to 'call-with-compressed-output-port'.
(retrieve-files): Remove call to 'call-with-decompressed-port'.
(machine-load): Remove exit status logic.
* doc/guix.texi (Requirements): Mention Guile-SSH.
(Daemon Offload Setup): Document 'host-key' and 'private-key'. Show the
default value on each @item line.
* m4/guix.m4 (GUIX_CHECK_GUILE_SSH): New macro.
* config-daemon.ac: Use 'GUIX_CHECK_GUILE_SSH'. Set
'HAVE_DAEMON_OFFLOAD_HOOK' as a function of that.
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/guix.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/m4/guix.m4 b/m4/guix.m4 index 6d8ec2e4e04..6630598416b 100644 --- a/m4/guix.m4 +++ b/m4/guix.m4 | |||
| @@ -171,6 +171,24 @@ AC_DEFUN([GUIX_CHECK_UNBUFFERED_CBIP], [ | |||
| 171 | fi]) | 171 | fi]) |
| 172 | ]) | 172 | ]) |
| 173 | 173 | ||
| 174 | dnl GUIX_CHECK_GUILE_SSH | ||
| 175 | dnl | ||
| 176 | dnl Check whether a recent-enough Guile-SSH is available. | ||
| 177 | AC_DEFUN([GUIX_CHECK_GUILE_SSH], [ | ||
| 178 | dnl Check whether 'channel-send-eof' (introduced in 0.10.2) is present. | ||
| 179 | AC_CACHE_CHECK([whether Guile-SSH is available and recent enough], | ||
| 180 | [guix_cv_have_recent_guile_ssh], | ||
| 181 | [GUILE_CHECK([retval], | ||
| 182 | [(and (@ (ssh channel) channel-send-eof) | ||
| 183 | (@ (ssh popen) open-remote-pipe) | ||
| 184 | (@ (ssh dist node) node-eval))]) | ||
| 185 | if test "$retval" = 0; then | ||
| 186 | guix_cv_have_recent_guile_ssh="yes" | ||
| 187 | else | ||
| 188 | guix_cv_have_recent_guile_ssh="no" | ||
| 189 | fi]) | ||
| 190 | ]) | ||
| 191 | |||
| 174 | dnl GUIX_TEST_ROOT_DIRECTORY | 192 | dnl GUIX_TEST_ROOT_DIRECTORY |
| 175 | AC_DEFUN([GUIX_TEST_ROOT_DIRECTORY], [ | 193 | AC_DEFUN([GUIX_TEST_ROOT_DIRECTORY], [ |
| 176 | AC_CACHE_CHECK([for unit test root directory], | 194 | AC_CACHE_CHECK([for unit test root directory], |
