Bug#1011490: gdigi: reproducible-builds: embedded build paths in /usr/bin/gdigi

Vagrant Cascadian vagrant at reproducible-builds.org
Mon May 23 23:09:19 BST 2022


Source: gdigi
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/gdigi:

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

  /build/1st/gdigi-0.4.0+git20200615+1c2c89f/gdigi.c:43
  vs.
  /build/2/gdigi-0.4.0+git20200615+1c2c89f/2nd/gdigi.c:43

The attached patch fixes this by passing CFLAGS via EXTRA_CFLAGS in a
dh_auto_build override in debian/rules. This allows passing the default
build flags including -ffile-prefix-map, which avoids embedding the
absolute path in compiled files.


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


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Pass-CFLAGS-as-EXTRA_CFLAGS-in-dh_auto_.patch
Type: text/x-diff
Size: 555 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/da4b0f13/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/da4b0f13/attachment.sig>


More information about the Reproducible-bugs mailing list