Bug#1011471: mgdiff: reproducible-builds: embedded build paths in /usr/bin/mgdiff

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


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

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

  /build/1st/mgdiff-1.0/mgdiff.c:1057
  vs.
  /build/2/mgdiff-1.0/2nd/mgdiff.c:1057

The attached patch fixes this by explicitly passing CFLAGS to
make in debian/rules, which includes the -ffile-prefix-map
argument to avoid embedding the absolute path in compiled files.


With this patch applied, mgdiff 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-make.patch
Type: text/x-diff
Size: 587 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/f6b28a88/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/f6b28a88/attachment.sig>


More information about the Reproducible-bugs mailing list