Subject: [PATCH 40/41] gnu: kaldi-for-vosk: Remove dependency on lapack.

From: Romain GARBAGE <[email-masked]>
Date: Mon, 11 Mar 2024 12:07:21 +0100

* gnu/packages/machine-learning.scm (kaldi-for-vosk): Remove dependency
to lapack.

Change-Id: I0f5f508288ccb2e7fd086aabeffb5b0b4d3f96b2
---
 gnu/packages/machine-learning.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 005ae0a8d5..aa375b0c34 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -2517,7 +2517,6 @@ (define kaldi-for-vosk
           (base32 "16w90za8narkfi590cxj4p7vc1f5sdxc927g5hk6kh4l3mf6iisl"))))
       (inputs
        (list alsa-lib
-             lapack ;compared to base kaldi, replacing `(,gfortran "lib")
              glib
              gstreamer
              jack-2
@@ -2536,7 +2535,6 @@ (define kaldi-for-vosk
             (replace 'configure
               (lambda _
                 (let ((portaudio #$(this-package-input "portaudio"))
-                      (lapack    #$(this-package-input "lapack"))
                       (openfst   #$(this-package-input "openfst"))
                       (openblas  #$(this-package-input "openblas")))
                   #$@(if (target-x86?)
@@ -2570,7 +2568,7 @@ (define kaldi-for-vosk
                      (string-append "OPENBLASROOT=\"" openblas "\""))
                     (("-L\\$OPENBLASLIBDIR -l:libopenblas.a -l:libblas.a -l:liblapack.a -l:libf2c.a")
                      (string-append "-L$OPENBLASLIBDIR -lopenblas "
-                                    "-L" lapack "/lib -lblas -llapack")))
+                                    "-L" openblas "/lib -lopenblas")))
                   (mkdir-p #$output) ; must exist
                   (setenv "CONFIG_SHELL" (which "bash"))
                   (setenv "OPENFST_VER" #$(package-version openfst))
-- 
2.41.0