Debian Bug report logs - #1020889
libapache2-mod-auth-pgsql: reproducible-builds: Embedded build paths in mod_auth_pgsql.so

Package: src:libapache2-mod-auth-pgsql; Maintainer for src:libapache2-mod-auth-pgsql is Marco Nenciarini <mnencia@debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Tue, 27 Sep 2022 23:18:02 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Marco Nenciarini <mnencia@debian.org>:
Bug#1020889; Package src:libapache2-mod-auth-pgsql. (Tue, 27 Sep 2022 23:18:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Marco Nenciarini <mnencia@debian.org>. (Tue, 27 Sep 2022 23:18:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: libapache2-mod-auth-pgsql: reproducible-builds: Embedded build paths in mod_auth_pgsql.so
Date: Tue, 27 Sep 2022 16:14:22 -0700
[Message part 1 (text/plain, inline)]
Source: libapache2-mod-auth-pgsql
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

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
[0001-Makefile-call-apxs2-using-ffile-prefix-map-to-avoid-.patch (text/x-diff, inline)]
From 9ed137525ae08db8e93ee7097d87c2467fda27aa Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
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 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 13:29:09 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.