Source: libapache2-mod-auth-plain 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/lib/apache2/modules/mod_auth_plain.so: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libapache2-mod-auth-plain.html /build/1st/libapache2-mod-auth-plain-2.0.52/mod_auth_plain.c:300 vs. /build/2/libapache2-mod-auth-plain-2.0.52/2nd/mod_auth_plain.c:300 The attached patch fixes this by adjusting the Makefile to pass -ffile-prefix-map to apxs, which avoids embedding the build path in compiled files. With this patch applied, libapache2-mod-auth-plain should build reproducibly on tests.reproducible-builds.org! live well, vagrant
From 0bbea871a8c744f1355c759482efbc4eb9f927b5 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@reproducible-builds.org> Date: Tue, 24 May 2022 01:58:43 +0000 Subject: [PATCH] Makefile: Pass -ffile-prefix-map to apxs. This avoids embedding the build path in the binaries. https://reproducible-builds.org/docs/build-path/ --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a05afd4..343b1bb 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ all: $(TARGETS) # general rule to build %.la: %.c - $(APXS) -c $< $(LIBS) + $(APXS) -Wc,-ffile-prefix-map=$(CURDIR)=. -c $< $(LIBS) install: $(TARGETS) $(APXS) -i $(TARGETS) -- 2.36.1
signature.asc
Description: PGP signature