[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: ruby: Replace with ruby-2.3.2 [fixes CVE-2015-3900].
From: |
Ben Woodcroft |
Subject: |
01/01: gnu: ruby: Replace with ruby-2.3.2 [fixes CVE-2015-3900]. |
Date: |
Sun, 20 Nov 2016 01:45:24 +0000 (UTC) |
benwoodcroft pushed a commit to branch master
in repository guix.
commit 9b62c5a8fb588aac5002b899e3b1a3b0ac1bb428
Author: Ben Woodcroft <address@hidden>
Date: Sat Nov 19 09:00:22 2016 +1000
gnu: ruby: Replace with ruby-2.3.2 [fixes CVE-2015-3900].
* gnu/packages/ruby.scm (ruby)[replacement]: New field.
(ruby-2.3.2): New variable.
---
gnu/packages/ruby.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b6cb0a2..1abea02 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -47,6 +47,7 @@
(define-public ruby
(package
(name "ruby")
+ (replacement ruby-2.3.2)
(version "2.3.1")
(source
(origin
@@ -101,6 +102,25 @@ a focus on simplicity and productivity.")
(home-page "https://ruby-lang.org")
(license license:ruby)))
+(define ruby-2.3.2
+ (package
+ (inherit ruby)
+ (version "2.3.2")
+ (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
+ "031g76zxb2wp6988dmrpbqd98i17xi6l8q1115h83r2w0h8z6y2w"))
+ (modules '((guix build utils)))
+ (snippet `(begin
+ ;; Remove bundled libffi
+ (delete-file-recursively "ext/fiddle/libffi-3.2.1")
+ #t))))))
+
(define-public ruby-2.2
(package (inherit ruby)
(version "2.2.6")