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

Bug#1007095: lmod: reproducible-builds: binary paths are embedded differently on usrmerge vs. non-usrmerge systems



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

The paths to various binaries (readlink, ls, more) are embedded with
different paths when built on a usrmerge system vs. a non-usrmerge
system:

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

  /etc/profile.d/lmod.sh
 	 

  findExec·READLINK_CMD·/bin/readlink··readlink
  vs.
  findExec·READLINK_CMD·/usr/bin/readlink··readlink

The attached patch fixes this by passing configuration options and
variables to specify the paths to various binaries, using their
non-usrmerge locations, as compatibility symlinks generally exist for
one way, but not for the other.

This patch appears to only be relevent for the version currently in
experimental.


With this patch applied, lmod should build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining lmod!

live well,
  vagrant
From 1132455b951464446f96b9ab78a77e1f5ca567eb Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 11 Mar 2022 02:02:34 +0000
Subject: [PATCH] debian/rules: Pass binary paths to configure to make the
 package build reproducibly regardless of usrmerge.

The binary paths for readlink, ls, and more should all point to their
non-usrmerge locations.

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

diff --git a/debian/rules b/debian/rules
index 172101a..c9670de 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,10 @@ override_dh_auto_configure-arch:
 	dh_auto_configure -- \
 		--prefix=/usr/share \
 		--with-ModulePathInit=/etc/lmod/modulespath \
-		PS=/bin/ps
+		PS=/bin/ps \
+		READLINK=/bin/readlink \
+		PATH_TO_LS=/bin/ls \
+		PATH_TO_PAGER=/bin/more \
 
 override_dh_auto_configure-indep:
 
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


Reply to: