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

The paths for various binaries (grep, mkdir, sed) differ on a merged
/usr system, and flex embeds those paths into several example Makefiles
shipped in the package.

The attached patch works around this in debian/rules by passing GREP,
MKDIR_P, SED and SHELL to configure, using using the /bin path for these
binaries which is compatible with both usrmerge and non-usrmerge
systems.

live well,
  vagrant
From 93a3269dab55742e0ccf2d7f080dc37a935b576d Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sun, 19 Jan 2020 14:07:57 -0800
Subject: [PATCH 1/3] debian/rules: Pass GREP, MKDIR_P, SED and SHELL to
 configure to ensure reproducible builds when built on a usrmerge system.

---
 debian/rules | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/rules b/debian/rules
index f8ee94e..57485fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,8 @@ DEB_REVISION         := $(strip $(shell echo $(DEB_NOEPOCH_VERSION)
 DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
 
 confflags = ac_cv_lib_util_getloadavg=no
+# Pass variables to ensure reproducible builds when built on usrmerge system
+confflags += GREP=/bin/grep MKDIR_P="/bin/mkdir -p" SED=/bin/sed SHELL=/bin/bash
 ifneq ($(DEB_BUILD_MULTIARCH),$(DEB_HOST_MULTIARCH))
   confflags += ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
 endif
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to