Using Perl SHA256 if if shasum/sha256sum unavailable #647
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.
First, thanks for a great project! It's incredible that folks are still supporting OS X 10.4!
I did a clean install of OS X 10.4 on an ALS iMac G5 today, updated to 10.4.11, installed XCode 2.5, and tried to bootstrap
tigerbrew
. I ran into issues withbrew doctor
after initial download: I couldn't install the vendored Ruby or cURL due to a SHA checksum mismatch. I tracked this down to theinstall-vendor.sh
script, which had a conditional to first look for OS-provided SHA binaries, then try a Ruby implementation if that failed, or use a Perl implementation if we're on a specific subset of PPC chips.Apparently the G5 in the ALS iMacs (970/970fx) are also one of the CPUs that Ruby 1.8.2 has a bad SHA256 on. My
sysctl -n hw.cpusubtype
is 100, which is not in the excluded list. Rather than trying to figure out every subtype that has a broken SHA256, why don't we just always use the Perl implementation?