commit:     56566e139e376bd02c170be73a56ba933766979a
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 16:06:38 2021 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Jan 27 16:06:38 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56566e13

dev-lang/python: Readd check for failed semaphore checks in 3.10

Bug: https://bugs.gentoo.org/496328
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 dev-lang/python/python-3.10.0_alpha4.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dev-lang/python/python-3.10.0_alpha4.ebuild 
b/dev-lang/python/python-3.10.0_alpha4.ebuild
index a07c3376eff..a68e95cd0c1 100644
--- a/dev-lang/python/python-3.10.0_alpha4.ebuild
+++ b/dev-lang/python/python-3.10.0_alpha4.ebuild
@@ -186,6 +186,12 @@ src_configure() {
        )
 
        OPT="" econf "${myeconfargs[@]}"
+
+       if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
+               eerror "configure has detected that the sem_open function is 
broken."
+               eerror "Please ensure that /dev/shm is mounted as a tmpfs with 
mode 1777."
+               die "Broken sem_open function (bug 496328)"
+       fi
 }
 
 src_compile() {

Reply via email to