Source: png23d Severity: normal Tags: patch User: [email protected] Usertags: buildpath X-Debbugs-Cc: [email protected]
The build path is embedded in /usr/bin/png23d: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/png23d.html /build/1st/png23d-1.10/png23d.c:32 vs. /build/2/png23d-1.10/2nd/png23d.c:32 The attached patch to to the upstream Makefile fixes this by adding -ffile-prefix-map to CFLAGS. According to my local tests, with this patch applied png23d should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining png23d! live well, vagrant
From 2f6949ace5cdbcd143b218f63e44e894dfde33de Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Mon, 26 Sep 2022 23:44:26 +0000 Subject: [PATCH] Makefile: Add -ffile-prefix-map to CFLAGS to avoid embedding the build path. https://reproducible-builds.org/docs/build-path/ --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1a4d40b..da33e93 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ endif OPTFLAGS=-O2 #OPTFLAGS=-O0 -CFLAGS+=$(WARNFLAGS) -MMD -DVERSION=$(VERSION) $(OPTFLAGS) -g +CFLAGS+=$(WARNFLAGS) -MMD -DVERSION=$(VERSION) $(OPTFLAGS) -g -ffile-prefix-map=$(CURDIR)=. LDFLAGS+=-lpng -- 2.37.2
signature.asc
Description: PGP signature

