Bug#1005792: btop: reproducible-builds: Build path embedded in /usr/bin/btop
    Vagrant Cascadian 
    vagrant at reproducible-builds.org
       
    Tue Feb 15 01:05:02 GMT 2022
    
    
  
Source: btop
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Different build paths trigger reproducibility issues with binaries such
as /usr/bin/btop and relevent debugging symbols.
  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/btop.html
  /build/1st/btop-1.1.3/include/robin_hood.h:2296
  vs.
  /build/2/btop-1.1.3/2nd/include/robin_hood.h:2296
The attached patch fixes this by passing -ffile-prefix-map via the
ADDFLAGS variable (documented in btop/README.md) to avoid embedding the
build path into the binaries.
Another option might be to pass CXXFLAGS via ADDFLAGS with the default
values that debhelper/dpkg-buildflags get.
With this patch applied, btop should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining btop!
live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-debian-rules-Remove-embedded-build-paths-by-passing-.patch
Type: text/x-diff
Size: 710 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20220214/b3ed1727/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/20220214/b3ed1727/attachment.sig>
    
    
More information about the Reproducible-bugs
mailing list