Repository navigation
Conversation
Two PATH prepends and the gsha256sum probe hardcoded /usr/local, which is
Homebrew's prefix on Intel only; on Apple Silicon it is /opt/homebrew. With that
gnubin directory absent from PATH, the osslsigncode hash check
echo '<sha256> inputs/osslsigncode-2.0.tar.gz' | sha256sum -c
resolves sha256sum to Apple's /sbin build, which takes the checksum list only as
a file argument and answers a list on stdin with
"usage: sha256sum [-bctwz] [files ...]" and exit 1, so check_call raises before
any descriptor runs. Measured both ways on arm64: absent prefix gives the usage
error, brew's prefix gives "OK".
Asking brew keeps /usr/local when brew is missing, so Intel hosts see no change.
The probe moves to shutil.which, which finds gsha256sum under either prefix. The
old path test could not match on arm64, so every run added coreutils to the brew
install list whether or not it was present.
The --build path is the change that ran end to end on an arm64 host for
v6.0.0-alpha.0, 1h23m30s, matching another signer on all three OSes. setup_darwin
is not reached by --build, so --setup stays unverified.
Liquid369
force-pushed
the
2026_gitian_build_brew_prefix
branch
from
November 26, 2026 05:04
cfd59a6 to
26da275
Compare
Fuzzbawls
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
contrib/gitian-build.pyhardcodes/usr/localfor Homebrew in three places. That is theprefix on Intel only; on Apple Silicon Homebrew lives at
/opt/homebrew, so the GNUcoreutils
gnubindirectory never reachesPATH.The visible failure is the osslsigncode hash check:
Without GNU coreutils ahead of
/sbin,sha256sumresolves to Apple's own build, whichtakes the checksum list only as a file argument and answers a list on stdin with
usage: sha256sum [-bctwz] [files ...]and exit 1.check_callthen raises before anydescriptor runs.
Measured on arm64, same command both ways:
Asking
brew --prefixfalls back to/usr/localwhen brew is absent, so Intel hosts seeno change in behaviour.
The
gsha256sumprobe moves toshutil.which, which finds it under either prefix. Theold
/usr/local/bin/gsha256sumtest cannot match on arm64, so every run addedcoreutilsto the brew install list whether or not it was already there.Testing
--buildran end to end on an arm64 host for v6.0.0-alpha.0, 1h23m30s, and the resultingassertions matched another signer on all three OSes.
setup_darwinis not reached by--build, so the--setuppath carries the same changeunexercised.