[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/06: gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux.
From: |
guix-commits |
Subject: |
01/06: gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux. |
Date: |
Thu, 31 Mar 2022 09:31:54 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 973ee1c91db057434b5b5c7a02817b447021abb4
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Thu Mar 31 12:58:45 2022 +0530
gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux.
* gnu/packages/maths.scm (gsl)[arguments]: Force an autotools bootstrap
when cross-compiling to riscv64-linux.
[native-inputs]: Add autoconf, automake and libtool when cross-compiling
to riscv64-linux.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/maths.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index ecb85642ec..10a1f69b8e 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -19,7 +19,7 @@
;;; Copyright © 2017 Nikita <nikita@n0.is>
;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
-;;; Copyright © 2017, 2019 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2017, 2019, 2022 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Dave Love <me@fx@gnu.org>
;;; Copyright © 2018, 2019, 2020, 2021 Jan (janneke) Nieuwenhuizen
<janneke@gnu.org>
@@ -533,6 +533,14 @@ precision floating point numbers.")
#:phases
(modify-phases %standard-phases
,@(cond
+ ((and (target-riscv64?)
+ (%current-target-system))
+ '((add-after 'unpack 'force-bootstrap
+ (lambda _
+ ;; gsl ships with an old configure script that does not
+ ;; support riscv64. Regenerate it.
+ (delete-file "configure")))))
+
((or (string-prefix? "aarch64" system)
(string-prefix? "powerpc" system))
;; Some sparse matrix tests are failing on AArch64 and PowerPC:
@@ -568,6 +576,11 @@ precision floating point numbers.")
(string-append "exit (77);\n" all)))))))
(else '()))))))
+ (native-inputs
+ (if (and (target-riscv64?)
+ (%current-target-system))
+ (list autoconf automake libtool)
+ '()))
(home-page "https://www.gnu.org/software/gsl/")
(synopsis "Numerical library for C and C++")
(description
- branch master updated (a69a44bf59 -> 8f3dc994bb), guix-commits, 2022/03/31
- 02/06: gnu: htslib: Add bzip2 and xz to inputs., guix-commits, 2022/03/31
- 01/06: gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux.,
guix-commits <=
- 04/06: gnu: atomic-queue: Do not look for boost when cross-compiling., guix-commits, 2022/03/31
- 03/06: gnu: atomic-queue: Run tests correctly., guix-commits, 2022/03/31
- 05/06: gnu: Add wfmash., guix-commits, 2022/03/31
- 06/06: gnu: wfmash: Enable test suite., guix-commits, 2022/03/31