]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46045: Do not use POSIX semaphores on NetBSD (GH-30047)
authorThomas Klausner <tk@giga.or.at>
Tue, 18 Jan 2022 20:38:35 +0000 (21:38 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Jan 2022 20:38:35 +0000 (22:38 +0200)
This fixes hanging tests test_compileall,, test_multiprocessing_fork and test_concurrent_futures.

Misc/NEWS.d/next/Core and Builtins/2021-12-11-11-36-48.bpo-46045.sfThay.rst [new file with mode: 0644]
configure
configure.ac

diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-12-11-11-36-48.bpo-46045.sfThay.rst b/Misc/NEWS.d/next/Core and Builtins/2021-12-11-11-36-48.bpo-46045.sfThay.rst
new file mode 100644 (file)
index 0000000..97fd188
--- /dev/null
@@ -0,0 +1 @@
+Do not use POSIX semaphores on NetBSD
index 1dee645c387eb669c59a7fe7c49892eeb62d2426..7236e0930e15bb6eaf6bf80c234f44977bdb560c 100755 (executable)
--- a/configure
+++ b/configure
@@ -13006,6 +13006,10 @@ $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
       AIX/*)
 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
 
+                      ;;
+      NetBSD/*)
+$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
+
                       ;;
       esac
 
index 7b084a264d411e1efe26f4ff02a907392bbdf5fc..aea12128c1217da4592a37f6b950bfc55867f2a5 100644 (file)
@@ -3716,6 +3716,9 @@ if test "$posix_threads" = "yes"; then
       AIX/*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
                       [Define if the Posix semaphores do not work on your system])
                       ;;
+      NetBSD/*) AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1,
+                      [Define if the Posix semaphores do not work on your system])
+                      ;;
       esac
 
       AC_CACHE_CHECK([if PTHREAD_SCOPE_SYSTEM is supported], [ac_cv_pthread_system_supported],