Source: libapache2-mod-auth-pgsql Severity: normal Tags: patch User: [email protected] Usertags: buildpath X-Debbugs-Cc: [email protected]
The build path is embedded in /usr/lib/apache2/modules/mod_auth_pgsql.so: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libapache2-mod-auth-pgsql.html /build/1st/libapache2-mod-auth-pgsql-2.0.3/mod_auth_pgsql.c:298 vs. /build/2/libapache2-mod-auth-pgsql-2.0.3/2nd/mod_auth_pgsql.c:298 The attached patch to the upstream Makefile debian/rules fixes this by passing -ffile-prefix-map to apxs2. According to my local tests, with this patch applied libapache2-mod-auth-pgsql should build reproducibly on tests.reproducible-builds.org! Thanks for maintaining libapache2-mod-auth-pgsql! live well, vagrant
From 9ed137525ae08db8e93ee7097d87c2467fda27aa Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Tue, 27 Sep 2022 23:09:04 +0000 Subject: [PATCH] Makefile: call apxs2 using -ffile-prefix-map to avoid embedding build paths. https://reproducible-builds.org/docs/build-path/ --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eccaea6..fb17c60 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PGSQL_LIB=/usr/lib PGSQL_INCLUDE=$(shell pg_config --includedir) shared: - ${APACHE2_HOME}/bin/apxs2 -a -c -I ${PGSQL_INCLUDE} -L ${PGSQL_LIB} -lpq mod_auth_pgsql.c + ${APACHE2_HOME}/bin/apxs2 -a -c -Wc,-ffile-prefix-map=$(CURDIR)=. -I ${PGSQL_INCLUDE} -L ${PGSQL_LIB} -lpq mod_auth_pgsql.c indent: indent -kr -ts4 mod_auth_pgsql.c -- 2.37.2
signature.asc
Description: PGP signature

