[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/09: gnu: gsl: Demote conditional phase logic.
From: |
guix-commits |
Subject: |
01/09: gnu: gsl: Demote conditional phase logic. |
Date: |
Tue, 24 Nov 2020 18:07:51 -0500 (EST) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 4f6fbe755508b991a72f4593c6cdd3991032f973
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Nov 24 14:06:28 2020 +0100
gnu: gsl: Demote conditional phase logic.
* gnu/packages/maths.scm (gsl)[arguments]: Move 'cond' within
'modify-phases'.
---
gnu/packages/maths.scm | 60 ++++++++++++++++++++++++++------------------------
1 file changed, 31 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 4e7a742..db4e6cc 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -476,35 +476,37 @@ precision floating point numbers.")
(build-system gnu-build-system)
(arguments
(let ((system (%current-system)))
- (cond
- ((or (string-prefix? "aarch64" system)
- (string-prefix? "powerpc" system))
- ;; Some sparse matrix tests are failing on AArch64 and PowerPC:
- ;; https://lists.gnu.org/archive/html/bug-gsl/2020-04/msg00001.html
- '(#:phases (modify-phases %standard-phases
- (add-before 'check 'disable-failing-tests
- (lambda _
- (substitute* "spmatrix/test.c"
- ((".*test_complex.*") "\n"))
- #t)))))
- ((string-prefix? "i686" system)
- ;; There are rounding issues with these tests on i686:
- ;; https://lists.gnu.org/archive/html/bug-gsl/2016-10/msg00000.html
- ;; https://lists.gnu.org/archive/html/bug-gsl/2020-04/msg00000.html
- '(#:phases (modify-phases %standard-phases
- (add-before 'check 'disable-failing-tests
- (lambda _
- (substitute* "linalg/test.c"
- ((".*gsl_test\\(test_LU_decomp.*") "\n")
- ((".*gsl_test\\(test_LUc_decomp.*") "\n")
- ((".*gsl_test\\(test_cholesky_decomp.*") "\n")
- ((".*gsl_test\\(test_COD_lssolve2.*") "\n"))
- (substitute* "spmatrix/test.c"
- ((".*test_all.*") "\n")
- ((".*test_float.*") "\n")
- ((".*test_complex.*") "\n"))
- #t)))))
- (else '()))))
+ `(#:phases
+ (modify-phases %standard-phases
+ ,@(cond
+ ((or (string-prefix? "aarch64" system)
+ (string-prefix? "powerpc" system))
+ ;; Some sparse matrix tests are failing on AArch64 and PowerPC:
+ ;;
https://lists.gnu.org/archive/html/bug-gsl/2020-04/msg00001.html
+ '((add-before 'check 'disable-failing-tests
+ (lambda _
+ (substitute* "spmatrix/test.c"
+ ((".*test_complex.*") "\n"))
+ #t))))
+
+ ((string-prefix? "i686" system)
+ ;; There are rounding issues with these tests on i686:
+ ;;
https://lists.gnu.org/archive/html/bug-gsl/2016-10/msg00000.html
+ ;;
https://lists.gnu.org/archive/html/bug-gsl/2020-04/msg00000.html
+ '((add-before 'check 'disable-failing-tests
+ (lambda _
+ (substitute* "linalg/test.c"
+ ((".*gsl_test\\(test_LU_decomp.*") "\n")
+ ((".*gsl_test\\(test_LUc_decomp.*") "\n")
+ ((".*gsl_test\\(test_cholesky_decomp.*") "\n")
+ ((".*gsl_test\\(test_COD_lssolve2.*") "\n"))
+ (substitute* "spmatrix/test.c"
+ ((".*test_all.*") "\n")
+ ((".*test_float.*") "\n")
+ ((".*test_complex.*") "\n"))
+ #t))))
+
+ (else '()))))))
(home-page "https://www.gnu.org/software/gsl/")
(synopsis "Numerical library for C and C++")
(description
- branch core-updates updated (cf495c9 -> 16111ad), guix-commits, 2020/11/24
- 01/09: gnu: gsl: Demote conditional phase logic.,
guix-commits <=
- 02/09: gnu: gsl: Build shared libraries only., guix-commits, 2020/11/24
- 06/09: build-system/texlive: Phases no longer return a Boolean., guix-commits, 2020/11/24
- 04/09: gnu: base, commencement: Remove trailing #t from build phases., guix-commits, 2020/11/24
- 05/09: build-system/minify: Phases no longer return a Boolean., guix-commits, 2020/11/24
- 08/09: gnu: base, gcc: Removing trailing #t from snippets., guix-commits, 2020/11/24
- 03/09: build-system/gnu: Ignore the result of phase procedures., guix-commits, 2020/11/24
- 07/09: packages: Ignore return value of origin snippets., guix-commits, 2020/11/24
- 09/09: gnu: gcc: Phases no longer return a Boolean., guix-commits, 2020/11/24