guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: guile-commonmark: Fix build with Guile 3.0.5.


From: guix-commits
Subject: 01/02: gnu: guile-commonmark: Fix build with Guile 3.0.5.
Date: Sat, 6 Feb 2021 15:47:31 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 0e4f49f169818717e1cde37ec2495bf4a483ea72
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Feb 6 21:41:44 2021 +0100

    gnu: guile-commonmark: Fix build with Guile 3.0.5.
    
    * gnu/packages/guile-xyz.scm (guile-commonmark)[arguments]: Add phase to fix
    tests when building with Guile 3.0.5.
---
 gnu/packages/guile-xyz.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 49c5e66..20a3463 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -2506,6 +2506,19 @@ key-value cache and store.")
                      "3.0 2.2 2.0"))
                   #t))))
     (build-system gnu-build-system)
+    ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
+    ;; (exit ...).
+    ;;
+    ;; This has been fixed upstream, but there has not been a new release
+    ;; containing this change.
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
+           (lambda _
+             (substitute* (find-files "tests" "\\.scm$")
+               (("\\(exit.*") ""))
+             #t)))))
     (inputs
      `(("guile" ,guile-3.0)))
     (native-inputs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]