Fedora shasums are not matching due to different SOURCE_DATE_EPOCH for clnrest
#8846
+5
−4
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.
Problem:
clnrestbinaryWhy
--mtimealone wasn't enough:mtimeswere identicalSolution:
SOURCE_DATE_EPOCH=1672531200for reproducible compilation by enforcing a consistent timestamp for Fedora build. Similar to Ubuntu fix in commitRUSTFLAGS="-C link-arg=-Wl,--build-id=none"to disable random Build IDsno-cacheto Fedora build1.92.0prevent toolchain drift (change "stable" to specific version)This ensures bit-for-bit identical builds across different machines and times.
Difference:
$ tar -xzf ci/clightning-v25.12.1-Fedora-40-amd64.tar.gz -C /tmp/ci
$ tar -xzf local/clightning-v25.12.1-Fedora-40-amd64.tar.gz -C /tmp/local
$ diff -r /tmp/ci /tmp/local
Without
SOURCE_DATE_EPOCH:1e47a4dbc1fe6ca81bf1e42f2303250d31ffc9683bee92e632a9c6f27de9bf0d clightning-v25.12.1-Fedora-40-amd64.tar.gz
e74adc347f5d5de45ecc9de7116fdc44ae6e13e2291a81c0ce45370bba78e0a6 clightning-v25.12.1.zip
1c2de1fa4466da9aa19d57c0a0b313d9e961a7078c46e8780d511bea12dd47a1 clightning-v25.12.1-Fedora-40-amd64.tar.gz
e74adc347f5d5de45ecc9de7116fdc44ae6e13e2291a81c0ce45370bba78e0a6 clightning-v25.12.1.zip
With
SOURCE_DATE_EPOCH:4c94888a08b8d94d8a0ed034ede224c1ab34b012028090343e832ad822dd6d4f clightning-v25.12.1-Fedora-40-amd64.tar.gz
089f1d5235e3086dad338e012d32531291ffda14094e0e985c76d0adc8abd0af clightning-v25.12.1.zip
4c94888a08b8d94d8a0ed034ede224c1ab34b012028090343e832ad822dd6d4f clightning-v25.12.1-Fedora-40-amd64.tar.gz
089f1d5235e3086dad338e012d32531291ffda14094e0e985c76d0adc8abd0af clightning-v25.12.1.zip
Changelog-Fixed: Core lightning builds for Fedora on all systems are deterministic.