From: Matthias Klose Date: Sun, 16 Jan 2022 17:12:18 +0000 (+0000) Subject: disable-sem-check X-Git-Tag: archive/raspbian/3.9.10-1+rpi1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f844353895e352f3a60c12beeff8b38d5cc82bd6;p=python3.9.git disable-sem-check # DP: Assume working semaphores, don't rely on running kernel for the check. # DP: Assume working semaphores, don't rely on running kernel for the check. Gbp-Pq: Name disable-sem-check.diff --- diff --git a/configure.ac b/configure.ac index 44f0199..4b728f8 100644 --- a/configure.ac +++ b/configure.ac @@ -4652,8 +4652,13 @@ int main(void) { AC_MSG_RESULT($ac_cv_posix_semaphores_enabled) if test $ac_cv_posix_semaphores_enabled = no then - AC_DEFINE(POSIX_SEMAPHORES_NOT_ENABLED, 1, - [Define if POSIX semaphores aren't enabled on your system]) + case $ac_sys_system in + Linux*) # assume yes, see https://launchpad.net/bugs/630511 + ;; + *) + AC_DEFINE(POSIX_SEMAPHORES_NOT_ENABLED, 1, + [Define if POSIX semaphores aren't enabled on your system]) + esac fi # Multiprocessing check for broken sem_getvalue @@ -4688,8 +4693,13 @@ int main(void){ AC_MSG_RESULT($ac_cv_broken_sem_getvalue) if test $ac_cv_broken_sem_getvalue = yes then - AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, - [define to 1 if your sem_getvalue is broken.]) + case $ac_sys_system in + Linux*) # assume yes, see https://launchpad.net/bugs/630511 + ;; + *) + AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, + [define to 1 if your sem_getvalue is broken.]) + esac fi AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTLD_NOLOAD, RTLD_DEEPBIND, RTLD_MEMBER], [], [], [[#include ]])