gnu: inkscape: Conditionally disable precision tests.

* gnu/packages/inkscape.scm (inkscape/stable)[arguments]: Disable tests on
aarch64, ppc64le, and riscv64 that fail due to precision errors.

Change-Id: Ie40100ed4adc4d007211c695b34eb4d648345304
This commit is contained in:
Ricardo Wurmus 2024-07-26 07:56:45 +02:00 committed by Ludovic Courtès
parent fc91a71c77
commit 540f1c8bfe
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -187,7 +187,9 @@ (define-public inkscape/stable
(lambda _
;; https://gitlab.com/inkscape/inkscape/-/issues/3554#note_1035680690
(substitute* "testfiles/CMakeLists.txt"
(("lpe64-test") "#lpe64-test"))
(("lpe64-test") "#lpe64-test")
((" lpe-test") " #lpe-test")
(("add_subdirectory\\(lpe_tests\\)") ""))
;; https://gitlab.com/inkscape/inkscape/-/issues/3554#note_1035539888
;; According to upstream, this is a false positive.
(substitute* "testfiles/rendering_tests/CMakeLists.txt"
@ -197,6 +199,9 @@ (define-public inkscape/stable
;; Allegedly a precision error in the gamma.
(substitute* "testfiles/cli_tests/CMakeLists.txt"
(("add_cli_test\\(export-png-color-mode-gray-8_png" all)
(string-append "#" all))
;; These also seem to be failing due to precision errors.
(("add_pdfinput_test\\(font-(spacing|style) 1 draw-all" all)
(string-append "#" all))))))
'())
(add-after 'unpack 'set-home