Bug#1011402: razor: reproducible-builds: embedded build paths in deHTMLxs.so

Vagrant Cascadian vagrant at reproducible-builds.org
Sun May 22 00:15:21 BST 2022


Source: razor
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/lib/x86_64-linux-gnu/perl5/5.34/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so:

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

  /build/1st/razor-2.85/Razor2-Preproc-deHTMLxs/_deHTMLxs.c:56
  vs.
  /build/2/razor-2.85/2nd/Razor2-Preproc-deHTMLxs/_deHTMLxs.c:56

The attached patch fixes this by updating to use debhelper compat level
13 and switching to use "dh" in debian/rules. This passes the default
CFLAGS from dpkg-buildflags, which includes the -ffile-prefix-map
argument to avoid embedding the absolute path in compiled files.

To make the switch, it was also easiest to also switch to "3.0 (quilt)"
at the same time, so this also closes #1007665.


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


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Switch-to-debhelper-compat-13-dh-and-source-format-3.patch
Type: text/x-diff
Size: 3739 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220521/6e3439af/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/20220521/6e3439af/attachment.sig>


More information about the Reproducible-bugs mailing list