You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on reproducible builds for openSUSE, I found that our buildah 1.33.1 package varies across builds.
buildah-1.31.2 still built reproducibly on 2023-08-14
Steps to reproduce the issue:
build buildah in two fresh VMs with cd ~/rpmbuild/BUILD/buildah-1.33.1 && SOURCE_DATE_EPOCH=1 GOPATH=$HOME/go GOFLAGS=-buildmode=pie make GIT_COMMIT=unknown buildah && md5sum bin/buildah
Something within the system records the timestamp, so it possible to get two bit-identical within the same VM, but not in two different VMs.
Describe the results you received:
results varied in a UNIX epoch timestamp at offset 4 in an ELF section labeled github.com/containers/buildah/internal/mkcw..gobytes.1 -- visible in objdump -D --disassemble=github.com/containers/buildah/internal/mkcw..gobytes.1 bin/buildah |grep -A5 gobytes.1.:
Describe the results you expected:
it should be possible to receive bit-identical build-results
Based on conversations elsewhere, I think this is as simple as using -n when we compress the statically-built dummy entrypoint binary. @bmwiedemann, is there any chance you're able to grab the tip of the pull request and check if it fixes the problem you're seeing?
Description
While working on reproducible builds for openSUSE, I found that our
buildah
1.33.1 package varies across builds.buildah-1.31.2 still built reproducibly on 2023-08-14
Steps to reproduce the issue:
cd ~/rpmbuild/BUILD/buildah-1.33.1 && SOURCE_DATE_EPOCH=1 GOPATH=$HOME/go GOFLAGS=-buildmode=pie make GIT_COMMIT=unknown buildah && md5sum bin/buildah
Something within the system records the timestamp, so it possible to get two bit-identical within the same VM, but not in two different VMs.
Describe the results you received:
results varied in a UNIX epoch timestamp at offset 4 in an ELF section labeled
github.com/containers/buildah/internal/mkcw..gobytes.1
-- visible inobjdump -D --disassemble=github.com/containers/buildah/internal/mkcw..gobytes.1 bin/buildah |grep -A5 gobytes.1.:
Describe the results you expected:
it should be possible to receive bit-identical build-results
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
cat /etc/*release
:The text was updated successfully, but these errors were encountered: