GNU bug report logs - #76434
[PATCH core-updates] gnu: ruby-racc: Update to 1.8.1.

Previous Next

Package: guix-patches;

Reported by: gemmaro <gemmaro.dev <at> gmail.com>

Date: Thu, 20 Feb 2025 07:34:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 76434 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#76434; Package guix-patches. (Thu, 20 Feb 2025 07:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to gemmaro <gemmaro.dev <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 20 Feb 2025 07:34:02 GMT) Full text and rfc822 format available.

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

From: gemmaro <gemmaro.dev <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: gemmaro <gemmaro.dev <at> gmail.com>
Subject: [PATCH core-updates] gnu: ruby-racc: Update to 1.8.1.
Date: Thu, 20 Feb 2025 16:32:44 +0900
* gnu/packages/ruby.scm (ruby-racc): Update to 1.8.1.
[source]: Use the Git repository for tests.
[arguments]<#:tests>: Remove the disabling of tests.
<#:phases>: Add the compile phase before the build phase to support the
optional native extension for performance improvements.
[native-inputs]: Remove Hoe and add test-unit-ruby-core as a test dependency.

Change-Id: Ifef15fb29b5178a4eea85b524b3c4a5c11b5f2da
---
 gnu/packages/ruby.scm | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 774e0df472..b993293146 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -32,7 +32,7 @@
 ;;; Copyright © 2022-2024 Remco van 't Veer <remco <at> remworks.net>
 ;;; Copyright © 2022 Taiju HIGASHI <higashi <at> taiju.info>
 ;;; Copyright © 2023 Yovan Naumovski <yovan <at> gorski.stream>
-;;; Copyright © 2023, 2024 gemmaro <gemmaro.dev <at> gmail.com>
+;;; Copyright © 2023, 2024, 2025 gemmaro <gemmaro.dev <at> gmail.com>
 ;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke <at> gnu.org>
 ;;; Copyright © 2023, 2024 Zheng Junjie <873216071 <at> qq.com>
 ;;; Copyright © 2023, 2024 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
@@ -8765,19 +8765,27 @@ (define-public ruby-nokogiri-diff
 (define-public ruby-racc
   (package
     (name "ruby-racc")
-    (version "1.5.2")
+    (version "1.8.1")
     (source
      (origin
-       (method url-fetch)
-       (uri (rubygems-uri "racc" version))
+       (method git-fetch) ;for tests
+       (uri (git-reference
+             (url "https://github.com/ruby/racc")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
        (sha256
         (base32
-         "178k7r0xn689spviqzhvazzvxfq6fyjldxb3ywjbgipbfi4s8j1g"))))
+         "1sg2mqp6yxdxrn9kbbsxkd6930fxvm4yjl8knsc0wq6fkipnhm8q"))))
     (build-system ruby-build-system)
     (arguments
-     `(#:tests? #f))            ; Fails while parsing test instructions.
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'compile
+            (lambda _
+              (invoke "rake" "compile"))))))
     (native-inputs
-     (list ruby-hoe ruby-rake-compiler))
+     (list ruby-rake-compiler ruby-test-unit-ruby-core))
     (synopsis "LALR(1) parser generator for Ruby")
     (description
      "Racc is a LALR(1) parser generator.  It is written in Ruby itself, and
-- 
2.48.1





Information forwarded to guix-patches <at> gnu.org:
bug#76434; Package guix-patches. (Thu, 20 Feb 2025 07:40:02 GMT) Full text and rfc822 format available.

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

From: gemmaro <gemmaro.dev <at> gmail.com>
To: 76434 <at> debbugs.gnu.org
Subject: Re: [PATCH core-updates] gnu: ruby-racc: Update to 1.8.1.
Date: Thu, 20 Feb 2025 16:39:24 +0900
tags 76434 - core-updates
tags 76434 + ruby-team




This bug report was last modified 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.