Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bake.sh: Set SOURCE_DATE_EPOCH if not defined #27

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Conversation

pothos
Copy link
Member

@pothos pothos commented Sep 18, 2023

The binaries consumed from upstream should have the same checksums already but the resulting squashfs does not because it contains the time stamps of the build.
Define the SOURCE_DATE_EPOCH variable which is enough to make mksquashfs reproducible. The user can pass an own value if there is a fixed reference time. For semantics, see
https://reproducible-builds.org/docs/source-date-epoch/

Fixes #25

How to use/Testing done

ARCH=arm64 ./create_wasmtime_sysext.sh 4.0.0 wasmtime ; md5sum wasmtime.raw results in the same checksum when run twice.

The binaries consumed from upstream should have the same checksums
already but the resulting squashfs does not because it contains the
time stamps of the build.
Define the SOURCE_DATE_EPOCH variable which is enough to make mksquashfs
reproducible. The user can pass an own value if there is a fixed
reference time. For semantics, see
https://reproducible-builds.org/docs/source-date-epoch/

Fixes #25
@pothos pothos requested a review from a team September 18, 2023 08:18
@pothos pothos mentioned this pull request Sep 18, 2023
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.

[RFE] Reproducible builds
2 participants