Source: libapache2-mod-python
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_python.so

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

  /build/1st/libapache2-mod-python-3.5.0+git20211031.e6458ec/src/util.c:339
  vs.
  /build/2/libapache2-mod-python-3.5.0+git20211031.e6458ec/2nd/src/util.c:339

The attached patch to debian/rules fixes this by adding a dh_auto_build
override which passes -ffile-prefix-map via APXSFLAGS.

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

Thanks for maintaining libapache2-mod-python!

live well,
  vagrant
From 22481b9000ea20640cb2e6e231c5f2d5dd21df9b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 27 Sep 2022 01:37:14 +0000
Subject: [PATCH] debian/rules: Add dh_auto_build override to pass
 -ffile-prefix-map via APXSFLAGS to avoid embedding build paths.

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

diff --git a/debian/rules b/debian/rules
index 39a81df..8a2944c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,9 @@ PYTHON=/usr/bin/python3
 override_dh_auto_configure:
 	dh_auto_configure -- --with-apxs=/usr/bin/apxs2 --with-python=$(PYTHON)
 
+override_dh_auto_build:
+	dh_auto_build -- APXSFLAGS="-Wc,-ffile-prefix-map=$(CURDIR)=."
+
 execute_after_dh_auto_build-indep:
 ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
 	sphinx-build -b html -aE Doc doc-html
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to