Source: aespipe 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/pbyacc: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/aespipe.html /build/1st/aespipe-20050907/aespipe.c:181 vs. /build/2/aespipe-20050907/2nd/aespipe.c:181 The attached patch to debian/rules fixes this by adding -ffile-prefix-map and --debug-prefix-map to CFLAGS. According to my local tests, with this patch applied aespipe should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining aespipe! live well, vagrant
From 631531afe7d566abdf80b2a9fbcf31686ee46ca1 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 27 Sep 2022 00:30:50 +0000 Subject: [PATCH] debian/rules: Pass -ffile-prefix-map and --debug-prefix-map via CFLAGS to avoid embedding the build path. https://reproducible-builds.org/docs/build-path/ --- debian/rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/rules b/debian/rules index 36b04ad..94a4765 100755 --- a/debian/rules +++ b/debian/rules @@ -28,6 +28,9 @@ endif CFLAGS += -no-pie LDFLAGS += -no-pie +# Avoid ebmedding build path in the binaries for reproducible builds +CFLAGS += -ffile-prefix-map=$(CURDIR)=. --debug-prefix-map=$(CURDIR)=. + config.status: configure dh_testdir -- 2.37.2
signature.asc
Description: PGP signature