Package: libtool
Version: 2.4.6-11
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: usrmerge environment
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The "libtoolize" binary embeds the path to grep and sed binaries
differently when build on a merged /usr system:

  ${EGREP="/​bin/​grep·​-​E"}

vs.

  ${EGREP="/​usr/​bin/​grep·​-​E"}

Setting values for GREP and SED in the configure target in debian/rules
works around the issue, implemented in the attached patch.


Thanks for maintaining libtool!


live well,
  vagrant

p.s. The most recent versions of libtool uploaded to the archive are not
present in the salsa git repository; it would be nice to fix that.

From 100ec7a99f77f2ca060f13d3488ba7d47e6fd0e6 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 12 Jan 2020 21:32:00 -0800
Subject: [PATCH 1/2] debian/rules: Call ./configure with explicit
 GREP=/bin/grep and SED=/bin/sed, to prevent variation when built on a merged
 /usr system.

---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 704ef10..99080e1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -79,7 +79,9 @@ config-stamp:
 		--prefix=/usr \
 		--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
 		$(confflags) \
-		$(shell dpkg-buildflags --export=cmdline)
+		$(shell dpkg-buildflags --export=cmdline) \
+		GREP=/bin/grep \
+		SED=/bin/sed
 	touch config-stamp
 
 
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to