~ruther/guix-local

3d4c527824e4383ba1f7724e718ffb30148d69e2 — Ludovic Courtès 4 years ago c9208be
gnu: lib2geom: Skip faulty test on i686.

* gnu/packages/graphics.scm (lib2geom)[arguments]: When
'target-x86-32?', add 'skip-faulty-test' phase.
1 files changed, 11 insertions(+), 1 deletions(-)

M gnu/packages/graphics.scm
M gnu/packages/graphics.scm => gnu/packages/graphics.scm +11 -1
@@ 812,7 812,17 @@ exception-handling library.")
               (substitute* '("src/cython/CMakeLists.txt"
                              "src/py2geom/CMakeLists.txt")
                 (("PYTHON_LIB_INSTALL \"[^\"]*\"")
                  (format #f "PYTHON_LIB_INSTALL ~s" site-package)))))))))
                  (format #f "PYTHON_LIB_INSTALL ~s" site-package))))))
         ,@(if (target-x86-32?)
               `((add-after 'unpack 'skip-faulty-test
                   (lambda _
                     ;; This test fails on i686 when comparing floating point
                     ;; values, probably due to excess precision.  However,
                     ;; '-fexcess-precision' is not implemented for C++ in
                     ;; GCC 10 so just skip it.
                     (substitute* "tests/CMakeLists.txt"
                       (("bezier-test") "")))))
               '()))))
    (native-inputs `(("python" ,python-wrapper)
                     ("googletest" ,googletest)
                     ("pkg-config" ,pkg-config)))