0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.1.0691: python3: stable-abi may cause segfault on Python 3.11

Problem:  python3: stable-abi may cause segfault on Python 3.11
          (Audrius Kažukauskas, after v9.1.0668)
Solution: do not enable the stable Python ABI by default, only when used
          with --with-python3-stable-abi argument is given

related: #15543

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2024-08-23 18:39:08 +02:00
parent 7866d54ecc
commit 3f7024cf86
3 changed files with 16 additions and 22 deletions

19
src/auto/configure vendored
View File

@@ -7092,21 +7092,16 @@ printf %s "checking --with-python3-stable-abi argument... " >&6; }
if test ${with_python3_stable_abi+y}
then :
withval=$with_python3_stable_abi;
if test "X$withval" = "Xyes"; then
vi_cv_var_python3_stable_abi=$python3_stable_abi_default
else
vi_cv_var_python3_stable_abi="$withval"
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_stable_abi" >&5
if test "X$withval" = "Xyes"; then
vi_cv_var_python3_stable_abi=$python3_stable_abi_default
else
vi_cv_var_python3_stable_abi="$withval"
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_stable_abi" >&5
printf "%s\n" "$vi_cv_var_python3_stable_abi" >&6; }
else $as_nop
vi_cv_var_python3_stable_abi=$python3_stable_abi_default
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no. defaults to $python3_stable_abi_default." >&5
printf "%s\n" "no. defaults to $python3_stable_abi_default." >&6; }
fi
if test "X$vi_cv_var_python3_stable_abi" != "Xno"; then
if test "X$vi_cv_var_python3_stable_abi" != "X"; then
if test ${vi_cv_var_python3_stable_abi_hex+y}
then :
printf %s "(cached) " >&6