From 198d5d840616712264c9dc340280ccbcfdb7402e Mon Sep 17 00:00:00 2001
From: Jeong Han Lee <jeonghan.lee@gmail.com>
Date: Tue, 17 Apr 2018 23:00:38 +0200
Subject: [PATCH] fixed file generation in old makefile version 3.8 in CentOS

---
 configure/E3/RULES_REQUIRE | 9 ++++++++-
 configure/RULES            | 6 +++++-
 tools/ess-env.conf         | 2 +-
 3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/configure/E3/RULES_REQUIRE b/configure/E3/RULES_REQUIRE
index 52bb2c2c..715461af 100644
--- a/configure/E3/RULES_REQUIRE
+++ b/configure/E3/RULES_REQUIRE
@@ -45,6 +45,13 @@ e3-site-path:
 	$(QUIET) $(SUDO) install -d -m 755 $(E3_SITEAPPS_PATH)
 
 
+
 e3-site-conf:
-	$(QUIET) $(file > $(G_E3_CFG_FILE), $(E3_CFG_VARS))
+# Makefile VERSION > 4.x is needed, DEFINES_REQUIRE can be found in a19eb01
+#	$(QUIET) $(file > $(G_E3_CFG_FILE), $(E3_CFG_VARS))
+	@echo "declare -g DEFAULT_EPICS_BASE=$(E3_MODULES_PATH)"          > $(G_E3_CFG_FILE)
+	@echo "declare -g DEFAULT_REQUIRE_NAME=$(E3_REQUIRE_NAME)"       >> $(G_E3_CFG_FILE)
+	@echo "declare -g DEFAULT_REQUIRE_VERSION=$(E3_REQUIRE_VERSION)" >> $(G_E3_CFG_FILE)
+
+
 
diff --git a/configure/RULES b/configure/RULES
index acb75f62..99f2c963 100644
--- a/configure/RULES
+++ b/configure/RULES
@@ -2,10 +2,14 @@
 # include $(EPICS_BASE)/configure/RULES
 
 include $(TOP)/configure/E3/DEFINES_FT
-include $(TOP)/configure/E3/DEFINES_REQUIRE
+#
+# We cannot use file operation in CentOS7.4,
+# because Makefile version is 3.8.
+# include $(TOP)/configure/E3/DEFINES_REQUIRE
 include $(TOP)/configure/E3/RULES_E3
 include $(TOP)/configure/E3/RULES_EPICS
 
+
 include $(TOP)/configure/E3/RULES_REQUIRE
 
 include $(TOP)/configure/E3/RULES_DB
diff --git a/tools/ess-env.conf b/tools/ess-env.conf
index d8b86c33..420744f1 100644
--- a/tools/ess-env.conf
+++ b/tools/ess-env.conf
@@ -1 +1 @@
-IOCSH_HASH_VERSION=4530dfe
+IOCSH_HASH_VERSION=a19eb01
-- 
GitLab