Source: lookup 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/lookup: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/lookup.html /build/1st/lookup-1.08b/lookup.c:34 vs. /build/2/lookup-1.08b/2nd/lookup.c:34 The attached patch fixes this by adding the -ffile-prefix-map argument to CFLAGS in the upstream Makefile, and should be added to debian/patches. With this patch applied lookup should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining lookup! live well, vagrant
From 885cd0118a719cb1d73904557063d56318ced514 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Sat, 24 Sep 2022 22:14:17 +0000 Subject: [PATCH] Makefile: Pass -ffile-prefix-map in CFLAGS to avoid embedding build paths. https://reproducible-builds.org/docs/build-path/ --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 7bfce46..57aac3f 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,7 @@ LOCAL_LIB=jefflib.a LIBS= $(LOCAL_LIB) $(OTHERLIBS) CFLAGS= $(OPTIONS) $(EXTRA) $(CFLAGS_EXTRA) +CFLAGS += -ffile-prefix-map=$(CURDIR)=. objs=lookup.o commands.o apply_regex.o eval.o -- 2.30.2
signature.asc
Description: PGP signature