https://github.com/python/cpython/commit/42f52431e9961d5236b33a68af16cca07b74d02c
commit: 42f52431e9961d5236b33a68af16cca07b74d02c
branch: main
author: Furkan Onder <[email protected]>
committer: vstinner <[email protected]>
date: 2024-09-05T23:49:12Z
summary:
gh-123716: Fix 'Bad substitution' syntax error in configure script for NetBSD
compatibility (#123717)
files:
M configure
M configure.ac
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])
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]