Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79f0f7c

Browse files
committed
Remove configure check prohibiting threaded libpython on OpenBSD.
According to recent tests, this case now works fine, so there's no reasonto reject it anymore. (Even if there are still some OpenBSD platformsin the wild where it doesn't work, removing the check won't break any casethat worked before.)We can actually remove the entire test that discovers whether libpythonis threaded, since without the OpenBSD case there's no need to know thatat all.Per report from Davin Potts. Back-patch to all active branches.
1 parent10eb60c commit79f0f7c

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

‎config/python.m4

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,4 @@ AC_SUBST(python_libspec)[]dnl
9595
AC_SUBST(python_additional_libs)[]dnl
9696
AC_SUBST(python_enable_shared)[]dnl
9797
98-
# threaded python is not supported on OpenBSD
99-
AC_MSG_CHECKING(whetherPythoniscompiledwiththreadsupport)
100-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
101-
if test "$pythreads" = "1"; then
102-
AC_MSG_RESULT(yes)
103-
case $host_os in
104-
openbsd*)
105-
AC_MSG_ERROR([threaded Python not supported on this platform])
106-
;;
107-
esac
108-
else
109-
AC_MSG_RESULT(no)
110-
fi
111-
11298
])# PGAC_CHECK_PYTHON_EMBED_SETUP

‎configure

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7488,23 +7488,6 @@ python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join
74887488
$as_echo"${python_libspec}${python_additional_libs}">&6; }
74897489

74907490

7491-
# threaded python is not supported on OpenBSD
7492-
{$as_echo"$as_me:${as_lineno-$LINENO}: checking whether Python is compiled with thread support">&5
7493-
$as_echo_n"checking whether Python is compiled with thread support...">&6; }
7494-
pythreads=`${PYTHON} -c"import sys; print(int('thread' in sys.builtin_module_names))"`
7495-
iftest"$pythreads" ="1";then
7496-
{$as_echo"$as_me:${as_lineno-$LINENO}: result: yes">&5
7497-
$as_echo"yes">&6; }
7498-
case$host_osin
7499-
openbsd*)
7500-
as_fn_error$?"threaded Python not supported on this platform""$LINENO" 5
7501-
;;
7502-
esac
7503-
else
7504-
{$as_echo"$as_me:${as_lineno-$LINENO}: result: no">&5
7505-
$as_echo"no">&6; }
7506-
fi
7507-
75087491

75097492
fi
75107493

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp