[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#78826] [PATCH 68/88] gnu: ruby-hydra: Fix build with Ruby@3.3.
From: |
Nicolas Graves |
Subject: |
[bug#78826] [PATCH 68/88] gnu: ruby-hydra: Fix build with Ruby@3.3. |
Date: |
Wed, 18 Jun 2025 16:27:55 +0200 |
* gnu/packages/ruby-xyz.scm
(ruby-hydra-minimal)[arguments]{phases}: Add phase 'fix-ruby-3.3-build.
(ruby-hydra)[arguments]: Inherit from ruby-hydra-minimal phases.
(ruby-hydra-minimal/pinned)[arguments]: Rewrite to avoid derivation
change, stop inheriting from ruby-hydra-minimal phases.
---
gnu/packages/ruby-xyz.scm | 38 ++++++++++++++++++++++++--------------
1 file changed, 24 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index c844a26f77..2ad8d10574 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -3511,8 +3511,15 @@ (define-public ruby-hydra-minimal
"1swzab7i4cqk1bck7p5m3bh526jh0v6m9qq720r3270zbjc8x8z3"))))
(build-system ruby-build-system)
(arguments
- ;; Avoid rspec dependency.
- '(#:tests? #f))
+ (list
+ #:tests? #f ; Avoid rspec dependency.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-ruby-3.3-build
+ (lambda _
+ (substitute* "lib/hydra.rb"
+ (("exists\\?")
+ "exist?")))))))
(synopsis "Ruby hyphenation patterns")
(description
"ruby-hydra-minimal is a Ruby library for working with hyphenation
patterns.
@@ -3525,24 +3532,27 @@ (define-public ruby-hydra-minimal/pinned
(package
(inherit ruby-hydra-minimal)
(arguments
- (cons* #:ruby ruby-2.7
- (package-arguments ruby-hydra-minimal))))))
+ (list
+ #:tests? #f
+ #:ruby ruby-2.7)))))
(define-public ruby-hydra
(package
(inherit ruby-hydra-minimal)
(name "ruby-hydra")
(arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'make-files-writable
- (lambda _
- (for-each make-file-writable (find-files "."))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "rspec")))))))
+ (substitute-keyword-arguments (package-arguments ruby-hydra-minimal)
+ ((#:tests? tests? #t)
+ #t)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'make-files-writable
+ (lambda _
+ (for-each make-file-writable (find-files "."))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "rspec"))))))))
(native-inputs
(list ruby-rspec))
(description
--
2.49.0
- [bug#78826] [PATCH 20/88] gnu: ruby-stackprof: Update to 0.2.27-0.5d83283., (continued)
- [bug#78826] [PATCH 20/88] gnu: ruby-stackprof: Update to 0.2.27-0.5d83283., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 22/88] gnu: ruby-oj: Update to 3.16.9., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 24/88] gnu: ruby-yard: Update to 0.9.37., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 27/88] gnu: ruby-websocket-client-simple: Update to 0.9.0., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 30/88] gnu: ruby-unf: Update to 0.2.0., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 37/88] gnu: ruby-spy: Remove ruby-coveralls native-input., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 38/88] gnu: ruby-cuke-modeler: Update to 3.24.0., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 19/88] gnu: ruby-minitest-reporters: Update to 1.7.1., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 51/88] gnu: ruby-bindex: Fix minitest., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 52/88] gnu: jekyll: Update to 4.4.1., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 68/88] gnu: ruby-hydra: Fix build with Ruby@3.3.,
Nicolas Graves <=
- [bug#78826] [PATCH 63/88] gnu: ruby-single-cov: Fix tests., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 65/88] gnu: ruby-ruby-prof: Update to 1.7.2., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 34/88] gnu: ruby-rspec-pending-for: Improve style., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 39/88] gnu: ruby-skiptrace: Fix minitest., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 48/88] gnu: youplot: Update to 0.4.6., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 56/88] gnu: ruby-mocha: Update to 2.1.0., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 25/88] gnu: ruby-insist: Fix minitest., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 23/88] gnu: ruby-character-set: Update to 1.8.0., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 44/88] gnu: ruby-sass: Fix minitest., Nicolas Graves, 2025/06/18
- [bug#78826] [PATCH 57/88] gnu: ruby-bootsnap: Update to 1.18.6., Nicolas Graves, 2025/06/18