[BUG] Build not reproducible
Opened this issue · 2 comments
Describe the bug
I'm packaging Fretboard for the archlinux-proaudio binary repo project (see osam-cologne/archlinux-proaudio#427) and noticed the build is not reproducible, even though both meson and rust are supposed to support reproducible builds. I'm wondering what's causing the diff in the resulting binaries.
To Reproduce
Steps to reproduce the behavior:
- build the project twice using meson on the same build environment with
SOURCE_DATE_EPOCH
as a fixed value - check output checksums
- run diffoscope to compare the individual results
Expected behavior
The resulting binaries should be identical
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Arch Linux
Additional context
That's weird. I can reproduce it, but I can't recall any possible causes for this off the top of my head.
@bragefuglseth I just found out the issue doesn't occur with -Dprofile=development
, so it seems to be cargo --release
doing some optimizations that make the binary not reproducible.
Nevermind, it seemed to be a random false positive 🙄 Still no reproducible success with -Dprofile=development
.