Skip to content

Commit

Permalink
dev-lang/python: Readd check for failed semaphore checks in 3.10
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/496328
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
floppym committed Jan 27, 2021
1 parent 7f05a0f commit 56566e1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dev-lang/python/python-3.10.0_alpha4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 56566e1

Please sign in to comment.