Debian Bug report logs - #1020724
snapper: reproducible-builds: Embedded usrmerge path in libsnapper.so.6.0.1

Package: src:snapper; Maintainer for src:snapper is Hideki Yamane <henrich@debian.org>;

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

Date: Sun, 25 Sep 2022 19:57: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, Hideki Yamane <henrich@debian.org>:
Bug#1020724; Package src:snapper. (Sun, 25 Sep 2022 19:57: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, Hideki Yamane <henrich@debian.org>. (Sun, 25 Sep 2022 19:57: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: snapper: reproducible-builds: Embedded usrmerge path in libsnapper.so.6.0.1
Date: Sun, 25 Sep 2022 12:53:40 -0700
[Message part 1 (text/plain, inline)]
Source: snapper
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: usrmerge
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

The binary path for "rm" is embedded in /usr/lib/x86_64-linux-gnu/libsnapper.so.6.0.1:

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

  /bin/rm
  vs.
  /usr/bin/rm

As well as several other binary paths in an example Makefile.

The attached patch fixes this in debian/rules by pasing variables to
configure to use the non-usrmerge paths, which are the most compatible
across all systems.

With this patch applied snapper should build reproducibly on
tests.reproducible-builds.org when once it migrates to testing!

Thanks for maintaining snapper!

live well,
  vagrant
[0001-debian-rules-Pass-variables-to-ensure-consistent-pat.patch (text/x-diff, inline)]
From 61e138da79fe1de6f3b2ac2de2268b3523f782c8 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 25 Sep 2022 19:09:51 +0000
Subject: [PATCH 1/2] debian/rules: Pass variables to ensure consistent paths
 in binaries.

Use the most compatible paths for CPBIN, GREP, EGREP, FGREP, MKDIR_P,
RMBIN and SED, which differ depending on if built on a usrmerge
vs. non-usrmerge system.
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 9285363..241b9bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,7 +12,7 @@ include /usr/share/dpkg/architecture.mk
 	dh $@
 
 override_dh_auto_configure:
-	dh_auto_configure -- --with-conf=/etc/default --disable-zypp --enable-xattrs --disable-silent-rules --disable-ext4
+	dh_auto_configure -- --with-conf=/etc/default --disable-zypp --enable-xattrs --disable-silent-rules --disable-ext4 CPBIN=/bin/cp GREP=/bin/grep EGREP='/bin/grep -E' FGREP='/bin/grep -F' MKDIR_P='/bin/mkdir -p' RMBIN=/bin/rm SED=/bin/sed
 
 override_dh_auto_install:
 	dh_auto_install
-- 
2.37.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 13:29:15 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.