From 809afd4a24533311ced5ecfb2f022b539a3b6dd2 Mon Sep 17 00:00:00 2001 From: Benda Xu Date: Mon, 27 Jan 2020 12:54:55 +0800 Subject: [PATCH] sci-libs/scipy: disable parallel build completely. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit After 4 years discussion and debugging, we conclude that Python 3 is deeply broken in parallel builds for anything involving compiling of C/C++/fortran code. The problem is universal, regardless how dev-python/numpy is built. Numpy and scipy upstream cannot do anything about this. We bite the bullet and disable parallel build of scipy completely. Thanks to all who have contributed to this heroic marathon debugging. We regret that only a workaround can be provided at this moment. Credit: Andrés Becerra Sandoval, Hendrik v. Raven, younky.yang@yahoo.com Credit: matoro, Denis Descheneaux, Mathy Vanvoorden, email200202@yahoo.com Credit: jon R-B, Anton Kochkov, Jonas Stein, edes, David Duchesne Credit: thulle, Mathy Vanvoorden, Sasha Medvedev, rtgiskard@gmail.com Credit: Lukasz Ligowski, Zentoo, Jouni Kosonen, Neil, Harris Landgarten Credit: Markus Oehme, Andreas Proteus Suggested-By: François Bissey, Arfrever Frehtes Taifersar Arahesis Reference: https://github.com/numpy/numpy/issues/13080 Reference: https://github.com/scipy/scipy/issues/7112 Closes: https://bugs.gentoo.org/614464 Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Benda Xu --- sci-libs/scipy/scipy-1.4.1.ebuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sci-libs/scipy/scipy-1.4.1.ebuild b/sci-libs/scipy/scipy-1.4.1.ebuild index a9e7e584875f..b176683c8870 100644 --- a/sci-libs/scipy/scipy-1.4.1.ebuild +++ b/sci-libs/scipy/scipy-1.4.1.ebuild @@ -108,6 +108,8 @@ python_prepare_all() { python_compile() { # FIXME: parallel python building fails, bug #614464 + export MAKEOPTS=-j1 + ${EPYTHON} tools/cythonize.py || die distutils-r1_python_compile \ ${SCIPY_FCONFIG} -- 2.26.2