Control: notfixed 976307 1.9.9-1
Control: tags 976307 +patch

This was apparently re-introduced when switching to dh in commit:

    308501390171e0afd1f2ce729cb3719388696b0f first half of dh conversion

And included in 1.9.8p2...

Updated patch attached.


live well,
  vagrant
From 41bb07920ecb10832935b1b0f8a42b5565f92326 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 6 Mar 2022 01:22:07 +0000
Subject: [PATCH] debian/rules: Pass MVPROG=/bin/mv to configure to ensure
 reproducible build.

When built on a system with usrmerge enabled, and a system without
usrmerge enabled, the visudo binary embeds different paths for the
"mv" program.

Passing the /bin location to configure ensures using the most
compatible path, as a usrmerge system should have compatibility
symlinks available for /bin, while a non-usrmerge system is unlikely
to have compatibility symlinks for the /usr/bin location.
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 88f0a53..b93a6ba 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,6 +33,10 @@ ifeq ($(DEB_HOST_ARCH_OS),linux)
 CONFIGURE_ARGS += --with-selinux --with-linux-audit --enable-tmpfiles.d=yes
 endif
 
+# Consistently use /bin/mv to ensure reproducible builds regardless of
+# building on a usrmerge or non-usrmerge system.
+CONFIGURE_ARGS += MVPROG=/bin/mv
+
 %:
 		dh $@
 
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature

Reply via email to