Skip to content

fix(backends): darwin packaging for silero-vad (last Linux-only Go backend)#10528

Merged
mudler merged 1 commit into
masterfrom
fix/darwin-go-backend-packaging
Jun 26, 2026
Merged

fix(backends): darwin packaging for silero-vad (last Linux-only Go backend)#10528
mudler merged 1 commit into
masterfrom
fix/darwin-go-backend-packaging

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

Summary

A sweep of all backend/go/* backends found silero-vad is the last one with Linux-only darwin packaging (every other Go backend already has Darwin branches):

  • package.sh had no Darwin branch → fell through to "Could not detect architecture" → exit 1 on macOS, so its metal-darwin-arm64-silero-vad image never packaged.
  • run.sh exported LD_LIBRARY_PATH (ignored by macOS dyld), so the bundled libonnxruntime.dylib wasn't found at runtime.

Fix (mirrors the piper darwin fix #10525)

  • package.sh: Darwin branch that skips the glibc/ld.so bundling and adds install_name_tool -add_rpath @loader_path/lib so @rpath resolves to package/lib/.
  • run.sh: DYLD_LIBRARY_PATH branch on Darwin.

Testing

bash -n clean on both scripts; Linux packaging paths unchanged (Darwin branch precedes them). Darwin build validated in CI.

🤖 Generated with Claude Code

silero-vad was the last Go backend with Linux-only darwin packaging:
- package.sh fell through to "Could not detect architecture" -> exit 1 on
  macOS (no Darwin branch), so its darwin image never packaged.
- run.sh exported LD_LIBRARY_PATH, which macOS dyld ignores, so the bundled
  libonnxruntime.dylib couldn't be found at runtime.

Add a Darwin branch to package.sh (skip the glibc/ld.so bundling; add an
@loader_path/lib rpath so @rpath resolves to package/lib/) and a
DYLD_LIBRARY_PATH branch to run.sh — mirroring the piper darwin fix (#10525).

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@mudler
mudler merged commit 17c1fc7 into master Jun 26, 2026
59 checks passed
@mudler
mudler deleted the fix/darwin-go-backend-packaging branch June 26, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants