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

Bug#995741: latex-mk: reproducible builds: embeds path to various binaries



Source: latex-mk
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 are embedded which differs on a usrmerge
vs. non-usrmerge system.

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

  /usr/share/latex-mk/latex.gmk

  ECHO?=» » /bin/echo
vs.
  ECHO?=» » /usr/bin/echo

Patch attached which passes variables to configure to use the
non-usrmerge locations, as usrmerge installations typically have
compatibility symlinks, but not vice-versa.

With this patch applied, latex-mk should build reproducibly on
tests.reproducible-builds.org.

Thanks for maintaining latex-mk!

live well,
  vagrant
From 9cfadec84ad7b19ef7b045a0cda6e4534554030f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Mon, 4 Oct 2021 21:19:40 +0000
Subject: [PATCH] debian/rules: Pass variables to configure to make the package
 build reproducibly regardless of usrmerge.

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

diff --git a/debian/rules b/debian/rules
index b44bfc9..bd10590 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,7 +17,7 @@ XP = xsltproc -''-nonet
 
 override_dh_auto_configure: latex-mk.1 ieee-copyout.1
 	rm -f doc/texinfo.tex
-	dh_auto_configure
+	dh_auto_configure -- GREP=/bin/grep ECHO=/bin/echo FALSE=/bin/false GZIP=/bin/gzip RM=/bin/rm RMDIR=/bin/rmdir TAR=/bin/tar
 
 override_dh_auto_install:
 	dh_auto_install
-- 
2.33.0

Attachment: signature.asc
Description: PGP signature


Reply to: