commit:     26190b8f1768367ee46aab16039b30d0b5fd1f25
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 13 06:09:55 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Apr 13 06:17:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26190b8f

dev-util/maturin: restrict tests on ppc32 for now

Due to usage of pyo3 crate that's broken on ppc32, can be
restored at a later date and not worth trying to manually
bump it to fixed pyo3 in the interim.

Bug: https://bugs.gentoo.org/927792
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-util/maturin/maturin-1.5.1-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dev-util/maturin/maturin-1.5.1-r1.ebuild 
b/dev-util/maturin/maturin-1.5.1-r1.ebuild
index a692b2fa20a7..d16a841b817f 100644
--- a/dev-util/maturin/maturin-1.5.1-r1.ebuild
+++ b/dev-util/maturin/maturin-1.5.1-r1.ebuild
@@ -441,6 +441,9 @@ KEYWORDS="amd64 arm arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 
~sparc x86"
 IUSE="doc +ssl test"
 RESTRICT="!test? ( test )"
 
+# TODO: cleanup after CRATES_TEST's pyo3 is >=0.20.3 (bug #922236)
+RESTRICT+=" ppc? ( test )"
+
 RDEPEND="$(python_gen_cond_dep 'dev-python/tomli[${PYTHON_USEDEP}]' 3.10)"
 DEPEND="ssl? ( dev-libs/openssl:= )"
 BDEPEND="
@@ -461,6 +464,8 @@ QA_FLAGS_IGNORED="usr/bin/${PN}"
 src_prepare() {
        distutils-r1_src_prepare
 
+       [[ ${CRATES_TEST} == *[email protected].[0-2]* ]] || die "drop ppc test 
restrict"
+
        # we build the Rust executable (just once) via cargo_src_compile
        sed -i -e '/setuptools_rust/d' -e '/rust_extensions/d' setup.py || die
 

Reply via email to