GNU bug report logs - #78826
[PATCH ruby-team 00/88] Switch to ruby@3.3 and build -P1 ruby@3.3

Previous Next

Package: guix-patches;

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


Message #122 received at 78826 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 78826 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>
Subject: [PATCH 31/88] gnu: ruby-psych-3: Fix deprecated syntax.
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





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.