This is an automated email from the git hooks/post-receive script.

guix_mirror_bot pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b6f7a95dc1 gnu: ruby-asciidoctor-pdf: Update to 2.3.24.
b6f7a95dc1 is described below

commit b6f7a95dc16a9fabdba37f78c0efa665a636d519
Author: Aaron Covrig <[email protected]>
AuthorDate: Mon Mar 2 07:36:42 2026 -0500

    gnu: ruby-asciidoctor-pdf: Update to 2.3.24.
    
    * gnu/packages/ruby-xyz.scm (ruby-asciidoctor-pdf): Update to 2.3.24.
    [native-inputs]: Add poppler.
    [arguments]<#:test-target>: Remove unused argument.
    <#:phases>{relax-dependencies}: Add/restore phase.
    {check}: Update tests.
    
    Fixes: guix/guix#6050
    Change-Id: I6b81683cba2b3131fa3c44471739309f35c89554
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/ruby-xyz.scm | 33 +++++++++++++++++++++++++++------
 1 file changed, 27 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index 23dab11735..6009e78027 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -1304,7 +1304,7 @@ configurable levels.")
 (define-public ruby-asciidoctor-pdf
   (package
     (name "ruby-asciidoctor-pdf")
-    (version "2.3.19")
+    (version "2.3.24")
     (source
      (origin
        (method git-fetch)               ;no test suite in the distributed gem
@@ -1314,16 +1314,19 @@ configurable levels.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "1l8my8jj4aww2yad80n6f7hs76lq5gicld8dy014pw90pk3x43mp"))
+         "0njpbgfdwzw7rbjj5vg5xjmykm55x588fk437nvaqg6bq7pv66mw"))
        (patches
         (search-patches
          "ruby-asciidoctor-pdf-support-prawn-svg-0_36.patch"))))
     (build-system ruby-build-system)
     (arguments
      (list
-      #:test-target "spec"
       #:phases
       #~(modify-phases %standard-phases
+          (add-after 'extract-gemspec 'relax-dependencies
+            (lambda _
+              (substitute* "asciidoctor-pdf.gemspec"
+                (("~>") ">="))))
           ;; The tests rely on the Gem being installed, so move the check
           ;; phase after the install phase.
           (delete 'check)
@@ -1333,10 +1336,28 @@ configurable levels.")
                                   (getenv "GEM_PATH") ":"
                                   #$output "/lib/ruby/vendor_ruby"))
               (when tests?
-                (invoke "rspec" "-t" "~visual" "-t" "~cli"
-                        "-t" "~network")))))))
+                (let ((skippedtests
+                        (list ;; Disable tests requiring write access
+                              "should render linear gradient in SVG"
+                              ;; Disable visual+cli tests requiring network 
access
+                              "should allow remote image in SVG to be read if 
allow"
+                              "should warn if remote image is missing and 
allow"
+                              "should replace video with poster image if allow"
+                              "should read remote image over"
+                              "should embed remote image")))
+                     (setenv "SPEC_OPTS"
+                       (string-append
+                         "--warnings" " "
+                         ;; Disable tests failing in the guix environment:
+                         "--example-matches "
+                         "'(^(?!.*(" (string-join skippedtests "|") ")).*)'")))
+                ;; The Fontconfig error: No writable cache directories errors
+                ;; are caused by our read-only test environment and are
+                ;; non-failing
+                (invoke "rspec" "-t" "~network")))))))
     (native-inputs
-     (list ruby-chunky-png
+     (list poppler
+           ruby-chunky-png
            ruby-coderay
            ruby-pdf-inspector
            ruby-rouge

Reply via email to