gnu: openssh: Update to 8.2p1.

* gnu/packages/ssh.scm (openssh): Update to 8.2p1.
[arguments]: Adjust ‘patch-tests’ phase.
This commit is contained in:
Tobias Geerinckx-Rice 2020-02-17 00:39:41 +01:00
parent 21f5de6d32
commit 6db6bcf715
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79

View File

@ -129,14 +129,14 @@ a server that supports the SSH-2 protocol.")
(define-public openssh (define-public openssh
(package (package
(name "openssh") (name "openssh")
(version "8.0p1") (version "8.2p1")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://openbsd/OpenSSH/portable/" (uri (string-append "mirror://openbsd/OpenSSH/portable/"
"openssh-" version ".tar.gz")) "openssh-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"0s7xh4s0qcipnjh9ls5blxcpvhyd116z9dxn3q1yi64lwrwki55x")))) "0wg6ckzvvklbzznijxkk28fb8dnwyjd0w30ra0afwv6gwr8m34j3"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs `(("groff" ,groff) (native-inputs `(("groff" ,groff)
("pkg-config" ,pkg-config))) ("pkg-config" ,pkg-config)))
@ -145,7 +145,7 @@ a server that supports the SSH-2 protocol.")
("pam" ,linux-pam) ("pam" ,linux-pam)
("mit-krb5" ,mit-krb5) ("mit-krb5" ,mit-krb5)
("zlib" ,zlib) ("zlib" ,zlib)
("xauth" ,xauth))) ;for 'ssh -X' and 'ssh -Y' ("xauth" ,xauth))) ; for 'ssh -X' and 'ssh -Y'
(arguments (arguments
`(#:test-target "tests" `(#:test-target "tests"
;; Otherwise, the test scripts try to use a nonexistent directory and ;; Otherwise, the test scripts try to use a nonexistent directory and
@ -156,12 +156,12 @@ a server that supports the SSH-2 protocol.")
;; Default value of 'PATH' used by sshd. ;; Default value of 'PATH' used by sshd.
"--with-default-path=/run/current-system/profile/bin" "--with-default-path=/run/current-system/profile/bin"
;; configure needs to find krb5-config ;; configure needs to find krb5-config.
,(string-append "--with-kerberos5=" ,(string-append "--with-kerberos5="
(assoc-ref %build-inputs "mit-krb5") (assoc-ref %build-inputs "mit-krb5")
"/bin") "/bin")
;; libedit needed for sftp completion ;; libedit is needed for sftp completion.
"--with-libedit" "--with-libedit"
;; Enable PAM support in sshd. ;; Enable PAM support in sshd.
@ -178,14 +178,18 @@ a server that supports the SSH-2 protocol.")
#t))) #t)))
(add-before 'check 'patch-tests (add-before 'check 'patch-tests
(lambda _ (lambda _
;; remove 't-exec' regress target which requires user 'sshd' (substitute* "regress/test-exec.sh"
(substitute* "regress/Makefile" (("/bin/sh") (which "sh")))
(("^(REGRESS_TARGETS=.*) t-exec(.*)" all pre post)
;; Remove 't-exec' regress target which requires user 'sshd'.
(substitute* (list "Makefile"
"regress/Makefile")
(("^(tests:.*) t-exec(.*)" all pre post)
(string-append pre post))) (string-append pre post)))
#t)) #t))
(replace 'install (replace 'install
(lambda* (#:key outputs (make-flags '()) #:allow-other-keys) (lambda* (#:key outputs (make-flags '()) #:allow-other-keys)
;; install without host keys and system configuration files ;; Install without host keys and system configuration files.
(apply invoke "make" "install-nosysconf" make-flags) (apply invoke "make" "install-nosysconf" make-flags)
(install-file "contrib/ssh-copy-id" (install-file "contrib/ssh-copy-id"
(string-append (assoc-ref outputs "out") (string-append (assoc-ref outputs "out")