gnu: ruby: Replace with ruby-2.4.3 [fixes CVE-2017-17405].

* gnu/packages/ruby.scm (ruby-2.4.3): New variable.
(ruby)[replacement]: New field.
This commit is contained in:
Ben Woodcroft 2017-12-15 13:47:57 +10:00
parent 6098a386a9
commit 86637f18be
No known key found for this signature in database
GPG Key ID: 2A6AD9F4AAC20DF6
1 changed files with 21 additions and 0 deletions

View File

@ -49,6 +49,7 @@
(define-public ruby (define-public ruby
(package (package
(name "ruby") (name "ruby")
(replacement ruby-2.4.3)
(version "2.4.2") (version "2.4.2")
(source (source
(origin (origin
@ -102,6 +103,26 @@ a focus on simplicity and productivity.")
(home-page "https://ruby-lang.org") (home-page "https://ruby-lang.org")
(license license:ruby))) (license license:ruby)))
(define-public ruby-2.4.3
(package
(inherit ruby)
(name "ruby")
(version "2.4.3")
(source
(origin
(method url-fetch)
(uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
(version-major+minor version)
"/ruby-" version ".tar.xz"))
(sha256
(base32
"0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
(modules '((guix build utils)))
(snippet `(begin
;; Remove bundled libffi
(delete-file-recursively "ext/fiddle/libffi-3.2.1")
#t))))))
(define-public ruby-2.3 (define-public ruby-2.3
(package (package
(inherit ruby) (inherit ruby)