Bug#1010828: bbrun: reproducible-builds: embedded build paths in /usr/bin/bbrun
Vagrant Cascadian
vagrant at reproducible-builds.org
Tue May 10 23:36:21 BST 2022
Source: bbrun
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
The build path is embedded in /usr/bin/bbrun:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/bbrun.html
/build/1st/bbrun-1.6/bbrun/bbrun.c:59
vs.
/build/2/bbrun-1.6/2nd/bbrun/bbrun.c:59
The attached patches fix this by patching the Makefile to accept an
EXTRA_CFLAGS variable, and then adjusting debian/rules to pass the
default CFLAGS via the EXTRA_CFLAGS variable.
The default CFLAGS include the -ffile-prefix-map argument which is used
to avoid embedding the absolute path in compiled files.
With these patches applied, bbrun should build reproducibly on
tests.reproducible-builds.org!
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bbrunmakefile-allow-passing-extra_cflags.patch
Type: text/x-diff
Size: 546 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220510/e75379fd/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-debian-rules-Pass-CFLAGS-via-EXTRA_CFLAGS-variable-i.patch
Type: text/x-diff
Size: 570 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220510/e75379fd/attachment-0001.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/20220510/e75379fd/attachment.sig>
More information about the Reproducible-bugs
mailing list