From 7758d4908a955d0b7cf7ab7104e15a32e5546aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 29 May 2024 18:15:30 +0200 Subject: dev-lang/python: Use CHOST rather than ARCH for test skips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use CHOST rather than ARCH+big-endian flag to determine the host. This simplifies the rules for ppc64 (BE). Signed-off-by: Michał Górny Closes: https://github.com/gentoo/gentoo/pull/36888 Signed-off-by: Michał Górny --- dev-lang/python/python-3.13.0_beta1_p3.ebuild | 44 +++++++++++++-------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'dev-lang/python/python-3.13.0_beta1_p3.ebuild') diff --git a/dev-lang/python/python-3.13.0_beta1_p3.ebuild b/dev-lang/python/python-3.13.0_beta1_p3.ebuild index 6cd571f48fc1..1bc9c7f697f9 100644 --- a/dev-lang/python/python-3.13.0_beta1_p3.ebuild +++ b/dev-lang/python/python-3.13.0_beta1_p3.ebuild @@ -33,7 +33,7 @@ LICENSE="PSF-2" SLOT="${PYVER}" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" IUSE=" - big-endian bluetooth build +debug +ensurepip examples gdbm +gil jit + bluetooth build +debug +ensurepip examples gdbm +gil jit libedit +ncurses pgo +readline +sqlite +ssl test tk valgrind " REQUIRED_USE="jit? ( ${LLVM_REQUIRED_USE} )" @@ -250,8 +250,8 @@ src_configure() { ) # Arch-specific skips. See #931888 for a collection of these. - case ${ARCH} in - alpha) + case ${CHOST} in + alpha*) test_opts+=( -x test_builtin -x test_capi @@ -268,30 +268,30 @@ src_configure() { -x test_strtod ) ;; - ia64) + ia64*) test_opts+=( -x test_ctypes -x test_external_inspection ) ;; - mips) + mips*) test_opts+=( -x test_ctypes -x test_external_inspection -x test_statistics ) ;; - ppc64) - if use big-endian; then - test_opts+=( -x test_descr ) - fi + powerpc64-*) # big endian + test_opts+=( + -x test_descr + ) ;; - riscv) + riscv*) test_opts+=( -x test_urllib2 ) ;; - sparc) + sparc*) test_opts+=( # bug 788022 -x test_multiprocessing_fork @@ -340,13 +340,13 @@ src_configure() { ) # Arch-specific skips. See #931888 for a collection of these. - case ${ARCH} in - alpha) + case ${CHOST} in + alpha*) profile_task_flags+=( -x test_os ) ;; - hppa) + hppa*) profile_task_flags+=( -x test_descr # bug 931908 @@ -354,20 +354,18 @@ src_configure() { -x test_os ) ;; - ia64) + ia64*) profile_task_flags+=( -x test_signal ) ;; - ppc64) - if use big-endian; then - profile_task_flags+=( - # bug 931908 - -x test_exceptions - ) - fi + powerpc64-*) # big endian + profile_task_flags+=( + # bug 931908 + -x test_exceptions + ) ;; - riscv) + riscv*) profile_task_flags+=( -x test_statistics ) -- cgit v1.2.3