gnu: librsvg: Fix CVE-2019-20446.

* gnu/packages/gnome.scm (librsvg)[replacement]: New field.
(librsvg/fixed): New private variable.
This commit is contained in:
Efraim Flashner 2020-03-03 09:21:17 +02:00
parent 3276e12392
commit 23f33de151
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2074,6 +2074,7 @@ (define-public libgsf
(define-public librsvg
(package
(replacement "librsvg/fixed")
(name "librsvg")
(version "2.40.20")
(source (origin
@ -2138,6 +2139,20 @@ (define-public librsvg
library.")
(license license:lgpl2.0+)))
(define librsvg/fixed
(package
(inherit librsvg)
(name "librsvg")
(version "2.40.21")
(source (origin
(method url-fetch)
(uri (string-append "mirror://gnome/sources/" name "/"
(version-major+minor version) "/"
name "-" version ".tar.xz"))
(sha256
(base32
"1fljkag2gr7c4k5mn798lgf9903xslz8h51bgvl89nnay42qjqpp"))))))
(define* (computed-origin-method gexp-promise hash-algo hash
#:optional (name "source")
#:key (system (%current-system))