dev-lang/python: remove threads USE flag
authorMike Gilbert <floppym@gentoo.org>
Sat, 7 Jul 2018 16:30:52 +0000 (12:30 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 7 Jul 2018 16:30:52 +0000 (12:30 -0400)
Threads are always enabled in Python 3.7.

Package-Manager: Portage-2.3.40_p15, Repoman-2.3.9_p247

dev-lang/python/python-3.7.0.ebuild

index d1ab60b3112d7e770d50afddf1f523c631ffd968..e3cebf3af955d52cadcac95e5826559eadcd52ae 100644 (file)
@@ -17,7 +17,7 @@ SRC_URI="https://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
 LICENSE="PSF-2"
 SLOT="3.7/3.7m"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
-IUSE="bluetooth build examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl test +threads tk wininst +xml"
+IUSE="bluetooth build examples gdbm hardened ipv6 libressl +ncurses +readline sqlite +ssl test tk wininst +xml"
 RESTRICT="!test? ( test )"
 
 # Do not add a dependency on dev-lang/python to this ebuild.
@@ -139,12 +139,6 @@ src_configure() {
        )
 
        OPT="" econf "${myeconfargs[@]}"
-
-       if use threads && 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() {
@@ -238,7 +232,6 @@ src_install() {
        use sqlite || rm -r "${libdir}/"{sqlite3,test/test_sqlite*} || die
        use tk || rm -r "${ED%/}/usr/bin/idle${PYVER}" "${libdir}/"{idlelib,tkinter,test/test_tk*} || die
 
-       use threads || rm -r "${libdir}/multiprocessing" || die
        use wininst || rm "${libdir}/distutils/command/"wininst-*.exe || die
 
        dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}