gpo.zugaina.org

Search Portage & Overlays:

sci-ml/sherpa-onnx

Speech-to-text, TTS, speaker diarization etc. using onnxruntime

Screenshots

  • sherpa-onnx-2.0.3
    ~amd64 ~arm64
    cuda +portaudio +python +tts +websocket python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14

    View      Download      Browse     License: Apache-2.0   
    Overlay: stuff
  • sherpa-onnx-2.0.3
    ~amd64
    cuda +portaudio +python +tts +websocket python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14 python_single_target_python3_15

    View      Download      Browse     License: Apache-2.0   
    Overlay: bentoo
  • sherpa-onnx-2.0.2
    ~amd64 ~arm64
    cuda +portaudio +python +tts +websocket python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14

    View      Download      Browse     License: Apache-2.0   
    Overlay: stuff
  • sherpa-onnx-2.0.1
    ~amd64 ~arm64
    cuda +portaudio +python +tts +websocket python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14

    View      Download      Browse     License: Apache-2.0   
    Overlay: stuff
  • sherpa-onnx-1.13.8
    ~amd64 ~arm64
    cuda +portaudio +python +tts +websocket python_single_target_python3_12 python_single_target_python3_13 python_single_target_python3_14

    View      Download      Browse     License: Apache-2.0   
    Overlay: stuff

ChangeLog

commit 5395cca1ae7ad9798f8d2531c0f24c81ec20e29b
Author: Lucas C.S. <lucascs@protonmail.com>
Date: Mon Nov 30 10:25:24 2026 -0300

sweep 21 fallbacks the cooldown released on 2026-11-29 (#152)

The 2026-11-29 apply released these versions from the cooldown block, so the
previous version each one kept as a fallback is no longer claimed. Removed
(the newest of each package, and of each series, is kept):

app-editors/zed 1.28.1, 1.29.1_pre; app-misc/trash-cli 0.24.5.26;
dev-libs/sentry-native 0.17.6; dev-qt/qtcanvaspainter 6.12.0;
dev-util/breakpad 2024.02.16-r2; dev-util/glslang, spirv-headers,
spirv-tools, vulkan-utility-libraries (older snapshots);
dev-vcs/gitkraken; media-libs/vulkan-loader; net-libs/libtorrent-rasterbar;
sci-libs/vtk; sci-ml/koboldcpp; sci-ml/localai 5.0.0; sci-ml/sherpa-onnx;
sys-apps/pnpm; sys-apps/tuned; sys-firmware/edk2; www-client/librewolf
160.0.1_p1

Manifests and md5-cache follow the removals. The zed and librewolf cache
entries were re-generated against the current rust.eclass (#151).

profiles/package.mask drops the =dev-qt/qtcanvaspainter-6.12.0* entry: its only
atom named the ebuild this sweep removes (6.12.1 and the 6.11 series stay).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

commit 1772f13da61d404badc0925a37a31d6674471f45
Author: Lucas C.S. <lucascs@protonmail.com>
Date: Sun Nov 22 17:31:59 2026 -0300

*/*: autoupdate 2026-11-22 -- 15 bumps, clean 30 ebuilds, two mirrors converted (#103)

Applied with `bentoo overlay autoupdate --apply all --clean --cooldown`
(bentoolkit 0.46.0) after `--check --llm`:

app-editors/zed 1.29.3 (stable) app-misc/claude-desktop-bin 6.28899.6
app-misc/trash-cli 0.26.9.29 dev-util/cc-switch-bin 4.0.39
dev-util/mesa_clc 27.0.0_pre20261122
dev-util/openchamber-bin 2.8.0 dev-util/phpactor 2026.11.22.0
dev-util/qwen-code 0.28.4 dev-vcs/gitkraken 12.7.0
media-libs/mesa 27.0.0_pre20261122
media-libs/vulkan-loader 1.4.369_p20261121
media-video/obs-studio 33.0.3 sci-ml/ik_llama-cpp 0_pre20261122
sci-ml/koboldcpp 1.125.1 sci-ml/sherpa-onnx 2.0.3

New versions are cooldown-masked until 2026-11-29. mesa, gitkraken and
zed 1.29.3 were promoted on a WAIT check (no build phase ran on this host);
the mask is what stands between them and users until then. Not published:
liborcus 0.22.0 and amd-gaia 0.26.0 (gates failed), qemu 11.2.0 (stale
candidate, nothing measured).

`--clean` dropped 30 ebuilds superseded by claimed versions. Registry pins:
hplip 3.26.6-r1 and ai-jail 3.5.0-r2 -- the run wrote 3.5.0-r1, made before
3.5.0-r2 landed (db4258f22); left at -r1, the next --clean would have
removed -r2.

trash-cli 0.26.9.29 and obs-studio 33.0.3 left ::gentoo behind while still
shaped as mirrors (trash-cli with stable `amd64 x86`): converted by hand to
KEYWORDS="~amd64" with the KEYWORDS divergence tag, a "Based on ::gentoo's"
header and matching `patched` text, as bentoolkit 0.46.1 now does itself.

md5-cache regenerated with egencache for the 40 touched packages (25 stale
entries the clean left behind removed; claude-agent-acp-plus and ai-jail
entries upstream never generated added). pkgcheck: no error that the
previous versions do not already carry; DroppedKeywords on the two
converted mirrors is intended. check-autoupdate-damage.sh: ok.
Nothing was merged into a live system.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

commit 6d1aec7a73fa5b80a09172725fe1ed6a453a5b90
Author: lucascouts <lucascs@protonmail.com>
Date: Thu Nov 19 22:27:56 2026 -0300

add(app-crypt/oo7-0.7.2, app-editors/zed{,-bin}-1.30.1_pre, dev-games/godot-4.8_beta4, dev-python/firecrawl-anydoc-0.2.5, dev-util/{cargo-deny-0.22.0, crush-bin-0.102.0, gemini-cli-0.69.0, glslang-1.4.363.0_p20261119, scorecard-5.7.0, spirv-headers-1.4.363.0_p20261118, spirv-tools-1.4.363.0_p20261119}, media-libs/{vulkan-layers, vulkan-loader}-1.4.368_p20261119, net-libs/{bun-bin-1.4.5, webkit-gtk-2.54.3-r410}, net-misc/anydesk-8.1.1, net-proxy/snowflake-2.15.4, sci-ml/lemonade{,-bin}-2026.47.1, sys-apps/ai-jail-3.5.0, www-client/{brave-browser-1.100.58, librewolf-bin-160.0.1_p1}), add(metadata/{md5-cache/app-admin/awscli2-2.41.1, md5-cache/app-admin/doctl-2.7.0, md5-cache/app-crypt/oo7-0.7.2, md5-cache/app-editors/delta-bin-0.28.1, md5-cache/app-editors/devin-desktop-bin-3.14.30825, md5-cache/app-editors/kiro-1.4.236, md5-cache/app-editors/zed-1.30.1_pre, md5-cache/app-editors/zed-bin-1.29.2, md5-cache/app-editors/zed-bin-1.30.1_pre, md5-cache/dev-games/godot-4.8_beta4, md5-cache/dev-python/firecrawl-anydoc-0.2.5, md5-cache/dev-python/openai-3.55.1, md5-cache/dev-util/ai-memory-3.5.1, md5-cache/dev-util/ai-memory-bin-3.5.1, md5-cache/dev-util/cargo-deny-0.22.0, md5-cache/dev-util/cc-switch-bin-4.0.36, md5-cache/dev-util/claude-code-2.1.328, md5-cache/dev-util/codex-desktop-bin-26.1111.71704, md5-cache/dev-util/crush-bin-0.102.0, md5-cache/dev-util/gemini-cli-0.69.0, md5-cache/dev-util/glslang-1.4.363.0_p20261119, md5-cache/dev-util/mesa_clc-27.0.0_pre20261119, md5-cache/dev-util/scorecard-5.7.0, md5-cache/dev-util/spirv-headers-1.4.363.0_p20261118, md5-cache/dev-util/spirv-tools-1.4.363.0_p20261119, md5-cache/media-libs/mesa-27.0.0_pre20261119, md5-cache/media-libs/vulkan-layers-1.4.368_p20261119, md5-cache/media-libs/vulkan-loader-1.4.368_p20261119, md5-cache/media-video/vlc-4.0.0_pre20261119, md5-cache/net-analyzer/wireshark-4.6.10, md5-cache/net-libs/bun-bin-1.4.5, md5-cache/net-libs/webkit-gtk-2.54.3-r410, md5-cache/net-misc/anydesk-8.1.1, md5-cache/net-misc/postman-bin-12.37.3, md5-cache/net-proxy/snowflake-2.15.4, md5-cache/sci-ml/ik_llama-cpp-0_pre20261119, md5-cache/sci-ml/lemonade-2026.47.1, md5-cache/sci-ml/lemonade-bin-2026.47.1, md5-cache/sci-ml/llama-swap-274, md5-cache/sci-ml/sherpa-onnx-2.0.2, md5-cache/sys-apps/ai-jail-3.5.0, md5-cache/sys-apps/ai-jail-bin-3.5.0, md5-cache/www-client/brave-browser-1.100.58, md5-cache/www-client/librewolf-bin-160.0.1_p1}), del(app-admin/ansible-14.6.0, app-containers/kata-containers-4.3.1), del(metadata/{md5-cache/app-admin/awscli2-2.40.4, md5-cache/app-admin/doctl-2.6.0, md5-cache/app-editors/delta-bin-0.27.1, md5-cache/app-editors/devin-desktop-bin-3.13.4, md5-cache/app-editors/kiro-1.4.178, md5-cache/dev-python/openai-3.55.0, md5-cache/dev-util/ai-memory-3.4.7, md5-cache/dev-util/ai-memory-bin-3.5.0, md5-cache/dev-util/cargo-deny-0.20.2, md5-cache/dev-util/cc-switch-bin-4.0.35, md5-cache/dev-util/claude-code-2.1.326, md5-cache/dev-util/codex-desktop-bin-26.1111.71025, md5-cache/dev-util/glslang-1.4.363.0_p20261116, md5-cache/dev-util/mesa_clc-27.0.0_pre20261117, md5-cache/dev-util/spirv-tools-1.4.363.0_p20261114, md5-cache/media-libs/mesa-27.0.0_pre20261117, md5-cache/media-libs/vulkan-layers-1.4.368_p20261116, md5-cache/media-libs/vulkan-loader-1.4.368_p20261113, md5-cache/media-video/vlc-4.0.0_pre20261117, md5-cache/net-analyzer/wireshark-4.6.9, md5-cache/net-misc/postman-bin-12.37.1, md5-cache/sci-ml/ik_llama-cpp-0_pre20261118, md5-cache/sci-ml/llama-swap-273, md5-cache/sys-apps/ai-jail-3.4.1, md5-cache/sys-apps/ai-jail-bin-3.4.2}), mod(profiles/package.mask, {.autoupdate/cooldown.unmask, .autoupdate/packages.toml}), up(app-admin/{awscli2-2.40.4 -> 2.41.1, doctl-2.6.0 -> 2.7.0}, app-editors/{delta-bin-0.27.1 -> 0.28.1, devin-desktop-bin-3.13.4 -> 3.14.30825}, dev-python/openai-3.55.0 -> 3.55.1, dev-util/{ai-memory-3.4.7 -> 3.5.1, ai-memory-bin-3.5.0 -> 3.5.1, cc-switch-bin-4.0.35 -> 4.0.36, claude-code-2.1.326 -> 2.1.328, codex-desktop-bin-26.1111.71025 -> 26.1111.71704, mesa_clc-27.0.0_pre20261117 -> 27.0.0_pre20261119}, media-libs/mesa-27.0.0_pre20261117 -> 27.0.0_pre20261119, media-video/vlc-4.0.0_pre20261117 -> 4.0.0_pre20261119, net-analyzer/wireshark-4.6.9 -> 4.6.10, net-misc/postman-bin-12.37.1 -> 12.37.3, sci-ml/{ik_llama-cpp-0_pre20261118 -> 0_pre20261119, llama-swap-273 -> 274}, sys-apps/ai-jail-bin-3.4.2 -> 3.5.0)

commit f39d27dd5b9af4f670816df14d524f322cde461b
Author: lucascouts <lucascs@protonmail.com>
Date: Sat Nov 7 12:17:07 2026 -0300

mod(sci-ml/sherpa-onnx-2.0.1, metadata/md5-cache/sci-ml/sherpa-onnx-2.0.1): add python3_15

Built on 3.15 (`ebuild ... compile` with EPYTHON=python3.15, 88 s): the
pybind11 module comes out as _sherpa_onnx.cpython-315-x86_64-linux-gnu.so and
imports under python3.15 with all 129 symbols.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

commit 019b6339ff3797082c951d8c6d272cd9ec362369
Author: lucascouts <lucascs@protonmail.com>
Date: Mon Oct 26 14:12:51 2026 -0300

add(metadata/{md5-cache/app-editors/cursor-3.27.14, md5-cache/dev-qt/qtcanvaspainter-6.11.3, md5-cache/dev-util/ai-memory-3.2.5, md5-cache/dev-util/ai-memory-bin-3.2.5, md5-cache/dev-util/cc-switch-bin-4.0.21, md5-cache/dev-util/cline-bin-3.0.74, md5-cache/dev-util/cline-desktop-bin-0.0.49, md5-cache/dev-util/glslang-1.4.363.0_p20261026, md5-cache/dev-util/kilocode-bin-7.8.18, md5-cache/dev-util/mesa_clc-27.0.0_pre20261026, md5-cache/dev-util/openchamber-bin-2.5.2, md5-cache/media-libs/mesa-27.0.0_pre20261026, md5-cache/media-libs/vulkan-layers-1.4.366_p20261026, md5-cache/media-video/vlc-4.0.0_pre20261026, md5-cache/net-misc/postman-bin-12.34.0, md5-cache/sci-ml/amd-gaia-0.25.1, md5-cache/sci-ml/ik_llama-cpp-0_pre20261026, md5-cache/sci-ml/llama-swap-267, md5-cache/sci-ml/sherpa-onnx-2.0.1}), del(metadata/{md5-cache/app-editors/cursor-3.27.12, md5-cache/dev-qt/qtcanvaspainter-6.11.2, md5-cache/dev-util/ai-memory-3.2.4, md5-cache/dev-util/ai-memory-bin-3.2.4, md5-cache/dev-util/cc-switch-bin-4.0.20, md5-cache/dev-util/cline-bin-3.0.73, md5-cache/dev-util/cline-desktop-bin-0.0.48, md5-cache/dev-util/glslang-1.4.363.0_p20261023, md5-cache/dev-util/kilocode-bin-7.8.17, md5-cache/dev-util/mesa_clc-27.0.0_pre20261025, md5-cache/dev-util/openchamber-bin-2.5.1, md5-cache/media-libs/mesa-27.0.0_pre20261025, md5-cache/media-libs/vulkan-layers-1.4.366_p20261024, md5-cache/media-video/vlc-4.0.0_pre20261025, md5-cache/net-misc/postman-bin-12.33.4, md5-cache/sci-ml/amd-gaia-0.25.0, md5-cache/sci-ml/ik_llama-cpp-0_pre20261025, md5-cache/sci-ml/llama-swap-266, md5-cache/sci-ml/sherpa-onnx-2.0.0}), mod(.autoupdate/packages.toml), up(app-editors/cursor-3.27.12 -> 3.27.14, dev-qt/qtcanvaspainter-6.11.2 -> 6.11.3, dev-util/ai-memory{,-bin}-3.2.4 -> 3.2.5, media-libs/{mesa-27.0.0_pre20261025 -> 27.0.0_pre20261026, vulkan-layers-1.4.366_p20261024 -> 1.4.366_p20261026}, media-video/vlc-4.0.0_pre20261025 -> 4.0.0_pre20261026, net-misc/postman-bin-12.33.4 -> 12.34.0, sci-ml/{amd-gaia-0.25.0 -> 0.25.1, ik_llama-cpp-0_pre20261025 -> 0_pre20261026, llama-swap-266 -> 267, sherpa-onnx-2.0.0 -> 2.0.1})

commit 620041a7aeb7f09069f1f85bfc3abc66b930e85d
Author: lucascouts <lucascs@protonmail.com>
Date: Fri Oct 23 10:46:49 2026 -0300

add(metadata/{md5-cache/dev-util/cc-switch-bin-4.0.19, md5-cache/dev-vcs/trufflehog-3.99.4, md5-cache/media-video/vlc-4.0.0_pre20261023, md5-cache/sci-ml/sherpa-onnx-2.0.0}), del(sci-ml/{localai-4.11.0, ollama-0.40.8}), del(metadata/{md5-cache/dev-util/cc-switch-bin-4.0.18, md5-cache/dev-vcs/trufflehog-3.99.3, md5-cache/media-video/vlc-4.0.0_pre20261022, md5-cache/sci-ml/sherpa-onnx-1.13.8}), mod(.autoupdate/packages.toml), up(dev-util/cc-switch-bin-4.0.18 -> 4.0.19, dev-vcs/trufflehog-3.99.3 -> 3.99.4, media-video/vlc-4.0.0_pre20261022 -> 4.0.0_pre20261023, sci-ml/sherpa-onnx-1.13.8 -> 2.0.0)

commit 9dd526505256d16cd9e07255fca1e68c74986b0b
Author: lucascouts <lucascs@protonmail.com>
Date: Thu Sep 10 12:06:51 2026 -0300

add(metadata/{md5-cache/dev-util/spirv-tools-1.4.357.0_p20260910, md5-cache/sci-ml/sherpa-onnx-1.13.8}), mod(.autoupdate/packages.toml), up(dev-util/spirv-tools-1.4.357.0_p20260909 -> 1.4.357.0_p20260910, sci-ml/sherpa-onnx-1.13.7 -> 1.13.8)

commit 1693e3c5788a4b45298468b62c93cc443a17b568
Author: lucascouts <lucascs@protonmail.com>
Date: Tue Sep 1 12:42:14 2026 -0300

add(metadata/{md5-cache/app-editors/zed-1.19.0_pre20260901, md5-cache/dev-lang/dart-3.13.3, md5-cache/dev-libs/sentry-native-0.16.5, md5-cache/dev-util/codex-0.152.0, md5-cache/dev-util/codex-bin-0.152.0, md5-cache/dev-util/codex-desktop-bin-26.831.20005, md5-cache/dev-util/spirv-tools-1.4.357.0_p20260901, md5-cache/dev-util/trivy-0.74.0-r1, md5-cache/kde-plasma/kdeplasma-addons-6.7.4-r1, md5-cache/net-misc/postman-bin-12.26.1, md5-cache/sci-ml/sherpa-onnx-1.13.7, md5-cache/www-client/librewolf-bin-155.0_p1, md5-cache/x11-base/xwayland-26.0.99.901}), mod(metadata/{md5-cache/app-office/openoffice-bin-4.1.16, md5-cache/dev-lang/ghc-9.14.1, md5-cache/dev-ruby/erb-6.0.7, md5-cache/media-gfx/imagemagick-7.1.2.30, md5-cache/media-libs/dav2d-0.0.1, md5-cache/sys-process/nohang-9999}, .autoupdate/packages.toml), up(app-editors/zed-1.19.0_pre20260831 -> 1.19.0_pre20260901, dev-lang/dart-3.13.2 -> 3.13.3, dev-libs/sentry-native-0.16.4 -> 0.16.5, dev-util/codex{,-bin}-0.151.0 -> 0.152.0, net-misc/postman-bin-12.26.0 -> 12.26.1, sci-ml/sherpa-onnx-1.13.6 -> 1.13.7, www-client/librewolf-bin-154.0.1_p3 -> 155.0_p1)

commit 2c7775d77dfff8468e4c7ebf4fe1f7eec0911f1f
Author: lucascouts <lucascs@protonmail.com>
Date: Tue Aug 18 12:49:44 2026 -0300

add(metadata/{md5-cache/app-misc/claude-desktop-bin-1.32352.1, md5-cache/dev-db/sqlcipher-4.18.0, md5-cache/dev-lang/dart-3.13.1, md5-cache/dev-python/conda-26.7.1, md5-cache/media-plugins/frei0r-plugins-3.4.0, md5-cache/net-misc/postman-bin-12.24.1, md5-cache/sci-ml/llama-cpp-0_pre10488, md5-cache/sci-ml/sherpa-onnx-1.13.6, md5-cache/sys-kernel/linux-firmware-20260818, md5-cache/www-client/librewolf-bin-154.0_p2}), mod(.autoupdate/packages.toml), up(app-misc/claude-desktop-bin-1.32352.0 -> 1.32352.1, dev-db/sqlcipher-4.17.0 -> 4.18.0, dev-lang/dart-3.13.0 -> 3.13.1, dev-python/conda-26.7.0 -> 26.7.1, media-plugins/frei0r-plugins-3.3.2 -> 3.4.0, net-misc/postman-bin-12.23.8 -> 12.24.1, sci-ml/{llama-cpp-0_pre10472 -> 0_pre10488, sherpa-onnx-1.13.5-r1 -> 1.13.6}, sys-kernel/linux-firmware-20260814 -> 20260818, www-client/librewolf-bin-153.0.4_p1 -> 154.0_p2)

commit 3dcadfed6620bb769ad4c3ce2cc7f2de6cb46d32
Author: lucascouts <lucascs@protonmail.com>
Date: Sun Aug 16 10:20:06 2026 -0300

fix(sci-ml/{sherpa-onnx-1.13.5-r1, llama-swap-250-r1}): strip build paths from binaries

Both packages baked the portage sandbox path into what they install: 113
occurrences in sherpa-onnx, 305 in llama-swap. In sherpa-onnx it was not merely
debug metadata -- upstream uses __FILE__ in its message macros, so
`sherpa-onnx --help` opened by printing
/var/tmp/portage/sci-ml/sherpa-onnx-1.13.5/work/.../parse-options.cc:415
straight at the user.

sherpa-onnx: append -ffile-prefix-map over $, not $ -- the vendored
dependencies configure under $_build/_deps and leak their own paths, so
remapping the source tree alone would have cleared about half of them.
-ffile-prefix-map rather than -fdebug-prefix-map because the latter leaves the
user-visible strings untouched, and those are the ones that matter here. The
target path follows Gentoo's split-debug convention so a debugger still
resolves sources under FEATURES=splitdebug.

llama-swap: -trimpath on go build.

Verified rather than assumed:
- the mechanism, on gcc 16.2.0: a test file's __FILE__ is rewritten and the
original path disappears from the compiled binary
- llama-swap rebuilt with the flag: 305 occurrences -> 0, and it still runs
- sherpa-onnx configure: -ffile-prefix-map lands in CMAKE_CXX_FLAGS and
CMAKE_C_FLAGS. Its full rebuild costs hours and is left to the gate, so
113 -> 0 is expected but NOT yet observed. Do not record it as proven
until the gate says so.

Revbumped because the installed binary changes; without it, anyone who already
merged these keeps the leaking build forever. Both gates must be re-run.

This is an improvement on ::gentoo's baseline rather than a rule being
enforced: docker ships 1327 such paths and podman 2759.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

commit 81ab2102426e32af91802191d0f866f0dd2383f3
Author: lucascouts <lucascs@protonmail.com>
Date: Sun Aug 16 08:46:09 2026 -0300

fix(sci-ml/{sherpa-onnx-1.13.5, koboldcpp-1.118.1}): guard cuda.eclass src_prepare

sci-ml/sherpa-onnx failed the merge gate in the PREPARE phase, for every user
without the CUDA toolkit installed -- including USE=-cuda:

Could not execute cuda-config
ERROR: failed (prepare phase): cuda-config not found
Called cuda_src_prepare -> cuda_sanitize -> cuda_gccdir -> die

cuda.eclass does `EXPORT_FUNCTIONS src_prepare`, and its cuda_src_prepare calls
cuda_sanitize unconditionally. sherpa-onnx defined no src_prepare of its own,
so it inherited the eclass one with nothing gating it. The package was
uninstallable without CUDA -- the whole default configuration.

Introduced by this branch: the adopted ebuild hardcoded
CUDAHOSTCXX=/usr/bin/g++-15, and replacing that with cuda_gccdir (correct on
its own) meant inheriting cuda.eclass, which brought the exported phase along
unnoticed. pkgcheck reports nothing: it does not run phases.

sherpa-onnx now defines src_prepare calling cmake_src_prepare (not `default` --
the cmake eclass tracks state that cmake_src_configure depends on) and
cuda_src_prepare only under `use cuda`.

koboldcpp is fixed for the mirror-image defect. Its own src_prepare overrode
the exported one, which is why it passed the gate, but it therefore never ran
cuda_sanitize at all -- so a USE=cuda build passed unsanitized NVCCFLAGS
straight to nvcc. Now calls cuda_src_prepare under the same guard. Its
cuda_gccdir/cuda_add_sandbox uses were already correctly inside `use cuda`.

Verified without root via `ebuild ... clean prepare`: both packages report
"Source prepared." with USE=-cuda. koboldcpp's two gate legs must be re-run,
since this touches a phase they exercised.

Gate results so far: llama-swap 2/2 legs merged, koboldcpp 2/2 merged,
sherpa-onnx 0/2 -- this is the defect it found.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

commit 494447b3a9e9c2b9a276dfcfc7f8346b92fa186d
Author: lucascouts <lucascs@protonmail.com>
Date: Sun Aug 16 07:14:48 2026 -0300

add(sci-ml/{koboldcpp-1.118.1, sherpa-onnx-1.13.5, llama-swap-250}), mod(.autoupdate/packages.toml)

Story 003 Tasks 1, 3 and 4. NOT MERGED ANYWHERE: authoring and pkgcheck only.
No emerge has been run against any of the three, which is why this sits on a
branch instead of master. Story 002 recorded what skipping that gate costs --
six defects shipped, two of them invisible to pkgcheck until resolution was
attempted. The gate commands are in each task in .epic/stories/003-*/tasks.md.

koboldcpp -- adapted from istitov/stuff sci-misc/koboldcpp.
LLAMA_PORTABLE=1 keeps the Makefile off -march=native; cpu_flags_x86_* wired
to its three tiers via LLAMA_NOAVX1/LLAMA_NOAVX2. cuda and rocm each get
their own emake run: a single invocation defines ggml-cuda.o twice and the
HIP recipes silently override the CUDA ones, so USE="cuda rocm" would have
produced a "cuBLAS" library built by hipcc. GPU_TARGETS is set explicitly
because upstream's default appends $(shell amdgpu-arch), sizing the package
by the build host's GPU. Five prebuilt blobs beyond the documented glslc
pair are removed. pkgcheck: zero findings.

sherpa-onnx -- adapted from istitov/stuff, links sci-libs/onnxruntime rather
than bundling. 17 distfiles pre-staged so CMake FetchContent resolves
locally; the .zip pins stay .zip because the cmake modules match those
filenames literally and fall through to the network otherwise (verified in
the 1.13.5 sources; pkgcheck's TarballAvailable is a false positive here and
says so inline). Dropped QA_PREBUILT, which claimed to cover prebuilt
libraries that this ebuild in fact compiles. Fixed a doubled Prefix in the
site-packages relocation: python_get_sitedir already carries EPREFIX and was
being passed to dodir and concatenated with ED. No -bin, deliberately.

llama-swap -- SRC_URI is now solely the upstream tarball; the adopted ebuild
took even the main source from a third party's personal account. Adds
-tags embed_ui, without which USE=ui ran the whole npm build and shipped a
binary with no UI. The systemd unit could never have worked: it used %i and
User=%i but installed as llama-swap.service, and systemd only expands %i for
a name containing '@' -- now installed via systemd_newunit as
llama-swap@.service, with the EnvironmentFile it expects shipped as an
example. Keeps ~arm64, unlike the ggml family: this is pure Go with no cgo
and no arch-specific path, and upstream builds linux-arm64 itself.

Uses ego mod download under RESTRICT="network-sandbox", matching
dev-util/trivy and dev-util/act. This is a KNOWING divergence from story 003
R4.1, which asked for a sandbox-clean default: upstream ships no vendor/
directory, so the alternative commits the overlay to hosting a generated
tarball on distfiles.obentoo.org and to hold = true forever after. The
alternative implementation is preserved and documented; the choice between
them should be made once, for this package and sci-ml/localai together.

All three records download-validate against upstream and pass the bentoo
checker. KEYWORDS is ~amd64 for the two C++ packages, consistent with the
decision taken across the ggml family: an unvalidated keyword is worse than
none.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>