guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/11: gnu: julia-bandedmatrices: Fix compatibility with openblas64.


From: guix-commits
Subject: 10/11: gnu: julia-bandedmatrices: Fix compatibility with openblas64.
Date: Thu, 28 Sep 2023 07:37:40 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 790f68653e12adefd87a0810bd20502a329bf9eb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Sep 28 12:16:40 2023 +0300

    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.
---
 gnu/packages/julia-xyz.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]