guix_mirror_bot pushed a commit to branch ruby-team
in repository guix.
commit a497b3e163999ae504c01f54839d6fee23bf0a6f
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jun 18 16:27:18 2025 +0200
gnu: ruby-psych-3: Fix deprecated syntax.
* gnu/packages/ruby-xyz.scm (ruby-psych-3)[arguments]{phases}: Add
phase 'fix-deprecated-syntax.
---
gnu/packages/ruby-xyz.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 430f386c24..3923cfdcea 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -7310,6 +7310,11 @@ from the YAML format.")
(list
#:phases
#~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-deprecated-syntax
+ (lambda _
+ (substitute* "test/psych/test_yaml.rb"
+ (("Regexp\\.new\\('',0,'n'\\)")
+ "Regexp.new('',Regexp::NOENCODING)"))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?