Bug#1011491: getstream: reproducible-builds: embedded build paths in /usr/bin/getstream
Vagrant Cascadian
vagrant at reproducible-builds.org
Mon May 23 23:20:42 BST 2022
Source: getstream
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/getstream:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/getstream.html
/build/1st/getstream-20100616/getstream.c:30
vs.
/build/2/getstream-20100616/2nd/getstream.c:30
The attached patches fix this by passing CFLAGS via EXTRA_CFLAGS in a
dh_auto_build override in debian/rules, and adjusting the upstream
Makefile to append EXTRA_CFLAGS to CFLAGS. This allows passing the
default build flags including -ffile-prefix-map, which avoids embedding
the absolute path in compiled files.
With these patches applied, getstream should build reproducibly on
tests.reproducible-builds.org!
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Makefile-Append-EXTRA_CFLAGS-to-CFLAGS.patch
Type: text/x-diff
Size: 540 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/4284f916/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-debian-rules-Pass-CFLAGS-via-EXTRA_CFLAGS-in-dh_auto.patch
Type: text/x-diff
Size: 580 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/4284f916/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/20220523/4284f916/attachment.sig>
More information about the Reproducible-bugs
mailing list