Bug#1010944: quelcom: reproducible-builds: embedded build paths in various binaries

Vagrant Cascadian vagrant at reproducible-builds.org
Fri May 13 19:30:37 BST 2022


Source: quelcom
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/lib/quelcom:

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

  /usr/lib/quelcom/libqextra.so

  /build/1st/quelcom-0.4.0/lib/qexception.cc:7
  vs.
  /build/2/quelcom-0.4.0/2nd/lib/qexception.cc:7

The attached patches fix this by modifying the upstream makefiles to
append EXTRA_CXXLAGS to CFLAGS, converting debian/rules to dh, and
passing EXTRA_CXXFLAGS in debian/rules in a dh_auto_build phase. This
passes the default CXXFLAGS from dpkg-buildflags, which includes the
-ffile-prefix-map argument to avoid embedding the absolute path in
compiled files.


With these patches applied, quelcom should build reproducibly on
tests.reproducible-builds.org!


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Convert-to-dh.patch
Type: text/x-diff
Size: 2645 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220513/a2a85f24/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Adjust-makefiles-to-add-EXTRA_CXXFLAGS-to-CXXFLAGS.patch
Type: text/x-diff
Size: 1366 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220513/a2a85f24/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-debian-rules-Pass-CFLAGS-as-EXTRA_CFLAGS-in-dh_auto_.patch
Type: text/x-diff
Size: 594 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220513/a2a85f24/attachment-0002.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/20220513/a2a85f24/attachment.sig>


More information about the Reproducible-bugs mailing list