Source: btop Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@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
From 3263f2b38bc106bdd7da289be6296e625f50ab4f Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 15 Feb 2022 00:52:34 +0000 Subject: [PATCH] debian/rules: Remove embedded build paths by passing -ffile-prefix-map via ADDFLAGS variable. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index b80fa90..c9ca95a 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,7 @@ #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +export ADDFLAGS = -ffile-prefix-map=$(CURDIR)=. %: dh $@ -- 2.34.1
signature.asc
Description: PGP signature