summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorZqiang <qiang.zhang@windriver.com>2021-08-03 13:11:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-05 08:53:41 +0100
commitf31839fc3c547f6deff0b379d4dadb6d2b323201 (patch)
tree2b686c5bcd68d4f83f7048c349c74df3e8a5e444 /meta/recipes-devtools/python
parent28b66dcb72fa72e49f4f53ef7bf27b8e16f6c65e (diff)
downloadpoky-f31839fc3c547f6deff0b379d4dadb6d2b323201.tar.gz
python3: use monotonic clock for condvar if possible
The timeout for threading.Lock, threading.Condition, etc, is not using a monotonic clock, it is affected if the system time (realtime clock) is set. This patch will make condvar use monotonic clock. Refence: https://bugs.python.org/issue41710 (From OE-Core rev: 5a268f95a5bf5ee8c244a8af685d6c84aad9a4ac) Signed-off-by: Zqiang <qiang.zhang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3_3.9.6.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3_3.9.6.bb b/meta/recipes-devtools/python/python3_3.9.6.bb
index 9fe8e03389..34500642d4 100644
--- a/meta/recipes-devtools/python/python3_3.9.6.bb
+++ b/meta/recipes-devtools/python/python3_3.9.6.bb
@@ -74,6 +74,9 @@ DEPENDS = "bzip2-replacement-native libffi bzip2 openssl sqlite3 zlib virtual/li
74DEPENDS:append:class-target = " python3-native" 74DEPENDS:append:class-target = " python3-native"
75DEPENDS:append:class-nativesdk = " python3-native" 75DEPENDS:append:class-nativesdk = " python3-native"
76 76
77# force to use the mutex+cond implementation (https://bugs.python.org/issue41710)
78CFLAGS += "-DHAVE_BROKEN_POSIX_SEMAPHORES"
79
77EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib}" 80EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib}"
78EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}" 81EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}"
79 82