Source: apache-upload-progress-module
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_upload_progress.so:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/apache-upload-progress-module.html

  /build/1st/apache-upload-progress-module-0.2/mod_upload_progress.c:235
  vs.
  /build/2/apache-upload-progress-module-0.2/2nd/mod_upload_progress.c:235

The attached patch to the upstream Makefile fixes this by adding
-ffile-prefix-map to the call to apxs2.

According to my local tests, with this patch applied
apache-upload-progress-module should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining apache-upload-progress-module!

live well,
  vagrant
From 5d2027768bea1c8cc98818a323fe741dcdea1cc2 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Tue, 27 Sep 2022 00:52:33 +0000
Subject: [PATCH] Makefile: Pass -ffile-prefix-map to APXS to avoid embedding
 build path.

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

diff --git a/Makefile b/Makefile
index 30844ab..92a245c 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ local-shared-build: module
 module: .libs/mod_upload_progress.o
 
 .libs/mod_upload_progress.o: mod_upload_progress.c
-	$(APXS) -c $(CFLAGS) mod_upload_progress.c
+	$(APXS) -c -Wc,-ffile-prefix-map=$(CURDIR)=. $(CFLAGS) mod_upload_progress.c
 
 #   install the shared object file into Apache 
 install: local-shared-build
-- 
2.37.2

Attachment: signature.asc
Description: PGP signature

Reply via email to