]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Sep 2024 20:55:29 +0000 (22:55 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2024 20:55:29 +0000 (22:55 +0200)
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 <furkanonder@protonmail.com>
configure
configure.ac

index 687b12d5a48d7dc850de9361c17638c30b2a5a8f..7e1e5e594ca7736527ed033cc37700684dcd1ba1 100755 (executable)
--- 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; }
index 525662de5b8a671df2f48baac17d79f34708ed3c..58f54076ff2f1a20b643596dd98b5dd5de7381c1 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])