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

Package: src:libsx; Maintainer for src:libsx is Alastair McKinstry <mckinstry@debian.org>;

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

Date: Sun, 16 Oct 2022 06:00:02 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, Alastair McKinstry <mckinstry@debian.org>:
Bug#1021860; Package src:libsx. (Sun, 16 Oct 2022 06: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, Alastair McKinstry <mckinstry@debian.org>. (Sun, 16 Oct 2022 06:00:04 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: libsx: reproducible-builds: Embedded build path and usrmerge paths in Makefile
Date: Sat, 15 Oct 2022 22:56:30 -0700
[Message part 1 (text/plain, inline)]
Source: libsx
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/libsx-dev/examples/freq/Makefile:

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

  ACLOCAL·=·${SHELL}·'/build/1st/libsx-2.08/m4/missing'·aclocal-1.16
  vs.
  ACLOCAL·=·${SHELL}·'/build/2/libsx-2.08/2nd/m4/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 libsx should build
reproducibly on tests.reproducible-builds.org!

Thanks for maintaining libsx!

live well,
  vagrant
 
[0001-debian-rules-Remove-example-Makefile-for-reproducibl.patch (text/x-diff, inline)]
From 51971752a7bdaafbd43e55525cb40fcdb7d13a0a Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 16 Oct 2022 05:47:51 +0000
Subject: [PATCH] debian/rules: Remove example Makefile for reproducible
 builds.

The Makefile contains build paths and usrmerge paths, and would have
to be regenerated from Makefile.am/Makefile.in in order to match the
system on which it is being run.
---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index 370d8f9..e490e74 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,8 @@ CFLAGS += `dpkg-buildflags --get CPPFLAGS`
 override_dh_installexamples:
 	$(MAKE) clean
 	dh_installexamples -Xlibsx.h
+	# Remove example Makefile for reproducible builds
+	rm -vf debian/libsx-dev/usr/share/doc/libsx-dev/examples/freq/Makefile
 
 override_dh_auto_test:
 	@echo Disabled to avoid building examples
-- 
2.30.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:43:41 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.