Source: log4cpp Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The build path is embedded in /usr/bin/log4cpp-config: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/log4cpp.html cflags="$cflags··-g·-O2·-ffile-prefix-map=/build/1st/log4cpp-1.1.3=. ... vs. cflags="$cflags··-g·-O2·-ffile-prefix-map=/build/2/log4cpp-1.1.3/2nd=. ... The attached patch fixes this in debian/rules by replacing the build path with a placeholder string in /usr/bin/log4cpp-config. With this patch applied log4cpp should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining log4cpp! live well, vagrant
From f09f971f6eb843e09c848d5ca2acb51cc09c059b Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sat, 24 Sep 2022 22:54:47 +0000 Subject: [PATCH] debian/rules: Add dh_auto_install override to remove the embedded build path from log4cpp-config. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 23066a9..0d6aced 100755 --- a/debian/rules +++ b/debian/rules @@ -7,3 +7,8 @@ override_dh_auto_configure: override_dh_acc: - dh_acc $@ + +override_dh_auto_install: + dh_auto_install + # Remove the build path from passed arguments for reproducible builds + sed -i -e "s,$(CURDIR),BUILDPATH,g" debian/tmp/usr/bin/log4cpp-config -- 2.37.2
signature.asc
Description: PGP signature