Source: libapache2-mod-authnz-pam
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_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
From 9456bffc7bdf6dd56df744b508b4585f33188f01 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@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

Attachment: signature.asc
Description: PGP signature

Reply via email to