From ac8b2a0469a4884353ac5c0f0854012da0b04fda Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 12 Apr 2023 14:10:43 +0200 Subject: [PATCH] gnu: eigen-for-tensorflow: Do not compile broken test. * gnu/packages/algebra.scm (eigen-for-tensorflow)[arguments]: Add phase 'gcc-compatibility to avoid compiling the stddeque test, which doesn't work with the current GCC. [native-inputs]: Remove gcc-7. --- gnu/packages/algebra.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 5d4869ace2fae85aaafbd917d7c7a3f0cbefb2a2..a4bf08d51448cadd30221f5b47dcd3fd8745dfe9 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -3,7 +3,7 @@ ;;; Copyright © 2013, 2015, 2017, 2018, 2021 Ludovic Courtès ;;; Copyright © 2016-2023 Nicolas Goaziou ;;; Copyright © 2014, 2018 Mark H Weaver -;;; Copyright © 2016, 2018, 2019, 2021 Ricardo Wurmus +;;; Copyright © 2016, 2018, 2019, 2021, 2023 Ricardo Wurmus ;;; Copyright © 2017, 2020-2022 Efraim Flashner ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice ;;; Copyright © 2017 Marius Bakke @@ -1146,9 +1146,12 @@ features, and more.") (substitute-keyword-arguments (package-arguments eigen) ((#:phases phases) `(modify-phases ,phases - (delete 'disable-some-tests))))) - (native-inputs - (list gcc-7))))) + (delete 'disable-some-tests) + ;; This test cannot be compiled + (add-after 'unpack 'gcc-compatibility + (lambda _ + (substitute* "test/CMakeLists.txt" + (("ei_add_test\\(stddeque") "#"))))))))))) (define-public eigen-for-tensorflow-lite ;; This commit was taken from