]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD compati...
authorFurkan Onder <furkanonder@protonmail.com>
Thu, 5 Sep 2024 23:49:12 +0000 (02:49 +0300)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2024 23:49:12 +0000 (23:49 +0000)
configure
configure.ac

index 2c58af3eace84ac3b652d8c3e3cc2c31f328155e..54982ab2aad9aa95d2d8125512927d0ec38faaf6 100755 (executable)
--- 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; }
index 3c1dc1cc5018d4db07ae8ab5f1fc2a43fcd65cce..32e673e83e52d5b59bc0d1c0714d4cf1f216a2a4 100644 (file)
@@ -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])