diff options
author | Zqiang <qiang.zhang@windriver.com> | 2021-08-03 13:11:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-05 08:53:41 +0100 |
commit | f31839fc3c547f6deff0b379d4dadb6d2b323201 (patch) | |
tree | 2b686c5bcd68d4f83f7048c349c74df3e8a5e444 /meta/recipes-devtools/python | |
parent | 28b66dcb72fa72e49f4f53ef7bf27b8e16f6c65e (diff) | |
download | poky-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.bb | 3 |
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 | |||
74 | DEPENDS:append:class-target = " python3-native" | 74 | DEPENDS:append:class-target = " python3-native" |
75 | DEPENDS:append:class-nativesdk = " python3-native" | 75 | DEPENDS:append:class-nativesdk = " python3-native" |
76 | 76 | ||
77 | # force to use the mutex+cond implementation (https://bugs.python.org/issue41710) | ||
78 | CFLAGS += "-DHAVE_BROKEN_POSIX_SEMAPHORES" | ||
79 | |||
77 | EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib}" | 80 | EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib}" |
78 | EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}" | 81 | EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}" |
79 | 82 | ||