gnu: openfst-for-vosk: Fix build with gcc@14.

Just adds an upstream patch.

* gnu/packages/patches/openfst-for-vosk-fix-unique-ptr.patch: Add
  patch.
* gnu/packages/machine-learning.scm (openfst-for-vosk)[source]
  <patches>: Record patch.
* gnu/local.mk: Record patch.

Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Nicolas Graves 2025-07-19 15:37:39 +02:00 committed by Andreas Enge
parent 234505067a
commit 1a76e68d29
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3
3 changed files with 28 additions and 1 deletions

View file

@ -1036,7 +1036,9 @@ optimizing, and searching weighted finite-state transducers (FSTs).")
(uri (string-append "http://www.openfst.org/twiki/pub/FST/"
"FstDownload/openfst-" version ".tar.gz"))
(sha256
(base32 "0h2lfhhihg63b804hrcljnkggijbjmp84i5g8q735wb09y9z2c4p"))))
(base32 "0h2lfhhihg63b804hrcljnkggijbjmp84i5g8q735wb09y9z2c4p"))
(patches
(search-patches "openfst-for-vosk-fix-unique-ptr.patch"))))
(arguments
'(#:configure-flags
'("--enable-shared" "--enable-far" "--enable-ngram-fsts"