openfst 1.8.4

This commit is contained in:
Jan Engelhardt 2025-02-10 00:43:44 +01:00
parent 4b140a38e3
commit 21b72cc975
5 changed files with 29 additions and 38 deletions

View File

@ -1,32 +0,0 @@
From: Jan Engelhardt <ej@inai.de>
Date: 2024-11-02 23:48:50.447834368 +0100
g++-14 does more checks even on _unexpanded_ templates; hence this
new error that did not show up in g++-12.
Building encode.cc under g++-14 yielded:
```
./../include/fst/fst.h:690:59: error: no match for 'operator=' (operand types are 'std::unique_ptr<fst::SymbolTable, std::default_delete<fst::SymbolTable> >' and 'fst::SymbolTable*')
690 | isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr;
```
---
src/include/fst/fst.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: openfst-1.8.3/src/include/fst/fst.h
===================================================================
--- openfst-1.8.3.orig/src/include/fst/fst.h
+++ openfst-1.8.3/src/include/fst/fst.h
@@ -687,8 +687,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;
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:077714159d5cf3e38a80b6c6656d3ccc2c8b8b6c50bb41bb65c5fec10796bf53
size 1457815

BIN
openfst-1.8.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Sun Feb 9 23:37:56 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.8.4
* Added `NumStatesIfKnown()` method to `FstClass` in script
layer and `num_states_if_known()` to `Fst` in Python layer,
exposing library-layer `Fst::NumStatesIfKnown()`
* Added an option allowing `ArcMapFst` to be an `ExpandedFst`
(thus only accepting `ExpandedFst` inputs) rather than
always fulfilling just the `Fst` interface, even when it
could have provided `NumStates()`
* Modest performance optimizations in `SingleShortestPath`
* Added `CustomShortestFirstQueue`, a generalization of
`NaturalShortestFirstQueue` allowing setting a custom
comparator
* Removed nominal memory leak in `fstquantize` binary which
would occur briefly before exiting
* Various properties and flags in script API (as
`WeightClass::Properties()`) and Python extension (as
`WeightProperties`, `ArcIteratorFlags` and
`EncodeMapperFlags`) are now exposed
- Delete gcc14.patch (obsolete)
-------------------------------------------------------------------
Sat Nov 2 22:54:35 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package openfst
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,15 +18,15 @@
%define lname libfst26
Name: openfst
Version: 1.8.3
Version: 1.8.4
Release: 0
Summary: Weighted finite-state transducer library
License: Apache-2.0
Group: Development/Libraries/C and C++
URL: http://www.openfst.org/
#https://www.openfst.org/twiki/bin/view/FST/FstDownload tarballs & NEWS
Source: http://www.openfst.org/twiki/pub/FST/FstDownload/%name-%version.tar.gz
Patch1: i586-80bitfp.patch
Patch2: gcc14.patch
%if 0%{?suse_version} && 0%{?suse_version} < 1600
BuildRequires: gcc12-c++ >= 8.1.0
%else