Debian Bug report logs -
#1033032
buddy: reproducible-builds: Embedded build path and usrmerge paths 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 Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>:
Bug#1033032; Package src:buddy.
(Thu, 16 Mar 2023 02:15: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 Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>.
(Thu, 16 Mar 2023 02:15: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: buddy
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath usrmerge
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The build path and various binary paths are embedded in
/usr/share/doc/libbdd-dev/examples/solitare/Makefile:
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/buddy.html
ACLOCAL·=·${SHELL}·'/build/1st/buddy-2.4+dfsg/tools/missing'·aclocal-1.16
vs.
ACLOCAL·=·${SHELL}·'/build/2/buddy-2.4+dfsg/2nd/tools/missing'·aclocal-1.16
EGREP·=·/bin/grep·-E
vs.
EGREP·=·/usr/bin/grep·-E
The attached patch fixes this by removing the example Makefile, which
would have to be regenerated anyways to match the running system.
If removing the example Makefile is not viable, it might be possible to
sanitize the build paths, and add relevent arguments to configure
(e.g. EGREP='/bin/grep -e') to use the specified paths.
According to my local tests, with this patch applied buddy should build
reproducibly on tests.reproducible-builds.org!
Thanks for maintaining buddy!
live well,
vagrant
[0001-debian-rules-Remove-example-Makefile-containing-buil.patch (text/x-diff, inline)]
From 157d368d3bba2def3069861780acb0ff26fa66c5 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Wed, 15 Mar 2023 19:00:17 -0700
Subject: [PATCH] debian/rules: Remove example Makefile containing build paths
and various binary paths.
As the Makefile would need to be regenerated from Makefile.am or
Makefile.in in order to match the running system, remove it.
https://reproducible-builds.org/docs/build-path/
https://tests.reproducible-builds.org/debian/issues/unstable/paths_vary_due_to_usrmerge_issue.html
---
debian/rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index b0f63f0..1fe0f65 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,7 +22,7 @@ override_dh_installexamples:
rm -f debian/libbdd-dev/usr/share/doc/libbdd-dev/examples/bddcalc/Makefile* ; \
sed -i "2a g++ -O2 -o bddcalc hashtbl.cxx lexer.cxx parser.cxx -lbdd -lm" debian/libbdd-dev/usr/share/doc/libbdd-dev/examples/bddcalc/runtest ; \
rm -f debian/libbdd-dev/usr/share/doc/libbdd-dev/examples/Makefile
- # No idea what to do in examples/solitare
+ rm -f debian/libbdd-dev/usr/share/doc/libbdd-dev/examples/solitare/Makefile
override_dh_installchangelogs:
dh_installchangelogs $(CURDIR)/ChangeLog
--
2.39.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 12:35:55 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.