From 683713dd8f5d67e3f077d5d13c23e5556d8ad779 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Mon, 22 Oct 2018 13:00:55 -0400 Subject: [PATCH] gnu: libssh: Fetch the source code more efficiently. * gnu/packages/ssh.scm (libssh)[source]: Use the git:// protocol. --- gnu/packages/ssh.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm index e806fc80f..b93cb03a1 100644 --- a/gnu/packages/ssh.scm +++ b/gnu/packages/ssh.scm @@ -71,8 +71,14 @@ (source (origin (method git-fetch) (uri (git-reference - (url "https://git.libssh.org/projects/libssh.git") - (commit (string-append "libssh-" version)))) + ;; git.libssh.org does not support the fast "smart" HTTP + ;; Git protocol. The "dumb" HTTP Git protocol is extremely + ;; slow, and does not support shallow clones, so we use the + ;; plain Git protocol despite its flaws. This offers an + ;; incredible speedup and reduces the size of the the + ;; source by more than half. + (url "git://git.libssh.org/projects/libssh.git") + (commit (string-append "libssh-" version)))) (patches (search-patches "libssh-hostname-parser-bug.patch")) (sha256 (base32 -- 2.19.1