Debian Bug report logs -
#1011495
modglue: reproducible-builds: Embedded build path in example Makefile
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#1011495; Package src:modglue.
(Mon, 23 May 2022 23:00:04 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, 23 May 2022 23:00:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: modglue
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/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
[0001-debian-rules-Replace-build-path-in-example-Makefile-.patch (text/x-diff, inline)]
From 90abd06e800aa89e41a213373950ccda809858f9 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@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
[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 12:39:24 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.