changeset 2926:aa80fc62139d icedtea-3.14.0pre01

PR3748: dev-java/icedtea-3.12.0 fails to build with mksh as the default shell 2019-10-17 Andrew John Hughes <gnu_andrew@member.fsf.org> PR3748: dev-java/icedtea-3.12.0 fails to build with mksh as the default shell * AUTHORS: Add Kerin Millar. 2019-05-15 Kerin Millar <kfm@plushkava.net> PR3748: dev-java/icedtea-3.12.0 fails to build with mksh as the default shell * acinclude.m4: (IT_VENDOR_OPTS): Use a switch statement rather than the =~ bashism.
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Thu, 17 Oct 2019 19:32:34 +0100
parents 3b2c386a649a
children 2fd362847d2d
files AUTHORS ChangeLog acinclude.m4
diffstat 3 files changed, 39 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/AUTHORS	Mon Sep 09 17:19:22 2019 +0100
+++ b/AUTHORS	Thu Oct 17 19:32:34 2019 +0100
@@ -30,6 +30,7 @@
 DJ Lucas <dj@linuxfromscratch.org>
 Omair Majid <omajid@redhat.com>
 Casey Marshall <csm@gnu.org>
+Kerin Millar <kfm@plushkava.net>
 Dan Munckton <lists@munckfish.net>
 Raif Naffah <admin@naffah-raif.name>
 Parag Nemade <pnemade@redhat.com>
--- a/ChangeLog	Mon Sep 09 17:19:22 2019 +0100
+++ b/ChangeLog	Thu Oct 17 19:32:34 2019 +0100
@@ -1,3 +1,17 @@
+2019-10-17  Andrew John Hughes  <gnu_andrew@member.fsf.org>
+
+	PR3748: dev-java/icedtea-3.12.0 fails to build with
+	mksh as the default shell
+	* AUTHORS: Add Kerin Millar.
+
+2019-05-15  Kerin Millar  <kfm@plushkava.net>
+
+	PR3748: dev-java/icedtea-3.12.0 fails to build with
+	mksh as the default shell
+	* acinclude.m4:
+	(IT_VENDOR_OPTS): Use a switch statement rather than
+	the =~ bashism.
+
 2019-09-05  Andrew John Hughes  <gnu_andrew@member.fsf.org>
 
 	Bump to icedtea-3.14.0pre01.
--- a/acinclude.m4	Mon Sep 09 17:19:22 2019 +0100
+++ b/acinclude.m4	Thu Oct 17 19:32:34 2019 +0100
@@ -2789,8 +2789,12 @@
      test "x${VENDOR_NAME}" = xyes ||
      test "x${VENDOR_NAME}" = xno; then
        AC_MSG_ERROR([--with-vendor-name must have a value])
-  elif [ ! [[ ${VENDOR_NAME} =~ ^[[:print:]]*$ ]] ]; then
-    AC_MSG_ERROR([--with-vendor-name value contains non-printing characters: ${VENDOR_NAME}])
+  else
+    case ${VENDOR_NAME} in
+      *[![:print:]]*)
+    	AC_MSG_ERROR([--with-vendor-name value contains non-printing characters: ${VENDOR_NAME}])
+	;;
+    esac
   fi
   AC_SUBST(VENDOR_NAME)
 
@@ -2804,8 +2808,12 @@
      test "x${VENDOR_URL}" = xyes ||
      test "x${VENDOR_URL}" = xno; then
        AC_MSG_ERROR([--with-vendor-url must have a value])
-  elif [ ! [[ ${VENDOR_URL} =~ ^[[:print:]]*$ ]] ]; then
-    AC_MSG_ERROR([--with-vendor-url value contains non-printing characters: ${VENDOR_URL}])
+  else
+    case ${VENDOR_URL} in
+      *[![:print:]]*)
+        AC_MSG_ERROR([--with-vendor-url value contains non-printing characters: ${VENDOR_URL}])
+	;;
+    esac
   fi
   AC_SUBST(VENDOR_URL)
 
@@ -2819,8 +2827,12 @@
      test "x${VENDOR_BUG_URL}" = xyes ||
      test "x${VENDOR_BUG_URL}" = xno; then
        AC_MSG_ERROR([--with-vendor-bug-url must have a value])
-  elif [ ! [[ ${VENDOR_BUG_URL} =~ ^[[:print:]]*$ ]] ]; then
-    AC_MSG_ERROR([--with-vendor-bug-url value contains non-printing characters: ${VENDOR_BUG_URL}])
+  else
+    case ${VENDOR_BUG_URL} in
+      *[![:print:]]*)
+        AC_MSG_ERROR([--with-vendor-bug-url value contains non-printing characters: ${VENDOR_BUG_URL}])
+	;;
+    esac
   fi
   AC_SUBST(VENDOR_BUG_URL)
 
@@ -2834,8 +2846,12 @@
      test "x${VENDOR_VM_BUG_URL}" = xyes ||
      test "x${VENDOR_VM_BUG_URL}" = xno; then
        AC_MSG_ERROR([--with-vendor-vm-bug-url must have a value])
-  elif [ ! [[ ${VENDOR_VM_BUG_URL} =~ ^[[:print:]]*$ ]] ]; then
-    AC_MSG_ERROR([--with-vendor-vm-bug-url value contains non-printing characters: ${VENDOR_VM_BUG_URL}])
+  else
+    case ${VENDOR_VM_BUG_URL} in
+      *[![:print:]]*)
+        AC_MSG_ERROR([--with-vendor-vm-bug-url value contains non-printing characters: ${VENDOR_VM_BUG_URL}])
+	;;
+    esac
   fi
   AC_SUBST(VENDOR_VM_BUG_URL)
 ])