Debian Bug report logs - #1020880
libapache2-mod-authnz-pam: reproducible-builds: Embedded build paths in mod_authnz_pam.so

Package: src:libapache2-mod-authnz-pam; Maintainer for src:libapache2-mod-authnz-pam is Debian FreeIPA Team <pkg-freeipa-devel@alioth-lists.debian.net>;

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

Date: Tue, 27 Sep 2022 21:33:01 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, Debian FreeIPA Team <pkg-freeipa-devel@alioth-lists.debian.net>:
Bug#1020880; Package src:libapache2-mod-authnz-pam. (Tue, 27 Sep 2022 21:33:03 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, Debian FreeIPA Team <pkg-freeipa-devel@alioth-lists.debian.net>. (Tue, 27 Sep 2022 21:33:03 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-authnz-pam: reproducible-builds: Embedded build paths in mod_authnz_pam.so
Date: Tue, 27 Sep 2022 14:28:51 -0700
[Message part 1 (text/plain, inline)]
Source: libapache2-mod-authnz-pam
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_authnz_pam.so:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libapache2-mod-authnz-pam.html

  /build/1st/libapache2-mod-authnz-pam-1.2.3/mod_authnz_pam.c:332
  vs.
  /build/2/libapache2-mod-authnz-pam-1.2.3/2nd/mod_authnz_pam.c:332

The attached patch to debian/rules fixes this by passing
-ffile-prefix-map to apxs.

According to my local tests, with this patch applied
libapache2-mod-authnz-pam should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining libapache2-mod-authnz-pam!

live well,
  vagrant
[0001-debian-rules-Pass-ffile-prefix-map-to-apxs-to-avoid-.patch (text/x-diff, inline)]
From 9456bffc7bdf6dd56df744b508b4585f33188f01 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 27 Sep 2022 21:24:14 +0000
Subject: [PATCH] debian/rules: Pass -ffile-prefix-map to apxs to avoid
 embedding build paths.

https://reproducible-builds.org/docs/build-path/
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 4aee292..bf0519d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
 	dh $@ --with apache2
 
 override_dh_auto_build:
-	apxs -c -Wc,"-Wall -pedantic -std=c99" -lpam mod_authnz_pam.c
+	apxs -c -Wc,"-Wall -pedantic -std=c99 -ffile-prefix-map=$(CURDIR)=." -lpam mod_authnz_pam.c
 
 override_dh_auto_install:
 	mkdir -p $(CURDIR)/debian/tmp/usr/lib/apache2/modules
-- 
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:28:02 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.