[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#54635] [PATCH v2 1/5] gnu: gsl: Force bootstrap when cross-compilin
From: |
Arun Isaac |
Subject: |
[bug#54635] [PATCH v2 1/5] gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux. |
Date: |
Thu, 31 Mar 2022 12:58:45 +0530 |
* gnu/packages/maths.scm (gsl)[arguments]: Force autotools bootstrap when
cross-compiling to riscv64-linux.
[native-inputs]: Add autoconf, automake and libtool when cross-compiling to
riscv64-linux.
---
gnu/packages/maths.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index ecb85642ec..a05f89cb4e 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,13 @@ (define-public gsl
#:phases
(modify-phases %standard-phases
,@(cond
+ ((target-riscv64?)
+ '((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 +575,10 @@ (define-public gsl
(string-append "exit (77);\n" all)))))))
(else '()))))))
+ (native-inputs
+ (if (target-riscv64?)
+ (list autoconf automake libtool)
+ '()))
(home-page "https://www.gnu.org/software/gsl/")
(synopsis "Numerical library for C and C++")
(description
--
2.34.0
- [bug#54635] [PATCH 4/5] gnu: atomic-queue: Do not depend on boost when cross-compiling., (continued)
- [bug#54635] [PATCH 3/5] gnu: atomic-queue: Run tests correctly., Arun Isaac, 2022/03/30
- [bug#54635] [PATCH 5/5] gnu: Add wfmash., Arun Isaac, 2022/03/30
- [bug#54635] [PATCH 1/5] gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux., Maxime Devos, 2022/03/30
- [bug#54635] [PATCH 1/5] gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux., Maxime Devos, 2022/03/30
- [bug#54635] [PATCH v2 1/5] gnu: gsl: Force bootstrap when cross-compiling to riscv64-linux.,
Arun Isaac <=
- [bug#54635] [PATCH v2 3/5] gnu: atomic-queue: Run tests correctly., Arun Isaac, 2022/03/31
- [bug#54635] [PATCH v2 4/5] gnu: atomic-queue: Do not look for boost when cross-compiling., Arun Isaac, 2022/03/31
- [bug#54635] [PATCH v2 5/5] gnu: Add wfmash., Arun Isaac, 2022/03/31
- [bug#54635] [PATCH v2 5/5] gnu: Add wfmash., Maxime Devos, 2022/03/31
- [bug#54635] [PATCH v2 5/5] gnu: Add wfmash., Efraim Flashner, 2022/03/31
- [bug#54635] [PATCH v2 5/5] gnu: Add wfmash., Maxime Devos, 2022/03/31
- [bug#54635] [PATCH v2 5/5] gnu: Add wfmash., Efraim Flashner, 2022/03/31
- bug#54635: [PATCH v2 5/5] gnu: Add wfmash., Efraim Flashner, 2022/03/31
- [bug#54635] [PATCH v2 2/5] gnu: htslib: Add bzip2 and xz to inputs., Arun Isaac, 2022/03/31