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.
This commit is contained in:
Ricardo Wurmus 2021-02-06 21:41:44 +01:00
parent ef4b4b62a8
commit 0e4f49f169
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -2506,6 +2506,19 @@ (define-public guile-commonmark
"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