Subject: [PATCH 07/41] gnu: vosk-api: Remove dependency on lapack.

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

* gnu/packages/machine-learning.scm (vosk-api): Remove input
dependency on lapack.

Change-Id: Id46b37f06bffde5f8a198c1ac913a3dff8ce63e6
---
 gnu/packages/machine-learning.scm | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 5c18a2e9d5..e51877411d 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -5105,8 +5105,7 @@ (define-public vosk-api
               (lambda _ (chdir "src")))
             (replace 'configure
               (lambda _
-                (let* ((lapack   #$(this-package-input "lapack"))
-                       (openfst  #$(this-package-input "openfst"))
+                (let* ((openfst  #$(this-package-input "openfst"))
                        (openblas #$(this-package-input "openblas"))
                        (kaldi    #$(this-package-input "kaldi")))
                   (substitute* "./Makefile"
@@ -5116,8 +5115,7 @@ (define-public vosk-api
                      "")
                     (("-lopenblas -llapack -lblas -lf2c")
                      (string-append
-                      "-L" openblas "/lib " "-lopenblas "
-                      "-L" lapack "/lib " "-llapack -lblas "))
+                      "-L" openblas "/lib " "-lopenblas "))
                     (("-lfst -lfstngram")
                      (string-append
                       "-L" openfst "/lib " "-lfst -lfstngram "))
@@ -5139,7 +5137,7 @@ (define-public vosk-api
                   (for-each
                    (lambda (x) (install-file x src))
                    (find-files "." "\\.h$"))))))))
-      (inputs (list kaldi openfst lapack openblas))
+      (inputs (list kaldi openfst openblas))
       (home-page "https://alphacephei.com/vosk")
       (synopsis "Speech recognition toolkit based on @code{kaldi}")
       (description "\
-- 
2.41.0