commit: 7758d4908a955d0b7cf7ab7104e15a32e5546aab Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Wed May 29 16:15:30 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu May 30 15:38:06 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7758d490
dev-lang/python: Use CHOST rather than ARCH for test skips 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 <mgorny <AT> gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/36888 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-lang/python/python-3.13.0_beta1_p3.ebuild | 44 +++++++++++++-------------- 1 file changed, 21 insertions(+), 23 deletions(-) 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 )
