release.sh: make sure GNU gzip is used #10268
Open
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.
Change Description
On macOS, the default BSD
gzip
produces different output than the GNUgzip
used on Linux. To ensure reproducible builds, we need to enforce the use of GNUgzip
.This is similar to what we already do for GNU
tar
.While working on reproducible builds for Loop, I encountered this
gzip
issue and fixed it there. This PR applies the same fix to LND.Steps to Test
Clone my branch into a fresh Git repository to ensure the state is clean and tagged with
v0.0.1-test
. Build it and compare the resulting hashes against the ones listed below:If you are on macOS, this verification is especially valuable, since this PR fixes reproducibility issues caused by BSD
gzip
compression on macOS.Pull Request Checklist
Testing
Code Style and Documentation
[skip ci]
in the commit message for small changes.📝 Please see our Contribution Guidelines for further guidance.