From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 42C9515808B for ; Sat, 5 Oct 2024 08:28:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90545E29E0; Sat, 5 Oct 2024 08:28:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71EE4E29CF for ; Sat, 5 Oct 2024 08:28:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F92E343127 for ; Sat, 5 Oct 2024 08:28:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D11E1CB0 for ; Sat, 5 Oct 2024 08:28:33 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1728116904.d63f5075210bf225efcf59d42fab19fde4b61193.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/python/python-3.13.0_rc3.ebuild X-VCS-Directories: dev-lang/python/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d63f5075210bf225efcf59d42fab19fde4b61193 X-VCS-Branch: master Date: Sat, 5 Oct 2024 08:28:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f68e6ddc-3d63-4445-93eb-967b585564a4 X-Archives-Hash: 5ebde4a2d503051d0cb664496b4aaeb9 commit: d63f5075210bf225efcf59d42fab19fde4b61193 Author: Matoro Mahri matoro tk> AuthorDate: Thu Sep 5 00:46:35 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Oct 5 08:28:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d63f5075 dev-lang/python: skip tests when relevant kernel options missing Signed-off-by: Matoro Mahri matoro.tk> Closes: https://github.com/gentoo/gentoo/pull/38417 Signed-off-by: Michał Górny gentoo.org> dev-lang/python/python-3.13.0_rc3.ebuild | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/dev-lang/python/python-3.13.0_rc3.ebuild b/dev-lang/python/python-3.13.0_rc3.ebuild index 1d2b8874ca92..c50bf1ede300 100644 --- a/dev-lang/python/python-3.13.0_rc3.ebuild +++ b/dev-lang/python/python-3.13.0_rc3.ebuild @@ -7,8 +7,9 @@ LLVM_COMPAT=( 18 ) LLVM_OPTIONAL=1 WANT_LIBTOOL="none" -inherit autotools check-reqs flag-o-matic llvm-r1 multiprocessing -inherit pax-utils python-utils-r1 toolchain-funcs verify-sig +inherit autotools check-reqs flag-o-matic linux-info llvm-r1 +inherit multiprocessing pax-utils python-utils-r1 toolchain-funcs +inherit verify-sig MY_PV=${PV/_} MY_P="Python-${MY_PV%_p*}" @@ -114,6 +115,11 @@ QA_PKGCONFIG_VERSION=${PYVER} # false positives -- functions specific to *BSD QA_CONFIG_IMPL_DECL_SKIP=( chflags lchflags ) +declare -rA PYTHON_KERNEL_CHECKS=( + ["CROSS_MEMORY_ATTACH"]="test_external_inspection" #bug 938589 + ["DNOTIFY"]="test_fcntl" # bug 938662 +) + pkg_pretend() { use test && check-reqs_pkg_pretend @@ -129,6 +135,14 @@ pkg_pretend() { pkg_setup() { use jit && llvm-r1_pkg_setup use test && check-reqs_pkg_setup + if [[ "${MERGE_TYPE}" != binary ]] && { use test || use pgo; } + then + local CONFIG_CHECK + for f in "${!PYTHON_KERNEL_CHECKS[@]}"; do + CONFIG_CHECK+="~${f} " + done + linux-info_pkg_setup + fi } src_unpack() { @@ -297,6 +311,14 @@ src_configure() { ;; esac + # Kernel-config specific skips + for option in "${!PYTHON_KERNEL_CHECKS[@]}"; do + if ! linux_config_exists || ! linux_chkconfig_present "${option}" + then + COMMON_TEST_SKIPS+=( -x "${PYTHON_KERNEL_CHECKS[${option}]}" ) + fi + done + # musl-specific skips use elibc_musl && COMMON_TEST_SKIPS+=( # various musl locale deficiencies