commit:     87fe7688480db245fa772b2f750259ea6213c266
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 16 05:50:52 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 16 05:55:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87fe7688

sys-libs/libblockdev: depend on dev-python/pygobject

libblockdev installs gi.BlockDev which itself imports various bits from gi.

If pygobject isn't installed, then this is the sole package providing
anything for the 'gi' module, which confuses import checks - let alone the fact
it's installing a file which is unimportable.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{libblockdev-3.0.2.ebuild => libblockdev-3.0.2-r1.ebuild}          | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-libs/libblockdev/libblockdev-3.0.2.ebuild 
b/sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild
similarity index 97%
rename from sys-libs/libblockdev/libblockdev-3.0.2.ebuild
rename to sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild
index f1cf573a4058..3c1005c34b8a 100644
--- a/sys-libs/libblockdev/libblockdev-3.0.2.ebuild
+++ b/sys-libs/libblockdev/libblockdev-3.0.2-r1.ebuild
@@ -48,6 +48,9 @@ RDEPEND="
        )
        nvme? ( sys-libs/libnvme )
        ${PYTHON_DEPS}
+       $(python_gen_cond_dep '
+               dev-python/pygobject:3[${PYTHON_USEDEP}]
+       ')
 "
 
 DEPEND="

Reply via email to