Bug#1005794: snibbetracker: reproducible-builds: Build path embedded in debug symbols
Vagrant Cascadian
vagrant at reproducible-builds.org
Tue Feb 15 02:18:45 GMT 2022
Source: snibbetracker
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Different build paths trigger reproducibility issues with binaries such
as /usr/bin/snibbetracker and relevent debugging symbols.
For two builds done with reprotest, the debug symbols contain the
different build paths:
0 (line_strp) (offset: 0x0): /tmp/reprotest.lNSnkN/const_build_path/snibbetracker/src
vs.
0 (line_strp) (offset: 0x0): /tmp/reprotest.lNSnkN/build-experiment-1/snibbetracker/src
The attached patch fixes this by passing -ffile-prefix-map in
debian/Makefile to avoid embedding the build path into the binaries.
Another option might be to pass COMPILER_FLAGS=$(CFLAGS) to use the
default flags from debhelper/dpkg-buildflags, which includes
-ffile-prefix-map, and/or explore patching the upstream
Makefile to accept variables passed to it...
With this patch applied, snibbetracker should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining snibbetracker!
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-Makefile-Pass-ffile-prefix-map-to-remove-buil.patch
Type: text/x-diff
Size: 952 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220214/3f38653c/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220214/3f38653c/attachment.sig>
More information about the Reproducible-bugs
mailing list