GNU bug report logs -
#78826
[PATCH ruby-team 00/88] Switch to ruby@3.3 and build -P1 ruby@3.3
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Wed, 18 Jun 2025 14:22:02 UTC
Severity: normal
Tags: patch
Done: Andreas Enge <andreas <at> enge.fr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/ruby-xyz.scm (ruby-single-cov)
[arguments]{phases}: Add phase 'add-mutex-m. Refresh phase
'disable-failing-tests.
[native-inputs]: Add ruby-mutex-m.
---
gnu/packages/ruby-xyz.scm | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index ad7168bc80..0f4f00a571 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -6576,6 +6576,13 @@ (define-public ruby-single-cov
(arguments
'(#:test-target "spec" ;to avoid rubocop requirement
#:phases (modify-phases %standard-phases
+ ;; XXX: Warnings make a few tests fail.
+ ;; Add mutex-m in Gemfile to avoid them.
+ (add-after 'unpack 'add-mutex-m
+ (lambda _
+ (substitute* "Gemfile"
+ (("^gem \"bump\".*" all)
+ (string-append all "gem \"mutex_m\"\n")))))
(replace 'replace-git-ls-files
(lambda _
(substitute* "single_cov.gemspec"
@@ -6601,8 +6608,10 @@ (define-public ruby-single-cov
;; it for now.
(substitute* "specs/single_cov_spec.rb"
(("it \"complains when coverage is bad\"")
- "xit \"complains when coverage is bad\"")))))))
- (native-inputs (list ruby-minitest ruby-rspec ruby-simplecov))
+ "xit \"complains when coverage is bad\"")
+ (("it \"does not duplicate coverage\"")
+ "xit \"does not duplicate coverage\"")))))))
+ (native-inputs (list ruby-minitest ruby-mutex-m ruby-rspec ruby-simplecov))
(synopsis "Code coverage reporting tool")
(description
"This package provides actionable code coverage reports for Ruby
--
2.49.0
This bug report was last modified 31 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.