gnu: scalapack: Update to 2.2.2.

* gnu/packages/maths.scm (scalapack): Update to 2.2.2. Use git-fetch.
<source>: Update URL. Remove patch.
<phases>: Update list of failing tests.
* gnu/local.mk: Unregister patch.
* gnu/packages/patches/scalapack-gcc-10-compilation.patch: Delete file.

Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Paul Garlick 2025-06-11 13:14:40 +01:00 committed by Andreas Enge
parent c3bb472e21
commit 3e3bc2a6d6
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
3 changed files with 12 additions and 5697 deletions

View file

@ -1300,16 +1300,17 @@ provide LAPACK for someone who does not have access to a Fortran compiler.")
(define-public scalapack
(package
(name "scalapack")
(version "2.1.0")
(version "2.2.2")
(source
(origin
(method url-fetch)
(uri (string-append "http://www.netlib.org/scalapack/scalapack-"
version ".tgz"))
(method git-fetch)
(uri (git-reference
(url "https://github.com/Reference-ScaLAPACK/scalapack")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"19i0h9vdc3zsy58r6fy1vs2kz2l7amifkz0cf926j90xz1n23nb1"))
(patches (search-patches "scalapack-gcc-10-compilation.patch"))))
"0abs4j9iknd3qiyaj06gh00iyki71c2lzpmyv21ncv7f7vy1ccr8"))))
(build-system cmake-build-system)
(inputs
`(("mpi" ,openmpi)
@ -1319,14 +1320,13 @@ provide LAPACK for someone who does not have access to a Fortran compiler.")
`(#:configure-flags `("-DBUILD_SHARED_LIBS:BOOL=YES")
#:phases (modify-phases %standard-phases
(add-before 'check 'mpi-setup
,%openmpi-setup)
(add-after 'unpack 'skip-faulty-test
,%openmpi-setup)
(add-after 'unpack 'skip-faulty-tests
(lambda _
;; FIXME: Skip these two tests that fail to complete for
;; unknown reasons:
;; <https://github.com/Reference-ScaLAPACK/scalapack/issues/43>.
;; FIXME: Skip two tests that fail to complete. See
;; <https://github.com/amd/scalapack/commit/d3b6248b26f615b118ff4d72a00b3028f59a47f6>.
(substitute* "TESTING/CMakeLists.txt"
(("^add_test\\(x[sd]hseqr.*" all)
(("^add_test\\(x[cz]heevr.*" all)
(string-append "# " all "\n"))))))))
(home-page "https://www.netlib.org/scalapack/")
(synopsis "Library for scalable numerical linear algebra")