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 AD5B71581D3 for ; Tue, 28 May 2024 01:59:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 010DF2BC019; Tue, 28 May 2024 01:59:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D90B02BC019 for ; Tue, 28 May 2024 01:59:08 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BC4B134301E for ; Tue, 28 May 2024 01:59:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1EB8212CF for ; Tue, 28 May 2024 01:59:06 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1716861081.bba723505f488b52bd593869b5b9a0df096ffbb4.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/libvirt/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/libvirt/libvirt-10.0.0-r2.ebuild app-emulation/libvirt/libvirt-10.1.0-r1.ebuild app-emulation/libvirt/libvirt-10.2.0.ebuild app-emulation/libvirt/libvirt-10.3.0-r1.ebuild app-emulation/libvirt/libvirt-9999.ebuild X-VCS-Directories: app-emulation/libvirt/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bba723505f488b52bd593869b5b9a0df096ffbb4 X-VCS-Branch: master Date: Tue, 28 May 2024 01:59:06 +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: 2d1839eb-a814-4070-8bdf-0c891a5b3d31 X-Archives-Hash: 3ca136853656b475ccdb2825c10eef33 commit: bba723505f488b52bd593869b5b9a0df096ffbb4 Author: Michal Privoznik gmail com> AuthorDate: Sat May 25 16:40:56 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue May 28 01:51:21 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bba72350 app-emulation/libvirt: Drag in dev-python/pytest As of its upstream commit v9.10.0-rc1~114 libvirt introduced its own RPC generator written in python and also some tests for it. But these require pytest. Therefore, generate corresponding dependency if running tests. Closes: https://bugs.gentoo.org/932652 Signed-off-by: Michal Privoznik gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36814 Signed-off-by: Sam James gentoo.org> app-emulation/libvirt/libvirt-10.0.0-r2.ebuild | 10 ++++++++++ app-emulation/libvirt/libvirt-10.1.0-r1.ebuild | 10 ++++++++++ app-emulation/libvirt/libvirt-10.2.0.ebuild | 10 ++++++++++ app-emulation/libvirt/libvirt-10.3.0-r1.ebuild | 10 ++++++++++ app-emulation/libvirt/libvirt-9999.ebuild | 10 ++++++++++ 5 files changed, 50 insertions(+) diff --git a/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild b/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild index baf260598704..6ef0ed221ed8 100644 --- a/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild +++ b/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild @@ -136,6 +136,11 @@ DEPEND=" ${BDEPEND} ${RDEPEND} ${PYTHON_DEPS} + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) " # The 'circular' dependency on dev-python/libvirt-python is because of # virt-qemu-qmp-proxy. @@ -151,6 +156,11 @@ PATCHES=( "${FILESDIR}"/${PN}-10.2.0-remote-check-for-negative-array-lengths-before-alloc.patch ) +python_check_deps() { + use test && python_has_version -d "dev-python/pytest[${PYTHON_USEDEP}]" + return 0 +} + pkg_setup() { # Check kernel configuration: CONFIG_CHECK="" diff --git a/app-emulation/libvirt/libvirt-10.1.0-r1.ebuild b/app-emulation/libvirt/libvirt-10.1.0-r1.ebuild index 128f76475972..09744fc00680 100644 --- a/app-emulation/libvirt/libvirt-10.1.0-r1.ebuild +++ b/app-emulation/libvirt/libvirt-10.1.0-r1.ebuild @@ -136,6 +136,11 @@ DEPEND=" ${BDEPEND} ${RDEPEND} ${PYTHON_DEPS} + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) " # The 'circular' dependency on dev-python/libvirt-python is because of # virt-qemu-qmp-proxy. @@ -150,6 +155,11 @@ PATCHES=( "${FILESDIR}"/${PN}-10.2.0-remote-check-for-negative-array-lengths-before-alloc.patch ) +python_check_deps() { + use test && python_has_version -d "dev-python/pytest[${PYTHON_USEDEP}]" + return 0 +} + pkg_setup() { # Check kernel configuration: CONFIG_CHECK="" diff --git a/app-emulation/libvirt/libvirt-10.2.0.ebuild b/app-emulation/libvirt/libvirt-10.2.0.ebuild index f1c08714d713..b02aa7c5b956 100644 --- a/app-emulation/libvirt/libvirt-10.2.0.ebuild +++ b/app-emulation/libvirt/libvirt-10.2.0.ebuild @@ -136,6 +136,11 @@ DEPEND=" ${BDEPEND} ${RDEPEND} ${PYTHON_DEPS} + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) " # The 'circular' dependency on dev-python/libvirt-python is because of # virt-qemu-qmp-proxy. @@ -149,6 +154,11 @@ PATCHES=( "${FILESDIR}"/${PN}-9.6.0-fix-paths-for-apparmor.patch ) +python_check_deps() { + use test && python_has_version -d "dev-python/pytest[${PYTHON_USEDEP}]" + return 0 +} + pkg_setup() { # Check kernel configuration: CONFIG_CHECK="" diff --git a/app-emulation/libvirt/libvirt-10.3.0-r1.ebuild b/app-emulation/libvirt/libvirt-10.3.0-r1.ebuild index 5a6a2ae58357..8a163a2b46ac 100644 --- a/app-emulation/libvirt/libvirt-10.3.0-r1.ebuild +++ b/app-emulation/libvirt/libvirt-10.3.0-r1.ebuild @@ -136,6 +136,11 @@ DEPEND=" ${BDEPEND} ${RDEPEND} ${PYTHON_DEPS} + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) " # The 'circular' dependency on dev-python/libvirt-python is because of # virt-qemu-qmp-proxy. @@ -150,6 +155,11 @@ PATCHES=( "${FILESDIR}"/${PN}-10.3.0-vsh-Don-t-init-history-in-cmdComplete.patch ) +python_check_deps() { + use test && python_has_version -d "dev-python/pytest[${PYTHON_USEDEP}]" + return 0 +} + pkg_setup() { # Check kernel configuration: CONFIG_CHECK="" diff --git a/app-emulation/libvirt/libvirt-9999.ebuild b/app-emulation/libvirt/libvirt-9999.ebuild index f1c08714d713..b02aa7c5b956 100644 --- a/app-emulation/libvirt/libvirt-9999.ebuild +++ b/app-emulation/libvirt/libvirt-9999.ebuild @@ -136,6 +136,11 @@ DEPEND=" ${BDEPEND} ${RDEPEND} ${PYTHON_DEPS} + test? ( + $(python_gen_any_dep ' + dev-python/pytest[${PYTHON_USEDEP}] + ') + ) " # The 'circular' dependency on dev-python/libvirt-python is because of # virt-qemu-qmp-proxy. @@ -149,6 +154,11 @@ PATCHES=( "${FILESDIR}"/${PN}-9.6.0-fix-paths-for-apparmor.patch ) +python_check_deps() { + use test && python_has_version -d "dev-python/pytest[${PYTHON_USEDEP}]" + return 0 +} + pkg_setup() { # Check kernel configuration: CONFIG_CHECK=""