Bug#1011486: tdfsb: reproducible-builds: embedded build paths in /usr/games/tdfsb

Vagrant Cascadian vagrant at reproducible-builds.org
Mon May 23 22:11:22 BST 2022


Source: tdfsb
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/games/tdfsb:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/tdfsb.html

  /build/1st/tdfsb-0.0.10/tdfsb.c:2909
  vs.
  /build/2/tdfsb-0.0.10/2nd/tdfsb.c:2909


The attached patch fixes this by adjusting compile.sh to include
-ffile-prefix-map in CFLAGS to avoid embedding the absolute path in
compiled files.

Alternately, updating to a newer version of debhelper-compat and dh, and
adjusting debian/patches/set_cflags.diff to only allow setting CFLAGS
would allow using the default CFLAGS from dpkg-buildflags.


With this patch applied, tdfsb should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-compile.sh-Add-ffile-prefix-map-to-CFLAGS.patch
Type: text/x-diff
Size: 823 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/6d72e57a/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/20220523/6d72e57a/attachment.sig>


More information about the Reproducible-bugs mailing list