commit:     eaad88dabfde0d53d9740871962527b3cfb5837d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 11 08:50:28 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 11 08:50:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaad88da

app-emulation/qemu-guest-agent: add distlib BDEPEND

Closes: https://bugs.gentoo.org/960943
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild | 9 ++++++++-
 app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild | 7 +++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild 
b/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild
index d9988b5cbf5e..cee1d47b41d3 100644
--- a/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild
+++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-8.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -24,6 +24,9 @@ RDEPEND="dev-libs/glib"
 DEPEND="${RDEPEND}"
 BDEPEND="
        ${PYTHON_DEPS}
+       $(python_gen_any_dep '
+               dev-python/distlib[${PYTHON_USEDEP}]
+       ')
        dev-lang/perl
        app-alternatives/ninja
 "
@@ -32,6 +35,10 @@ PATCHES=(
        "${FILESDIR}"/qemu-8.1.0-find-sphinx.patch
 )
 
+python_check_deps() {
+       python_has_version "dev-python/distlib[${PYTHON_USEDEP}]"
+}
+
 src_configure() {
        tc-export AR LD OBJCOPY RANLIB
 

diff --git a/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild 
b/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild
index 75d0e3f000d6..cee1d47b41d3 100644
--- a/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild
+++ b/app-emulation/qemu-guest-agent/qemu-guest-agent-9.2.0.ebuild
@@ -24,6 +24,9 @@ RDEPEND="dev-libs/glib"
 DEPEND="${RDEPEND}"
 BDEPEND="
        ${PYTHON_DEPS}
+       $(python_gen_any_dep '
+               dev-python/distlib[${PYTHON_USEDEP}]
+       ')
        dev-lang/perl
        app-alternatives/ninja
 "
@@ -32,6 +35,10 @@ PATCHES=(
        "${FILESDIR}"/qemu-8.1.0-find-sphinx.patch
 )
 
+python_check_deps() {
+       python_has_version "dev-python/distlib[${PYTHON_USEDEP}]"
+}
+
 src_configure() {
        tc-export AR LD OBJCOPY RANLIB
 

Reply via email to