[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#977428: lprng: reproducible builds: Binaries contain embedded paths from usrmerge systems



Source: lprng
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: usrmerge
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Several binaries shipped with lprng include embedded paths to the "chown"
and "chgrp" commands:

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

  427 	/bin/chown
  427 	/usr/bin/chown


The attached patch fixes this by passing the CHOWN and CHGRP variables
to configure.


Thanks for maintaining lprng!


live well,
  vagrant
From 53f042a2da5cb8a554255e0171f3f39598dbf423 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 15 Dec 2020 00:29:41 +0000
Subject: [PATCH] debian/rules: Pass CHOWN and CHGRP to configure.

The path to "chown" and "chgrp" may vary as either /bin/CMD or
/usr/bin/CMD if the system is configured as a usrmerge system. Use
/bin/CMD for the most compatible location.

https://tests.reproducible-builds.org/debian/issues/unstable/paths_vary_due_to_usrmerge_issue.html
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 4470ae1..4af91b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,7 +22,9 @@ override_dh_auto_configure:
 		--enable-kerberos_checks --enable-kerberos \
 		--with-groupid=lp \
 		--disable-remote \
-		--enable-lpd.conf.local
+		--enable-lpd.conf.local \
+		CHOWN=/bin/chown \
+		CHGRP=/bin/chgrp \
 
 override_dh_auto_install: $(autogen-files)
 	# Add here commands to install the package into debian/lprng.
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature


Reply to: