gnu: botan: Update to 2.17.3 [fixes CVE-2021-24115].

* gnu/packages/crypto.scm (botan): Update to 2.17.3.
[arguments]: Add 'library-path-for-tests phase to fix 'check phase by setting
LD_LIBRARY_PATH to intermediate build directory so tests can find libbotan.
This commit is contained in:
Léo Le Bouter 2021-03-10 11:17:53 +01:00
parent f7fdafeff5
commit 47ce29666b
No known key found for this signature in database
GPG key ID: 45A8B1E86BCD10A6

View file

@ -887,14 +887,14 @@ (define-public rhash
(define-public botan
(package
(name "botan")
(version "2.12.1")
(version "2.17.3")
(source (origin
(method url-fetch)
(uri (string-append "https://botan.randombit.net/releases/"
"Botan-" version ".tar.xz"))
(sha256
(base32
"1ada3ga7b0z4m0vjmxlvfi4nsic2l8kjcy85jwss3z2i58a5y0vy"))))
"121vn1aryk36cpks70kk4c4cfic5g0qs82bf92xap9258ijkn4kr"))))
(build-system gnu-build-system)
(arguments
'(#:phases
@ -916,6 +916,8 @@ (define-public botan
;; Recommended by upstream
"--with-zlib" "--with-bzip2" "--with-sqlite3"))))
(add-before 'check 'library-path-for-tests
(lambda _ (setenv "LD_LIBRARY_PATH" (getcwd))))
(replace 'check
(lambda _ (invoke "./botan-test"))))))
(native-inputs