Subject: [PATCH 69/88] gnu: ruby-liquid-c-bootstrap: Update to 4.2.0.

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

* gnu/packages/ruby-xyz.scm (ruby-liquid-c-bootstrap): Update to 4.2.0.
  [arguments]{phases}: Add phase 'pre-check.
---
 gnu/packages/ruby-xyz.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 2ad8d10574..f168c7bf63 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -13622,13 +13622,13 @@ (define-public ruby-liquid-4
 (define ruby-liquid-c-bootstrap
   (package
     (name "ruby-liquid-c-bootstrap")
-    (version "4.1.0")
+    (version "4.2.0")
     (source (origin
               (method url-fetch)
               (uri (rubygems-uri "liquid-c" version))
               (sha256
                (base32
-                "0jl37jz9hbfbhknryx4myxqx4n1f5dzyzmf1sapkcbw93xyrmkch"))))
+                "040qspl1x0pm5l3zwf90w02rcygbk0xl9bb1jgbszpj857pyqh8p"))))
     (build-system ruby-build-system)
     (arguments (list #:tests? #f))
     (native-inputs (list ruby-rake-compiler))
@@ -13662,7 +13662,15 @@ (define-public ruby-liquid-c
                 ((".*rubocop.*") "")
                 ;; Relax spy version specification.
                 (("gem \"spy\", \"0.4.1\"")
-                 "gem \"spy\", \">= 0.4.1\"")))))))
+                 "gem \"spy\", \">= 0.4.1\""))))
+          ;; XXX: Unclear if the binary_name has any influence on Memcheck.
+          ;; But the tests fail if it's unset.
+          (add-before 'check 'pre-check
+            (lambda _
+              (substitute* "Rakefile"
+                (("require \"ruby_memcheck\"" all)
+                 (string-append all "
+RubyMemcheck.config(binary_name: \"liquid_c.so\")"))))))))
     (native-inputs
      (list ruby-benchmark-ips
            ruby-rake-compiler
-- 
2.49.0