Bug#1021464: stfl: reproducible-builds: build path embedded in binaries
Vagrant Cascadian
vagrant at reproducible-builds.org
Sun Oct 9 00:57:56 BST 2022
Source: stfl
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 various binaries:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/stfl.html
/usr/lib/x86_64-linux-gnu/perl5/5.34/auto/stfl/stfl.so
/build/1st/stfl-0.22/public.c:401
vs.
/build/2/stfl-0.22/2nd/public.c:401
The attached three patches to debian/rules fix this by adjusting the
make call to use dh_auto_make and passing CFLAGS via the CC variable,
adds -ffile-prefix-map to CFLAGS, and patches the generated
perl5/Makefile to add -ffile-prefix-map to CCFLAGS.
According to my local tests, with these patches applied, stfl should
build reproducibly on tests.reproducible-builds.org!
Thanks for maintaining stfl!
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Use-dh_auto_build-and-pass-CFLAGS-via-C.patch
Type: text/x-diff
Size: 757 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20221008/641cb8b5/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-debian-rules-Add-ffile-prefix-map-to-CFLAGS-to-avoid.patch
Type: text/x-diff
Size: 875 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20221008/641cb8b5/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-debian-rules-Add-ffile-prefix-map-to-CCFLAGS-in-perl.patch
Type: text/x-diff
Size: 841 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20221008/641cb8b5/attachment-0002.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/20221008/641cb8b5/attachment.sig>
More information about the Reproducible-bugs
mailing list