commit:     03e7ca295497bdc3ea2853a52abf5fea03ab8ade
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 11 04:08:44 2026 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Sun Jan 11 04:10:51 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03e7ca29

dev-python/librt: suppress setuptools build parallelism

It is badly broken as extension modules reuse sources, so parallelism
leads to multiple racing instances writing to the same object files.

Closes: https://bugs.gentoo.org/967476
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 dev-python/librt/librt-0.7.3.ebuild | 7 ++++++-
 dev-python/librt/librt-0.7.4.ebuild | 7 ++++++-
 dev-python/librt/librt-0.7.5.ebuild | 7 ++++++-
 dev-python/librt/librt-0.7.7.ebuild | 5 +++++
 4 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/dev-python/librt/librt-0.7.3.ebuild 
b/dev-python/librt/librt-0.7.3.ebuild
index 82cc8f38ad7c..9612ad3dce0e 100644
--- a/dev-python/librt/librt-0.7.3.ebuild
+++ b/dev-python/librt/librt-0.7.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2025 Gentoo Authors
+# Copyright 2025-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -29,6 +29,11 @@ BDEPEND="
 EPYTEST_PLUGINS=()
 distutils_enable_tests pytest
 
+python_compile() {
+       # setuptools is broken for C extensions, bug #907718, bug #967476 etc.
+       distutils-r1_python_compile -j1
+}
+
 python_test() {
        rm -rf librt || die
        epytest smoke_tests.py

diff --git a/dev-python/librt/librt-0.7.4.ebuild 
b/dev-python/librt/librt-0.7.4.ebuild
index 4c3c2542d53c..bd8e035f98d0 100644
--- a/dev-python/librt/librt-0.7.4.ebuild
+++ b/dev-python/librt/librt-0.7.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2025 Gentoo Authors
+# Copyright 2025-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -29,6 +29,11 @@ BDEPEND="
 EPYTEST_PLUGINS=()
 distutils_enable_tests pytest
 
+python_compile() {
+       # setuptools is broken for C extensions, bug #907718, bug #967476 etc.
+       distutils-r1_python_compile -j1
+}
+
 python_test() {
        rm -rf librt || die
        epytest smoke_tests.py

diff --git a/dev-python/librt/librt-0.7.5.ebuild 
b/dev-python/librt/librt-0.7.5.ebuild
index 4c3c2542d53c..bd8e035f98d0 100644
--- a/dev-python/librt/librt-0.7.5.ebuild
+++ b/dev-python/librt/librt-0.7.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2025 Gentoo Authors
+# Copyright 2025-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -29,6 +29,11 @@ BDEPEND="
 EPYTEST_PLUGINS=()
 distutils_enable_tests pytest
 
+python_compile() {
+       # setuptools is broken for C extensions, bug #907718, bug #967476 etc.
+       distutils-r1_python_compile -j1
+}
+
 python_test() {
        rm -rf librt || die
        epytest smoke_tests.py

diff --git a/dev-python/librt/librt-0.7.7.ebuild 
b/dev-python/librt/librt-0.7.7.ebuild
index 9423c011d570..bd8e035f98d0 100644
--- a/dev-python/librt/librt-0.7.7.ebuild
+++ b/dev-python/librt/librt-0.7.7.ebuild
@@ -29,6 +29,11 @@ BDEPEND="
 EPYTEST_PLUGINS=()
 distutils_enable_tests pytest
 
+python_compile() {
+       # setuptools is broken for C extensions, bug #907718, bug #967476 etc.
+       distutils-r1_python_compile -j1
+}
+
 python_test() {
        rm -rf librt || die
        epytest smoke_tests.py

Reply via email to