~ruther/guix-local

ca60f03d8479cdcf384ed6a18f049b11e138be3c — Remco van 't Veer 7 months ago fd888dd
gnu: assimp: Fix aarch64 build.

Some tests fail on aarch64 upstream.  See also:
https://github.com/assimp/assimp/issues/6246

* gnu/packages/graphics.scm (assimp) [arguments] <#:phases>: Disable
tests failing on target aarch64.

Change-Id: I193fb97b285bab9b7e092b9ad21b7e301177e1f4
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
1 files changed, 14 insertions(+), 1 deletions(-)

M gnu/packages/graphics.scm
M gnu/packages/graphics.scm => gnu/packages/graphics.scm +14 -1
@@ 826,7 826,20 @@ and export to various formats including the format used by Magicavoxel.")
                   (substitute* "test/CMakeLists.txt"
                     ;; Leave the test binary where ctest will look for it.
                     (("TARGET_USE_COMMON_OUTPUT_DIRECTORY\\(unit\\)")
                      "")))))))
                      ""))

                   ;; Some tests fail on aarch64:
                   ;; <https://github.com/assimp/assimp/issues/6246>.
                   (when #$(target-aarch64?)
                     (substitute* "test/unit/AssimpAPITest_aiMatrix3x3.cpp"
                       (("aiMatrix3FromToTest")
                        "DISABLED_aiMatrix3FromToTest"))
                     (substitute* "test/unit/AssimpAPITest_aiMatrix4x4.cpp"
                       (("aiMatrix4FromToTest")
                        "DISABLED_aiMatrix4FromToTest"))
                     (substitute* "test/unit/AssimpAPITest_aiQuaternion.cpp"
                       (("aiQuaternionFromNormalizedQuaternionTest")
                        "DISABLED_aiQuaternionFromNormalizedQuaternionTest"))))))))
    (build-system cmake-build-system)
    (inputs
     (list zlib))