Debian Bug report logs - #1024286
lcm: reproducible-builds: Embedded build path and usrmerge paths in Makefile

Package: src:lcm; Maintainer for src:lcm is Debian QA Group <packages@qa.debian.org>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Thu, 17 Nov 2022 00:33:05 UTC

Severity: normal

Tags: patch

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian QA Group <packages@qa.debian.org>:
Bug#1024286; Package src:lcm. (Thu, 17 Nov 2022 00:33:07 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>. (Thu, 17 Nov 2022 00:33:07 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: lcm: reproducible-builds: Embedded build path and usrmerge paths in Makefile
Date: Wed, 16 Nov 2022 16:29:37 -0800
[Message part 1 (text/plain, inline)]
Source: lcm
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 binary paths are embedded in
/usr/share/doc/lcm-doc/examples/Makefile:

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

  ACLOCAL·=·${SHELL}·'/build/1st/lcm-1.3.1+repack1/missing'·aclocal-1.16
  vs.
  ACLOCAL·=·${SHELL}·'/build/2/lcm-1.3.1+repack1/2nd/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 system to run it on.

If removing the example Makefile is not viable, it might be possible to
sanitize the build paths, and all relevent arguments to configure
(e.g. EGREP='/bin/grep -e') to use the specified paths.

According to my local tests, With this patch applied lcm should build
reproducibly on tests.reproducible-builds.org!

Thanks for maintaining lcm!

live well,
  vagrant
[0001-debian-rules-Remove-example-Makefile-that-embedded-b.patch (text/x-diff, inline)]
From 65bc199c9a7bdb9f8a7fde7dc3aad441105394cf Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Thu, 17 Nov 2022 00:25:41 +0000
Subject: [PATCH] debian/rules: Remove example Makefile that embedded build
 paths and binary paths.

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

diff --git a/debian/rules b/debian/rules
index f29f30d..c9efc4e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,12 @@ override_dh_auto_install:
 # I build the docs after the 'make install' because the python docs require an installed lcm
 	cd docs; ./build-docs.sh
 
+override_dh_installdocs:
+	dh_installdocs
+	# Remove example makefile which contains build paths and
+	# binary paths
+	rm -vf debian/liblcm-doc/usr/share/doc/liblcm-doc/examples/Makefile
+
 override_dh_auto_clean:
 	dh_auto_clean
 	rm -rf docs/html
-- 
2.38.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 11:31:26 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.