Source: snapper Severity: normal Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: usrmerge X-Debbugs-Cc: reproducible-b...@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
From 61e138da79fe1de6f3b2ac2de2268b3523f782c8 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <vagr...@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
Description: PGP signature