Source: liblopsub Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
The build path is embedded in /usr/bin/lopsubgen: https://tests.reproducible-builds.org/debian/rb-pkg/trixie/amd64/diffoscope-results/liblopsub.html /build/1st/liblopsub-1.0.3/lopsubgen.c:49 vs. /build/2/liblopsub-1.0.3/2nd/lopsubgen.c:49 The attached patch fixes this by passing the -ffile-prefix-map argument to the compiler in the upstream Makefile. According to my local tests, with this patch and the recently submitted timestamp patches applied, liblopsub should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining liblopsub! live well, vagrant
From 06ed531c6a0a96a82441c8042ef338ac7d07d773 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 27 Jun 2023 12:43:31 -0700 Subject: [PATCH 3/3] Makefile: Add -ffile-prefix-map to CC to avoid embedding build paths. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index f139597..f0cf614 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,8 @@ INSTALL := install GZIP := gzip -n -f9 ZCAT := zcat +CC += -ffile-prefix-map=$(CURDIR)=. + DATE_FMT := +%B %Y # To get a reproducible build, we use $(SOURCE_DATE_EPOCH) instead of the # current time if this variable is set. -- 2.39.2
signature.asc
Description: PGP signature