1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-16 20:10:39 +02:00

gnu: ruby-psych-3: Fix deprecated syntax.

* gnu/packages/ruby-xyz.scm (ruby-psych-3)[arguments]{phases}: Add
phase 'fix-deprecated-syntax.
This commit is contained in:
Nicolas Graves 2025-06-18 16:27:18 +02:00 committed by Andreas Enge
parent b0a6138ece
commit c2f5a09e5a
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -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?