Bug#1011479: fstrcmp: reproducible-builds: embedded build paths

Vagrant Cascadian vagrant at reproducible-builds.org
Mon May 23 20:43:01 BST 2022


Source: fstrcmp
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 debug symbols:

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

  ./usr/lib/debug/usr/bin/fstrcmp

  0»      (line_strp)»   (offset:·0x0):·/build/1st/fstrcmp-0.7.D001
  vs.
  0»      (line_strp)»   (offset:·0xf):·/build/2/fstrcmp-0.7.D001/2nd

The attached patch fixes this by setting -ffile-prefix-map in CFLAGS in
debian/rules, which avoids embedding the absolute build path.


Alternately, switching to use a newer debhelper compat level and the dh
build system would likely also fix this, as it includes -ffile-prefix-map
by default.


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


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS.patch
Type: text/x-diff
Size: 610 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/8a600ea7/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/8a600ea7/attachment-0001.sig>


More information about the Reproducible-bugs mailing list