[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#39120] [PATCH 09/12] gnu: ruby-tzinfo: Skip safe tests.
From: |
Christopher Baines |
Subject: |
[bug#39120] [PATCH 09/12] gnu: ruby-tzinfo: Skip safe tests. |
Date: |
Mon, 13 Jan 2020 22:53:33 +0000 |
The safe tests attempt to run with Ruby 2.6, but these tests fail if the build
takes place within /tmp, as the Ruby LOAD_PATH then includes /tmp, which is
world writable.
* gnu/packages/ruby.scm (ruby-tzinfo)[arguments]: Add skip-safe-tests phase.
---
gnu/packages/ruby.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b39769acaa..088b975a22 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -4072,6 +4072,16 @@ utilities for Ruby.")
(base32
"09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
(build-system ruby-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'skip-safe-tests
+ (lambda _
+ (substitute* "test/test_utils.rb"
+ (("def safe_test\\(options = \\{\\}\\)")
+ "def safe_test(options = {})
+ skip('The Guix build environment has an unsafe load path')"))
+ #t)))))
(propagated-inputs
`(("ruby-thread-safe" ,ruby-thread-safe)))
(synopsis "Time zone library for Ruby")
--
2.24.1
- [bug#39120] [00/12] Update Ruby to 2.6., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 01/12] gnu: ruby-listen: Update to 3.2.0., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 04/12] gnu: ruby-childprocess: Update to 3.0.0., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 02/12] gnu: ruby-aruba: Update to 0.14.14., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 05/12] gnu: ruby-yard: Update to 0.9.20., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 03/12] gnu: ruby-childprocess-0.6: Remove version 0.6.3., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 08/12] gnu: ruby-json-pure: Update to 2.2.0., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 07/12] gnu: ruby-power-assert: Update to 1.1.5., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 09/12] gnu: ruby-tzinfo: Skip safe tests.,
Christopher Baines <=
- [bug#39120] [PATCH 11/12] gnu: ruby: Update to 2.6.5., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 06/12] gnu: ruby-hoe: Update to 3.21.0., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 12/12] gnu: Add ruby-2.5., Christopher Baines, 2020/01/13
- [bug#39120] [PATCH 10/12] gnu: ruby-2.4: Update to 2.4.9., Christopher Baines, 2020/01/13
- [bug#39120] [00/12] Update Ruby to 2.6., Marius Bakke, 2020/01/13