gnu: redis: Update to 6.2.4 [security fixes].

Fixes CVE-2021-29477.

* gnu/packages/databases.scm (redis): Update to 6.2.4.
[arguments]: Disable the 'integration/failover' test.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Simon Streit 2021-06-02 01:11:31 +02:00 committed by Leo Famulari
parent b94bc3ea30
commit 841edfa491
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -51,6 +51,7 @@
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz> ;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 Pjotr Prins <pjotr.guix@thebird.nl> ;;; Copyright © 2021 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com> ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
;;; Copyright © 2021 Simon Streit <simon@netpanic.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -2135,14 +2136,14 @@ (define-public unqlite
(define-public redis (define-public redis
(package (package
(name "redis") (name "redis")
(version "6.0.11") (version "6.2.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "http://download.redis.io/releases/redis-" (uri (string-append "http://download.redis.io/releases/redis-"
version".tar.gz")) version".tar.gz"))
(sha256 (sha256
(base32 (base32
"0prwqap452m581nyc3cz642d1z3x9nd81896hlqdm3z8238z49y9")) "0vp1d9mlfsppry3nsj9f7bmh9wjgsy3jggp24sac1hhgl43c8cms"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
;; Delete bundled jemalloc, as the package will use the libc one ;; Delete bundled jemalloc, as the package will use the libc one
@ -2150,8 +2151,8 @@ (define-public redis
#t)))) #t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("procps" ,procps) ; for tests `(("procps" ,procps) ; for tests
("tcl" ,tcl))) ; for tests ("tcl" ,tcl))) ; for tests
(arguments (arguments
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
@ -2168,9 +2169,10 @@ (define-public redis
(lambda _ (lambda _
;; Disable failing tests ;; Disable failing tests
(substitute* "tests/test_helper.tcl" (substitute* "tests/test_helper.tcl"
((" integration/replication[^-]") "") (("integration/failover") "")
((" integration/replication-4") "") (("integration/replication-4") "")
((" integration/replication-psync") "")) (("integration/replication-psync") "")
(("integration/replication[^-]") ""))
#t))) #t)))
#:make-flags `("CC=gcc" #:make-flags `("CC=gcc"
"MALLOC=libc" "MALLOC=libc"