mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-04 18:38:57 -05:00
gnu: ruby-byebug: Fix build.
* gnu/packages/ruby.scm (ruby-byebug)[arguments]: Update style and skip some failing tests. [native-inputs]: Use ruby-minitest rather than ruby-minitest-5.15.
This commit is contained in:
parent
52cbeffa59
commit
701608c496
1 changed files with 27 additions and 28 deletions
|
@ -8101,36 +8101,35 @@ (define-public ruby-byebug
|
||||||
(("require \"bundler/setup\".*") "")))))))
|
(("require \"bundler/setup\".*") "")))))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'sanitize-dependencies
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'unpack 'sanitize-dependencies
|
||||||
(substitute* "Rakefile"
|
(lambda _
|
||||||
((".*chandler/tasks.*") ""))))
|
(substitute* "Rakefile"
|
||||||
(add-after 'unpack 'skip-tmp-path-sensitive-test
|
((".*chandler/tasks.*") ""))))
|
||||||
(lambda _
|
(add-after 'unpack 'skip-tmp-path-sensitive-test
|
||||||
(substitute* "test/commands/where_test.rb"
|
(lambda _
|
||||||
(("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
|
(substitute* "test/commands/where_test.rb"
|
||||||
"unless true\n"))))
|
(("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
|
||||||
(add-before 'build 'compile
|
"unless true\n"))))
|
||||||
(lambda _
|
(add-before 'build 'compile
|
||||||
(invoke "rake" "compile")))
|
(lambda _
|
||||||
(add-before 'check 'disable-misbehaving-test
|
(invoke "rake" "compile")))
|
||||||
;; Expects 5, gets 162. From a file containing ~10 lines.
|
(add-before 'check 'patch-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "test/commands/finish_test.rb"
|
;; srand': no implicit conversion of nil into Integer (TypeError)
|
||||||
(("test_finish_inside_autoloaded_files")
|
(delete-file "test/minitest_runner_test.rb")
|
||||||
"finish_inside_autoloaded_files"))))
|
;; Expects 5, gets 162. From a file containing ~10 lines.
|
||||||
(add-before 'check 'set-home
|
(substitute* "test/commands/finish_test.rb"
|
||||||
(lambda _
|
(("test_finish_inside_autoloaded_files")
|
||||||
(setenv "HOME" (getcwd)))))))
|
"finish_inside_autoloaded_files"))))
|
||||||
|
(add-before 'check 'set-home
|
||||||
|
(lambda _
|
||||||
|
(setenv "HOME" (getcwd)))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bundler
|
(list bundler
|
||||||
;; Using minitest 5.17 would cause 5 new bug failures. This is
|
ruby-minitest
|
||||||
;; probably related to
|
|
||||||
;; https://github.com/deivid-rodriguez/byebug/pull/837. Use
|
|
||||||
;; minitest 5.15 until this is resolved and released.
|
|
||||||
ruby-minitest-5.15
|
|
||||||
ruby-pry
|
ruby-pry
|
||||||
ruby-rake-compiler
|
ruby-rake-compiler
|
||||||
ruby-rubocop
|
ruby-rubocop
|
||||||
|
|
Loading…
Reference in a new issue