Bug#1039619: wcc: reproducible-builds: embedded build path in various binaries

Vagrant Cascadian vagrant at reproducible-builds.org
Tue Jun 27 21:58:56 BST 2023


Source: wcc
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The build path is embedded in various binaries:

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

  /usr/bin/wcc

  /build/1st/wcc-0.0.2+dfsg/src/wcc/wcc.c:3989
  vs.
  /build/2/wcc-0.0.2+dfsg/2nd/src/wcc/wcc.c:3989

The attached patches fix this by appending EXTRA_CFLAGS to CFLAGS in the
upstream Makefile, and the second patch passes CFLAGS via EXTRA_CFLAGS
in debian/rules. The Default CFLAGS include -ffile-prefix-map to avoid
embedding the build path.

According to my local tests, with these patches applied, wcc should
build reproducibly on tests.reproducible-builds.org!

Thanks for maintaining wcc!

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Makefile-Append-CFLAGS_EXTRA-to-CFLAGS.patch
Type: text/x-diff
Size: 829 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230627/724b7b63/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-debian-rules-Pass-CFLAGS-via-CFLAGS_EXTRA-in-dh_auto.patch
Type: text/x-diff
Size: 619 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230627/724b7b63/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/20230627/724b7b63/attachment.sig>


More information about the Reproducible-bugs mailing list