summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guix-science/packages/algebra.scm6
-rw-r--r--patches/composyx-chameleon-1.4.patch14
2 files changed, 19 insertions, 1 deletions
diff --git a/guix-science/packages/algebra.scm b/guix-science/packages/algebra.scm
index f48b7e8..664e4fd 100644
--- a/guix-science/packages/algebra.scm
+++ b/guix-science/packages/algebra.scm
@@ -7,6 +7,7 @@
7 #:prefix license:) 7 #:prefix license:)
8 #:use-module (guix build-system cmake) 8 #:use-module (guix build-system cmake)
9 #:use-module (guix build-system pyproject) 9 #:use-module (guix build-system pyproject)
10 #:use-module (gnu packages)
10 #:use-module (gnu packages check) 11 #:use-module (gnu packages check)
11 #:use-module (gnu packages cpp) 12 #:use-module (gnu packages cpp)
12 #:use-module (gnu packages gcc) 13 #:use-module (gnu packages gcc)
@@ -163,7 +164,10 @@ area (CPUs-GPUs, distributed nodes).")
163 (recursive? #t))) 164 (recursive? #t)))
164 (file-name (git-file-name name version)) 165 (file-name (git-file-name name version))
165 (sha256 166 (sha256
166 (base32 "0mi9hkcxmnrrs6078wvwwrpg4df92w8rdpi061yc6i8c83r16zmy")))) 167 (base32 "0mi9hkcxmnrrs6078wvwwrpg4df92w8rdpi061yc6i8c83r16zmy"))
168 ;; XXX: Remove when upgrading Composyx from 1.4.2.
169 (patches (search-patches
170 "patches/composyx-chameleon-1.4.patch"))))
167 (arguments 171 (arguments
168 (list 172 (list
169 #:configure-flags 173 #:configure-flags
diff --git a/patches/composyx-chameleon-1.4.patch b/patches/composyx-chameleon-1.4.patch
new file mode 100644
index 0000000..2d613ba
--- /dev/null
+++ b/patches/composyx-chameleon-1.4.patch
@@ -0,0 +1,14 @@
1# Fixes API breakage in Composyx after Chameleon upgrade to version 1.4.
2diff --git a/include/composyx/solver/ChameleonSolver.hpp b/include/composyx/solver/ChameleonSolver.hpp
3index 4ab3f9e9..f3a5bfce 100644
4--- a/include/composyx/solver/ChameleonSolver.hpp
5+++ b/include/composyx/solver/ChameleonSolver.hpp
6@@ -82,7 +82,7 @@ public:
7 CHAMELEON_Desc_Destroy(&_chamT);
8 }
9 if (_chamIPIV != nullptr) {
10- CHAMELEON_Ipiv_Destroy(&_chamIPIV, _chamA);
11+ CHAMELEON_Ipiv_Destroy(&_chamIPIV);
12 }
13 if (_chamA != nullptr) {
14 CHAMELEON_Desc_Destroy(&_chamA);