Debian Bug report logs -
#1020800
libapache-mod-evasive: reproducible-builds: Embedded build paths in mod_evasive20.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 QA Group <packages@qa.debian.org>:
Bug#1020800; Package src:libapache-mod-evasive.
(Mon, 26 Sep 2022 22:03: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 QA Group <packages@qa.debian.org>.
(Mon, 26 Sep 2022 22:03: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: libapache-mod-evasive
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_evasive20.so:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/libapache-mod-evasive.html
/build/1st/libapache-mod-evasive-1.10.1/mod_evasive20.c:713
vs.
/build/2/libapache-mod-evasive-1.10.1/2nd/mod_evasive20.c:713
The attached patch to debian/rules fixes this by adding
-ffile-prefix-map to the call to apxs2.
According to my local tests, with this patch applied
libapache-mod-evasive should build reproducibly on
tests.reproducible-builds.org!
Thanks for maintaining libapache-mod-evasive!
live well,
vagrant
[0001-debian-rules-Add-ffile-prefix-map-to-apxs2-call-to-a.patch (text/x-diff, inline)]
From 028d05262df50953740df4bb87f5704c78eae8af Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 26 Sep 2022 21:53:48 +0000
Subject: [PATCH] debian/rules: Add -ffile-prefix-map to apxs2 call to avoid
embedding the build path.
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 086a195..1b898a3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ build-indep: build-stamp
build-stamp:
dh_testdir
- apxs2 -c mod_evasive20.c
+ apxs2 -Wc,-ffile-prefix-map=$(CURDIR)=. -c mod_evasive20.c
touch build-stamp
--
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:36 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.