Bug#1006864: pcp: reproducible-builds: build path embedded in various libraries

Vagrant Cascadian vagrant at reproducible-builds.org
Mon Mar 7 01:06:29 GMT 2022


Source: pcp
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 and resulting Build ID for various libraries is embedded:

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

  /usr/lib/x86_64-linux-gnu/perl5/5.34/auto/PCP/LogImport/LogImport.so

  /build/1st/pcp-5.3.6/src/libpcp_import/src:/build/1st/pcp-5.3.6/src/libpcp/src
  vs.
  /build/2/pcp-5.3.6/2nd/src/libpcp_import/src:/build/2/pcp-5.3.6/2nd/src/libpcp/src

The attached patch to debian/rules fixes this by using the standard
standard buildflags from dpkg-buildflags, which includes
-ffile-prefix-map to strip out the build paths.


An alternate patch for debian/rules could be something like:

  CFLAGS += -ffile-prefix-map=$(CURDIR)=.
  export CFLAGS

Though you might also have to set this for various other *FLAGS as well.


This patch does not address all reproducibility issues, but should
significantly reduce the size of the diff, making it easier to identify
remaining issues.


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-debian-rules-Use-standard-dpkg-buildflags-variables.patch
Type: text/x-diff
Size: 819 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220306/fdbcb0e7/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/20220306/fdbcb0e7/attachment.sig>


More information about the Reproducible-bugs mailing list