Skip to content

deps: re-sign bundled zstd on macOS#61355

Merged
fingolfin merged 1 commit intomasterfrom
codex/zstd-codesign-fix
Mar 20, 2026
Merged

deps: re-sign bundled zstd on macOS#61355
fingolfin merged 1 commit intomasterfrom
codex/zstd-codesign-fix

Conversation

@fingolfin
Copy link
Copy Markdown
Member

Rewriting the bundled zstd executables with install_name_tool
invalidates their existing signatures on macOS. Re-sign them ad
hoc after updating the rpath so the CLI remains launchable for Pkg
archive decompression.

Add a regression test that runs the bundled zstd executable
instead of only checking that libzstd can be loaded.

Fixes #61354 (but see discussion there as to whether it really does?)

Co-authored-by: Codex codex@openai.com

@fingolfin fingolfin requested a review from giordano as a code owner March 18, 2026 11:26
@fingolfin fingolfin added the system:mac Affects only macOS label Mar 18, 2026
@fingolfin fingolfin requested a review from vtjnash March 18, 2026 11:26
Rewriting the bundled zstd executables with install_name_tool
invalidates their existing signatures on macOS. Re-sign them ad
hoc after updating the rpath so the CLI remains launchable for Pkg
archive decompression.

Add a regression test that runs the bundled zstd executable
instead of only checking that libzstd can be loaded.

Fixes #61354

Co-authored-by: Codex <codex@openai.com>
@fingolfin fingolfin force-pushed the codex/zstd-codesign-fix branch from caadd12 to 82f984b Compare March 18, 2026 11:28
@KristofferC KristofferC added the backport 1.13 Change should be backported to release-1.13 label Mar 18, 2026
@fingolfin
Copy link
Copy Markdown
Member Author

@vtjnash @giordano a review would be great, this is really annoying when developing on macOS

Copy link
Copy Markdown
Member

@giordano giordano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't test it as I don't have macOS 26, but looks reasonable, and as mentioned in #61354 (comment) we do already something similar in https://github.com/JuliaLang/julia/blob/da0d31d142f531cac1f4e388ba5b16792da49b9f/contrib/mac/app/Makefile for the distributed tarballs.

@giordano giordano added the building Build system, or building Julia or its dependencies label Mar 20, 2026
@fingolfin fingolfin merged commit 3de619d into master Mar 20, 2026
10 checks passed
@fingolfin fingolfin deleted the codex/zstd-codesign-fix branch March 20, 2026 20:23
KristofferC pushed a commit that referenced this pull request Mar 24, 2026
Rewriting the bundled zstd executables with install_name_tool
invalidates their existing signatures on macOS. Re-sign them ad
hoc after updating the rpath so the CLI remains launchable for Pkg
archive decompression.

Add a regression test that runs the bundled zstd executable
instead of only checking that libzstd can be loaded.

Fixes #61354 (but see discussion there as to whether it really does?)

Co-authored-by: Codex <codex@openai.com>

Co-authored-by: Codex <codex@openai.com>
(cherry picked from commit 3de619d)
@KristofferC KristofferC mentioned this pull request Mar 24, 2026
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.13 Change should be backported to release-1.13 building Build system, or building Julia or its dependencies system:mac Affects only macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors and crashes related to zstd and codesigning on macOS 26.3.1, with Julia master

3 participants