Source: modglue
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/share/doc/libmodglue1-dev/examples/Makefile:

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

  
g++·-g·-O2·-ffile-prefix-map=/build/1st/modglue-1.17=.·-fstack-protector-strong 
...
  vs.
  
g++·-g·-O2·-ffile-prefix-map=/build/2/modglue-1.17/2nd=.·-fstack-protector-strong
 ...

The attached patch fixes this by replacing the build path with a
placeholder string in debian/rules.

With this patch applied modglue should build reproducibly on
tests.reproducible-builds.org!

Thanks for maintaining modglue!

live well,
  vagrant
From 90abd06e800aa89e41a213373950ccda809858f9 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Mon, 23 May 2022 22:52:57 +0000
Subject: [PATCH] debian/rules: Replace build path in example Makefile with
 "BUILDPATH".

---
 debian/rules | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/rules b/debian/rules
index e1ec72b..cfd744c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,3 +10,8 @@ override_dh_autoreconf:
 override_dh_auto_install:
 	$(MAKE) install DESTDIR=$(CURDIR)/debian/libmodglue1v5 DEVDESTDIR=$(CURDIR)/debian/libmodglue1-dev
 	rm `find $(CURDIR)/debian -name '*.la'`
+
+override_dh_installexamples:
+	# Replace build path with placeholder string
+	sed -i -e "s,$(CURDIR),BUILDPATH,g" examples/Makefile
+	dh_installexamples
-- 
2.36.1

Attachment: signature.asc
Description: PGP signature

Reply via email to