From 42f52431e9961d5236b33a68af16cca07b74d02c Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Fri, 6 Sep 2024 02:49:12 +0300 Subject: [PATCH] gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compatibility (#123717) --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 2c58af3eace84a..54982ab2aad9aa 100755 --- a/configure +++ b/configure @@ -4509,7 +4509,7 @@ if test "$cross_compiling" = yes; then # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5 printf %s "checking iOS deployment target... " >&6; } - IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3} + IPHONEOS_DEPLOYMENT_TARGET=$(echo ${_host_os} | cut -c4-) IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5 printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; } diff --git a/configure.ac b/configure.ac index 3c1dc1cc5018d4..32e673e83e52d5 100644 --- a/configure.ac +++ b/configure.ac @@ -758,7 +758,7 @@ if test "$cross_compiling" = yes; then # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version AC_MSG_CHECKING([iOS deployment target]) - IPHONEOS_DEPLOYMENT_TARGET=${_host_os:3} + IPHONEOS_DEPLOYMENT_TARGET=$(echo ${_host_os} | cut -c4-) IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0} AC_MSG_RESULT([$IPHONEOS_DEPLOYMENT_TARGET])