Content-Length: 327155 | pFad | http://github.com/postgrespro/postgres/commit/5585cc707706243d2a964a93644bd1cd5203b654

CE Remove configure check prohibiting threaded libpython on OpenBSD. · postgrespro/postgres@5585cc7 · GitHub
Skip to content

Commit 5585cc7

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

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

config/python.m4

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,4 @@ AC_SUBST(python_libdir)[]dnl
8585
AC_SUBST(python_libspec)[]dnl
8686
AC_SUBST(python_additional_libs)[]dnl
8787
88-
# threaded python is not supported on OpenBSD
89-
AC_MSG_CHECKING(whether Python is compiled with thread support)
90-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
91-
if test "$pythreads" = "1"; then
92-
AC_MSG_RESULT(yes)
93-
case $host_os in
94-
openbsd*)
95-
AC_MSG_ERROR([threaded Python not supported on this platform])
96-
;;
97-
esac
98-
else
99-
AC_MSG_RESULT(no)
100-
fi
101-
10288
])# PGAC_CHECK_PYTHON_EMBED_SETUP

configure

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7403,25 +7403,6 @@ python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print('
74037403
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }
74047404

74057405

7406-
# threaded python is not supported on OpenBSD
7407-
{ $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7408-
$as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7409-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7410-
if test "$pythreads" = "1"; then
7411-
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7412-
$as_echo "yes" >&6; }
7413-
case $host_os in
7414-
openbsd*)
7415-
{ { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7416-
$as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7417-
{ (exit 1); exit 1; }; }
7418-
;;
7419-
esac
7420-
else
7421-
{ $as_echo "$as_me:$LINENO: result: no" >&5
7422-
$as_echo "no" >&6; }
7423-
fi
7424-
74257406

74267407
fi
74277408

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/5585cc707706243d2a964a93644bd1cd5203b654

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy