gnu: ruby-ruby-prof: Update to 1.4.5.

* gnu/packages/ruby.scm (ruby-ruby-prof): Update to 1.4.5.
[arguments]: Reword comment as FIXME.  Remove trailing #t.
Delete obsolete substitution in patch-rakefile phase.
Re-format native-inputs on a single line.
This commit is contained in:
Maxim Cournoyer 2023-01-06 13:35:01 -05:00
parent f7c803f998
commit 6226120649
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -7686,43 +7686,32 @@ variable length integers (varint) in Ruby Protocol Buffers.")
(define-public ruby-ruby-prof (define-public ruby-ruby-prof
(package (package
(name "ruby-ruby-prof") (name "ruby-ruby-prof")
(version "1.4.3") (version "1.4.5")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (rubygems-uri "ruby-prof" version)) (uri (rubygems-uri "ruby-prof" version))
(sha256 (sha256
(base32 (base32
"1r3xalp91l07m0cwllcxjzg6nkviiqnxkcbgg5qnzsdji6rgy65m")))) "09n13bzm1p956z318xx1v7ikqdp2i971v7p3kwf3170axz368ccy"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
;; It is unclear why the tests fail on i686-linux ;; FIXME: Investigate why the tests fail on i686-linux.
`(#:tests? ,(not (or (%current-target-system) `(#:tests? ,(not (or (%current-target-system)
(target-x86-32?))) (target-x86-32?)))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-rakefile
;; This fixes the following error: "NameError: uninitialized
;; constant Bundler::GemHelper" (see:
;; https://github.com/ruby-prof/ruby-prof/issues/274).
(lambda _
(substitute* "Rakefile"
((".*require \"bundler/setup\".*" all)
(string-append all " require 'bundler/gem_tasks'\n")))
#t))
;; The LineNumbersTest test fails non-deterministically (see: ;; The LineNumbersTest test fails non-deterministically (see:
;; https://github.com/ruby-prof/ruby-prof/issues/276). ;; https://github.com/ruby-prof/ruby-prof/issues/276).
(add-after 'extract-gemspec 'delete-flaky-test (add-after 'extract-gemspec 'delete-flaky-test
(lambda _ (lambda _
(delete-file "test/line_number_test.rb") (delete-file "test/line_number_test.rb")
(substitute* "ruby-prof.gemspec" (substitute* "ruby-prof.gemspec"
(("\"test/line_number_test\\.rb\"\\.freeze, ") "")) (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))))
#t))
(add-before 'check 'compile (add-before 'check 'compile
(lambda _ (lambda _
(invoke "rake" "compile")))))) (invoke "rake" "compile"))))))
(native-inputs (native-inputs (list bundler ruby-minitest ruby-rake-compiler ruby-rdoc))
(list bundler ruby-minitest ruby-rake-compiler ruby-rdoc))
(synopsis "Fast code profiler for Ruby") (synopsis "Fast code profiler for Ruby")
(description "RubyProf is a fast code profiler for Ruby. Its features (description "RubyProf is a fast code profiler for Ruby. Its features
include: include: