Debian Bug report logs -
#1020815
libapache2-mod-python: reproducible-builds: Embedded build paths in mod_python.so
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Python Team <team+python@tracker.debian.org>:
Bug#1020815; Package src:libapache2-mod-python.
(Tue, 27 Sep 2022 01:48: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 Python Team <team+python@tracker.debian.org>.
(Tue, 27 Sep 2022 01:48:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: libapache2-mod-python
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_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
[0001-debian-rules-Add-dh_auto_build-override-to-pass-ffil.patch (text/x-diff, inline)]
From 22481b9000ea20640cb2e6e231c5f2d5dd21df9b Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@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
[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:52 2023;
Machine Name:
buxtehude
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.