commit:     42e7065d2410b2bb80d3353913930a00db581bb9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 24 09:13:11 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 24 09:14:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42e7065d

dev-python/setuptools-rust: Restrict tests on ppc

Restrict tests on ppc for the time being, due to a bug in pyo3 < 0.20.3,
to unblock dev-python/cryptography stabilization.  We can remove
the restriction once upstream bumps pyo3 in tests.

Closes: https://bugs.gentoo.org/918970
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/setuptools-rust/setuptools-rust-1.8.1.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-python/setuptools-rust/setuptools-rust-1.8.1.ebuild 
b/dev-python/setuptools-rust/setuptools-rust-1.8.1.ebuild
index d400701a2bd8..69db2147ebfd 100644
--- a/dev-python/setuptools-rust/setuptools-rust-1.8.1.ebuild
+++ b/dev-python/setuptools-rust/setuptools-rust-1.8.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -143,7 +143,12 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="amd64 arm arm64 ~loong ~mips ~ppc ppc64 ~riscv ~s390 sparc x86"
 IUSE="test"
-RESTRICT="!test? ( test )"
+# pyo3 < 0.20.3 is broken on ppc; https://bugs.gentoo.org/918970
+RESTRICT="
+       !test? ( test )
+       ppc? ( test )
+"
+[[ ${CRATES} != *pyo3@0.20.0* ]] && die "Please recheck ppc test restriction"
 
 RDEPEND="
        virtual/rust

Reply via email to