From b6f7a95dc16a9fabdba37f78c0efa665a636d519 Mon Sep 17 00:00:00 2001 From: Aaron Covrig Date: Mon, 2 Mar 2026 07:36:42 -0500 Subject: 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 --- gnu/packages/ruby-xyz.scm | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm index 23dab11735e..6009e780278 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 -- cgit v1.2.3