Bug#1011493: freecdb: reproducible-builds: embedded build paths in various binaries

Vagrant Cascadian vagrant at reproducible-builds.org
Mon May 23 23:33:52 BST 2022


Source: freecdb
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 in /usr/bin:

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

  /usr/bin/cdbdump

  /build/1st/freecdb-0.76/cdbdump.c:45
  vs.
  /build/2/freecdb-0.76/2nd/cdbdump.c:45

The attached patch fixes this by explicitly passing CFLAGS to a
dh_auto_build override in debian/rules, which includes the
-ffile-prefix-map argument used to avoid embedding build paths.


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


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Explicitly-pass-CFLAGS-to-dh_auto_build.patch
Type: text/x-diff
Size: 516 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/1cd6a5d6/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/1cd6a5d6/attachment.sig>


More information about the Reproducible-bugs mailing list