summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-09-28 12:16:40 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-09-28 13:48:32 +0300
commit790f68653e12adefd87a0810bd20502a329bf9eb (patch)
treeb0476c9ab1e9a9b5a5f39dc0d1a5f3c72208101a /gnu
parent6ba5e21e3a2c1188731016166c9dc6c320f8b5df (diff)
downloadguix-790f68653e12adefd87a0810bd20502a329bf9eb.tar.gz
gnu: julia-bandedmatrices: Fix compatibility with openblas64.
* gnu/packages/julia-xyz.scm (julia-bandedmatrices)[source]: Add snippet
to backport patch to correctly refer to libblas and liblapack.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/julia-xyz.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index d2be828fc6..6d06698150 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -379,7 +379,17 @@ axes, allowing column names or interval selections.")
                (commit (string-append "v" version))))
         (file-name (git-file-name name version))
         (sha256
-         (base32 "0nrcasjdpwf15z7l2lzyhxjqxlnqk5if78s15sh4gdgxf9kzj3a6"))))
+         (base32 "0nrcasjdpwf15z7l2lzyhxjqxlnqk5if78s15sh4gdgxf9kzj3a6"))
+        (snippet
+         #~(begin
+             (use-modules (guix build utils))
+             ;; From upstream commit 8bbf901bb7fb417fe90be26e0cd9a141cfdfe19c,
+             ;; included in 0.17.34.
+             (substitute* "src/BandedMatrices.jl"
+               (("const libblas = Base\\.libblas_name")
+                "const libblas = LinearAlgebra.BLAS.libblas")
+               (("const liblapack = Base\\.liblapack_name")
+                "const liblapack = LinearAlgebra.BLAS.liblapack"))))))
     (build-system julia-build-system)
     (propagated-inputs
      (list julia-aqua