From fff3eb95b9b67a70252a76e87db1f325320f27a9 Mon Sep 17 00:00:00 2001 From: Luca Cirrottola Date: Tue, 10 Feb 2026 19:11:09 +0100 Subject: [PATCH] gnu: openblas: Use cmake build system. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/maths.scm (openblas)[source]: Update url. [build-system]: Switch to cmake-build-system. [arguments]<#:test-target>: Delete. <#:build-type>: Set. <#:configure-flags>: Add. <#:phases>: Restore ’configure. Merges guix/guix!6178 Change-Id: Ieabb85ad797d70b8894e1f95937dc22af9b34210 Signed-off-by: Cayetano Santos Modified-by: Cayetano Santos --- gnu/packages/maths.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 2ae7c54610..fa620f0768 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -6083,16 +6083,21 @@ parts of it.") (origin (method git-fetch) (uri (git-reference - (url "https://github.com/xianyi/OpenBLAS") + (url "https://github.com/OpenMathLib/OpenBLAS") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1ifbbk4mg4ykm92i9b09wwbcwpyzlfzn8lhds8f3p7cbcga7q530")))) - (build-system gnu-build-system) + (build-system cmake-build-system) (arguments (list - #:test-target "test" + #:build-type "Release" + #:configure-flags + #~(list "-DBUILD_SHARED_LIBS=ON" + "-DBUILD_STATIC_LIBS=OFF" + "-DCMAKE_C_FLAGS=-g" + "-DCMAKE_Fortran_FLAGS=-g") ;; No default baseline is supplied for powerpc-linux. #:substitutable? (not (target-ppc32?)) #:make-flags @@ -6146,7 +6151,6 @@ parts of it.") ;; no configure script #:phases #~(modify-phases %standard-phases - (delete 'configure) (add-before 'build 'set-extralib (lambda* (#:key inputs #:allow-other-keys) ;; Get libgfortran found when building in utest.