From c9b723f866d26c16414c451e39e8f822fcc91091 Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Fri, 9 Oct 2026 08:51:30 +0000 Subject: [PATCH 1/2] kaldifst: Add version 1.8.1 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/kaldifst.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/packages/kaldifst.yaml b/docs/packages/kaldifst.yaml index 4c0fe40f553..29dd34da505 100644 --- a/docs/packages/kaldifst.yaml +++ b/docs/packages/kaldifst.yaml @@ -18,3 +18,4 @@ versions: - filename: kaldifst-1.8.0-cp314-cp314t-manylinux_2_39_riscv64.whl sha256: c54ef869b11437db78419d10cdf8e9a71f6494718312c51bfedfe07f6bfb792c requires-python: '>=3.8' +- version: 1.8.1 From e0b6c2554ff06bdc69669d024458245758d6e9be Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Fri, 9 Oct 2026 16:33:13 +0000 Subject: [PATCH 2/2] kaldifst: carry forward riscv64 patches to 1.8.1 Nightly version bump omitted the patches/kaldifst/ directory for 1.8.1, so the build's unconditional `git apply .../*.patch` step failed with "No such file or directory" before any build/test ran. Copied forward the same patch set from 1.8.0 (unchanged since then). --- ...ybind11-licences-in-the-wheel-s-dist.patch | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 patches/kaldifst/1.8.1/0001-ship-OpenFST-and-pybind11-licences-in-the-wheel-s-dist.patch diff --git a/patches/kaldifst/1.8.1/0001-ship-OpenFST-and-pybind11-licences-in-the-wheel-s-dist.patch b/patches/kaldifst/1.8.1/0001-ship-OpenFST-and-pybind11-licences-in-the-wheel-s-dist.patch new file mode 100644 index 00000000000..b1d436ba4cf --- /dev/null +++ b/patches/kaldifst/1.8.1/0001-ship-OpenFST-and-pybind11-licences-in-the-wheel-s-dist.patch @@ -0,0 +1,92 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Sun, 27 Sep 2026 22:30:00 +0200 +Subject: [PATCH] ship OpenFST's and pybind11's licences in the wheel's + dist-info + +cmake/openfst.cmake FetchContent-downloads csukuangfj/openfst +v1.8.5-2026-04-10 at build time (the repo carries no OpenFST source of +its own) and links its fst and fstscript libraries, built static, into +_kaldifst - the one extension module every wheel ships. +cmake/pybind11.cmake likewise FetchContent-downloads pybind11 v3.0.0, +whose headers are compiled into that same module. + +setup.py declares no `license_files`, so setuptools' default +LICEN[CS]E* root glob is what ships kaldifst's own LICENSE; it never +reaches OpenFST's COPYING (Apache-2.0) or pybind11's LICENSE +(BSD-3-Clause), which only exist in the build tree after CMake's +FetchContent runs. Reproduced against the real +kaldifst-1.8.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl +from PyPI: dist-info/licenses/ carries only LICENSE. + +Restoring both texts unchanged from those tags at the project root as +LICENSE.openfst and LICENSE.pybind11 is picked up by that same default +glob with no packaging change, landing them in dist-info/licenses/ +alongside kaldifst's own LICENSE. + +Upstream-Status: To upstream [not yet submitted; no fork of k2-fsa/kaldifst to push from] + +Signed-off-by: Ludovic Henry +--- + LICENSE.openfst | 13 +++++++++++++ + LICENSE.pybind11 | 29 +++++++++++++++++++++++++++++ + 2 files changed, 42 insertions(+) + create mode 100644 LICENSE.openfst + create mode 100644 LICENSE.pybind11 + +diff --git a/LICENSE.openfst b/LICENSE.openfst +new file mode 100644 +index 0000000..d0d7ee0 +--- /dev/null ++++ b/LICENSE.openfst +@@ -0,0 +1,13 @@ ++Licensed under the Apache License, Version 2.0 (the "License"); ++you may not use these files except in compliance with the License. ++You may obtain a copy of the License at ++ ++ http://www.apache.org/licenses/LICENSE-2.0 ++ ++Unless required by applicable law or agreed to in writing, software ++distributed under the License is distributed on an "AS IS" BASIS, ++WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++See the License for the specific language governing permissions and ++limitations under the License. ++ ++Copyright 2005-2026 Google LLC. +diff --git a/LICENSE.pybind11 b/LICENSE.pybind11 +new file mode 100644 +index 0000000..e466b0d +--- /dev/null ++++ b/LICENSE.pybind11 +@@ -0,0 +1,29 @@ ++Copyright (c) 2016 Wenzel Jakob , All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions are met: ++ ++1. Redistributions of source code must retain the above copyright notice, this ++ list of conditions and the following disclaimer. ++ ++2. Redistributions in binary form must reproduce the above copyright notice, ++ this list of conditions and the following disclaimer in the documentation ++ and/or other materials provided with the distribution. ++ ++3. Neither the name of the copyright holder nor the names of its contributors ++ may be used to endorse or promote products derived from this software ++ without specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ++ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE ++FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ++SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ++CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ++OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ++OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ ++Please also refer to the file .github/CONTRIBUTING.md, which clarifies licensing of ++external contributions to this project including patches, pull requests, etc. +-- +2.50.1