mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
gnu: ruby-tzinfo: Skip safe tests.
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.
This commit is contained in:
parent
1c65d99f1b
commit
740fea0872
1 changed files with 10 additions and 0 deletions
|
@ -4108,6 +4108,16 @@ (define-public ruby-tzinfo
|
|||
(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")
|
||||
|
|
Loading…
Reference in a new issue