Subject: [bug#78022] [PATCH 3/8] gnu: Remove openfst-1.7.3.

From: Nicolas Graves <[email-masked]>
Date: Thu, 24 Apr 2025 01:08:07 +0200

* gnu/packages/machine-learning.scm (openfst-1.7.3): Delete variable.
(kaldi, gst-kaldi-nnet2-online): Replace openfst-1.7.3 by openfst.
---
 gnu/packages/machine-learning.scm | 20 ++------------------
 1 file changed, 2 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index b4d921733ab..32b8160e176 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1036,21 +1036,6 @@ (define-public openfst
 optimizing, and searching weighted finite-state transducers (FSTs).")
     (license license:asl2.0)))
 
-;; This is a temporary addition to bypass upstream issues with the kaldi
-;; package.
-(define-public openfst-1.7.3
-  (package (inherit openfst)
-    (version "1.7.3")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append "http://www.openfst.org/twiki/pub/FST/"
-                                  "FstDownload/openfst-" version ".tar.gz"))
-              (sha256
-               (base32
-                "038a60w7y8qnbxmcrsim9rafz9mihsny8xv50jpzlr7rl166pp5q"))))
-    (arguments '(#:configure-flags '("--enable-ngram-fsts" "CXXFLAGS=-std=c++14")
-                 #:make-flags '("CXXFLAGS=-std=c++14")))))
-
 (define openfst-for-vosk
   (package
     (inherit openfst)
@@ -2933,8 +2918,7 @@ (define-public python-jaxtyping
 ;; There have been no proper releases yet.
 (define-public kaldi
   (let ((commit "be22248e3a166d9ec52c78dac945f471e7c3a8aa")
-        (revision "1")
-        (openfst openfst-1.7.3)) ;; Temporary bypass for upstream issues
+        (revision "1"))
     (package
       (name "kaldi")
       (version (git-version "0" revision commit))
@@ -3197,7 +3181,7 @@ (define-public gst-kaldi-nnet2-online
                        (lib (string-append out "/lib/gstreamer-1.0")))
                   (install-file "libgstkaldinnet2onlinedecoder.so" lib)))))))
       (inputs
-       (list glib gstreamer jansson openfst-1.7.3 kaldi))
+       (list glib gstreamer jansson openfst kaldi))
       (native-inputs
        `(("bash" ,bash)
          ("glib:bin" ,glib "bin")       ; glib-genmarshal
-- 
2.49.0