gnu: dropbear: Unbundle libraries.

* gnu/packages/ssh.scm (dropbear)[source]: Add snippet to remove
libtommath, libtomcrypt.
[arguments]: Add configure-flag to not use bundled libraries.
[inputs]: Add libtomcrypt, libtommath.
This commit is contained in:
Efraim Flashner 2021-02-11 12:04:13 +02:00
parent c9c68344ba
commit f72ff06ef8
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -505,13 +505,23 @@ (define-public dropbear
"https://matt.ucc.asn.au/dropbear/releases/" "https://matt.ucc.asn.au/dropbear/releases/"
"dropbear-" version ".tar.bz2")) "dropbear-" version ".tar.bz2"))
(sha256 (sha256
(base32 "0fy5ma4cfc2pk25mcccc67b2mf1rnb2c06ilb7ddnxbpnc85s8s8")))) (base32 "0fy5ma4cfc2pk25mcccc67b2mf1rnb2c06ilb7ddnxbpnc85s8s8"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "libtommath")
(delete-file-recursively "libtomcrypt")
(substitute* "configure"
(("-ltomcrypt") "-ltomcrypt -ltommath"))
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments `(#:tests? #f)) ; there is no "make check" or anything similar (arguments
;; TODO: Investigate unbundling libtommath and libtomcrypt or at least `(#:configure-flags '("--disable-bundled-libtom")
;; cherry-picking important bug fixes from them. See <bugs.gnu.org/24674> #:tests? #f)) ; there is no "make check" or anything similar
;; for more information. (inputs
(inputs `(("zlib" ,zlib))) `(("libtomcrypt" ,libtomcrypt)
("libtommath" ,libtommath)
("zlib" ,zlib)))
(synopsis "Small SSH server and client") (synopsis "Small SSH server and client")
(description "Dropbear is a relatively small SSH server and (description "Dropbear is a relatively small SSH server and
client. It runs on a variety of POSIX-based platforms. Dropbear is client. It runs on a variety of POSIX-based platforms. Dropbear is