From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 6 Sep 2024 20:55:29 +0000 (+0200) Subject: [3.13] gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD... X-Git-Tag: v3.13.0rc2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e68f30ecd2505a3fe25b93e7a62193adb9bcaf79;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compatibility (GH-123717) (#123752) gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compatibility (GH-123717) (cherry picked from commit 42f52431e9961d5236b33a68af16cca07b74d02c) Co-authored-by: Furkan Onder --- diff --git a/configure b/configure index 687b12d5a48d..7e1e5e594ca7 100755 --- a/configure +++ b/configure @@ -4507,7 +4507,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 525662de5b8a..58f54076ff2f 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])