Bug#1011478: scsitools: reproducible-builds: embedded build paths in various binaries
Vagrant Cascadian
vagrant at reproducible-builds.org
Mon May 23 20:26:46 BST 2022
Source: scsitools
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:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/scsitools.html
/sbin/scsi-spin
/build/1st/scsitools-0.12/debian/scsi-spin.c:290
vs.
/build/2/scsitools-0.12/2nd/debian/scsi-spin.c:290
The attached patch fixes this by setting -ffile-prefix-map in CFLAGS,
and explicitly passing CFLAGS to make in debian/rules. The
-ffile-prefix-map compiler flag is used to avoid embedding the absolute
path in compiled files.
Alternately, switching to use the default CFLAGS from dpkg-buildflags
(possibly through using a newer debhelper compat version) also would
include -ffile-prefix-map by default.
With this patch applied, scsitools should build reproducibly on
tests.reproducible-builds.org!
live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Pass-ffile-prefix-map-via-CFLAGS.patch
Type: text/x-diff
Size: 1111 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220523/23b9eb44/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/23b9eb44/attachment.sig>
More information about the Reproducible-bugs
mailing list