From 434f8b443d8604c80a139b9b6aceedc446eb9260 Mon Sep 17 00:00:00 2001 From: Narayanan Iyer Date: Wed, 27 Sep 2017 16:38:00 -0400 Subject: [PATCH] ICU minor version could be 0 which can cause expr to exit with a non-zero status thus terminating the configure script prematurely; Treat this as a benign error scenario --- sr_unix/configure.gtc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sr_unix/configure.gtc b/sr_unix/configure.gtc index acdb13396..2de1b8993 100755 --- a/sr_unix/configure.gtc +++ b/sr_unix/configure.gtc @@ -309,8 +309,12 @@ if [ -d "utf8" ]; then # set the gtm_icu_version if [ "$found_icu" -eq 1 -a "$majmin" -ge 36 ] ; then save_icu_libpath="$libpath" + # "expr" used below can exit with 1 if $majmin is a multiple of 10 and so + # temporarily suspend "set -e" + set +e minorver=`expr $majmin % 10` majorver=`expr $majmin / 10` + set -e gtm_icu_version="$majorver.$minorver" export gtm_icu_version break