Subject: [PATCH 31/88] gnu: ruby-psych-3: Fix deprecated syntax.

From: Nicolas Graves <[email-masked]>
Date: Wed, 18 Jun 2025 16:27:18 +0200

* 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 1a9ae2f564..9c67bc6f81 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -7294,6 +7294,11 @@ (define-public ruby-psych-3
      (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?
-- 
2.49.0