[Python-checkins] bpo-34602: Fix unportable test(1) operator in configure script (GH-30490) (GH-30491)

ned-deily webhook-mailer at python.org
Sat Jan 8 20:08:29 EST 2022


https://github.com/python/cpython/commit/b962544594c6a7c695330dd20fedffb3a1916ba6
commit: b962544594c6a7c695330dd20fedffb3a1916ba6
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ned-deily <nad at python.org>
date: 2022-01-08T20:08:20-05:00
summary:

bpo-34602: Fix unportable test(1) operator in configure script (GH-30490) (GH-30491)

(cherry picked from commit 3d11c1b8b49800c5c4c295953cc3abf577f6065a)

Co-authored-by: Thomas Klausner <tk at giga.or.at>

files:
M configure
M configure.ac

diff --git a/configure b/configure
index 0e97c5228df10..a7d2975f1f5e8 100755
--- a/configure
+++ b/configure
@@ -9895,7 +9895,7 @@ then
 		# small for the default recursion limit. Increase the stack size
 		# to ensure that tests don't crash
     stack_size="1000000"  # 16 MB
-    if test "$with_ubsan" == "yes"
+    if test "$with_ubsan" = "yes"
     then
         # Undefined behavior sanitizer requires an even deeper stack
         stack_size="4000000"  # 64 MB
diff --git a/configure.ac b/configure.ac
index 9151059f8946f..5aa91cbad3555 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2816,7 +2816,7 @@ then
 		# small for the default recursion limit. Increase the stack size
 		# to ensure that tests don't crash
     stack_size="1000000"  # 16 MB
-    if test "$with_ubsan" == "yes"
+    if test "$with_ubsan" = "yes"
     then
         # Undefined behavior sanitizer requires an even deeper stack
         stack_size="4000000"  # 64 MB



More information about the Python-checkins mailing list