Skip to content

Fix/macos py2app libsharpyuv#587

Merged
joeraz merged 2 commits into
shlomif:masterfrom
bwrightkc:fix/macos-py2app-libsharpyuv
Jul 20, 2026
Merged

Fix/macos py2app libsharpyuv#587
joeraz merged 2 commits into
shlomif:masterfrom
bwrightkc:fix/macos-py2app-libsharpyuv

Conversation

@bwrightkc

Copy link
Copy Markdown
Contributor

Fixes #586

libsharpyuv.0.dylib is not being bundled by py2app or identified as being required by its dependency walker. I'm working on troubleshooting why that is upstream, but this patch will manually copy it in as part of the build process for now.

py2app doesn't rewrite @rpath load commands, so libwebp's dependency
on libsharpyuv (split out since webp 1.3) goes missing from the app
bundle and PIL fails to import at launch. Bundle and patch it
explicitly, same as the freecell-solver lib.
install_name_tool invalidates py2app's ad-hoc signature, so a bundle
patched after signing (e.g. the libsharpyuv fix, or the existing
fc-solve rpath fix) gets silently SIGKILLed by macOS on launch. Verified
locally: without this, the fixed app dies with no output at all: the
patched dylib breaks the code signature seal.
@joeraz

joeraz commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Okay, I'll merge it.

@bwrightkc Does this affect the packages on Sourceforge too? Will I need to regenerate those? Or is this just an issue with the build process?

@joeraz
joeraz merged commit 3337f00 into shlomif:master Jul 20, 2026
14 checks passed
@bwrightkc

Copy link
Copy Markdown
Contributor Author

@joeraz

joeraz commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Yes, I'll go trigger it.

@joeraz

joeraz commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

@bwrightkc

Copy link
Copy Markdown
Contributor Author

Yes, it runs well now. Thank you!

joeraz added a commit to joeraz/PySolFC that referenced this pull request Jul 21, 2026
Fix/macos py2app libsharpyuv (shlomif#587)
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.

macOS - 3.6.1 build from GitHub broken

2 participants