Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/
Date: Wed, 27 Jan 2021 16:07:03
Message-Id: 1611763598.56566e139e376bd02c170be73a56ba933766979a.floppym@gentoo
1 commit: 56566e139e376bd02c170be73a56ba933766979a
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 27 16:06:38 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 27 16:06:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56566e13
7
8 dev-lang/python: Readd check for failed semaphore checks in 3.10
9
10 Bug: https://bugs.gentoo.org/496328
11 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
12
13 dev-lang/python/python-3.10.0_alpha4.ebuild | 6 ++++++
14 1 file changed, 6 insertions(+)
15
16 diff --git a/dev-lang/python/python-3.10.0_alpha4.ebuild b/dev-lang/python/python-3.10.0_alpha4.ebuild
17 index a07c3376eff..a68e95cd0c1 100644
18 --- a/dev-lang/python/python-3.10.0_alpha4.ebuild
19 +++ b/dev-lang/python/python-3.10.0_alpha4.ebuild
20 @@ -186,6 +186,12 @@ src_configure() {
21 )
22
23 OPT="" econf "${myeconfargs[@]}"
24 +
25 + if grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
26 + eerror "configure has detected that the sem_open function is broken."
27 + eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
28 + die "Broken sem_open function (bug 496328)"
29 + fi
30 }
31
32 src_compile() {