summaryrefslogtreecommitdiff
path: root/gnu/packages/patches
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-07-19 15:37:39 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-19 16:01:52 +0200
commit1a76e68d2938b1be17faee4abc525771ffe8c76a (patch)
tree91e51bbd3fa8fe68a434399d7acd89486da2f929 /gnu/packages/patches
parent234505067af66694b35b2c1dec576e11214ba0c1 (diff)
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>
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r--gnu/packages/patches/openfst-for-vosk-fix-unique-ptr.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/patches/openfst-for-vosk-fix-unique-ptr.patch b/gnu/packages/patches/openfst-for-vosk-fix-unique-ptr.patch
new file mode 100644
index 0000000000..f6949a070f
--- /dev/null
+++ b/gnu/packages/patches/openfst-for-vosk-fix-unique-ptr.patch
@@ -0,0 +1,24 @@
+From 879f09d2ac799cca99b78de3442194ebbe29d24a Mon Sep 17 00:00:00 2001
+From: Nickolay Shmyrev <nshmyrev@gmail.com>
+Date: Fri, 23 Aug 2024 16:10:49 +0200
+Subject: [PATCH] Proper assign to unique_ptr
+
+---
+ src/include/fst/fst.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/include/fst/fst.h b/src/include/fst/fst.h
+index 80e394808..57cf1fd68 100644
+--- a/src/include/fst/fst.h
++++ b/src/include/fst/fst.h
+@@ -701,8 +701,8 @@ class FstImpl {
+ properties_.store(impl.properties_.load(std::memory_order_relaxed),
+ std::memory_order_relaxed);
+ type_ = impl.type_;
+- isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
+- osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr;
++ isymbols_.reset(impl.isymbols_ ? impl.isymbols_->Copy() : nullptr);
++ osymbols_.reset(impl.osymbols_ ? impl.osymbols_->Copy() : nullptr);
+ return *this;
+ }
+