Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685020 - sys-libs/libblockdev should conditionally depend on dev-libs/gobject-introspection
Summary: sys-libs/libblockdev should conditionally depend on dev-libs/gobject-introspe...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C)
Depends on:
Reported: 2019-05-04 04:47 UTC by Gino McCarty
Modified: 2019-06-17 14:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Gino McCarty 2019-05-04 04:47:45 UTC
libblockdev doesn't actually require gobject-introspection, its only needed for gnome based environments
here is an ebuild patch to use the "introspection" use flag.. This flag is pretty common in portage tree

--- /usr/portage/sys-libs/libblockdev/libblockdev-2.20-r2.ebuild        2019-04-17 19:35:38.448918238 -0700
+++ /usr/local/portage/sys-libs/libblockdev/libblockdev-2.20-r2.ebuild  2019-05-03 21:06:36.467237755 -0700
@@ -15,7 +15,7 @@
 KEYWORDS="alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 sparc x86"
-IUSE="bcache +cryptsetup device-mapper dmraid doc escrow lvm kbd test vdo"
+IUSE="bcache +cryptsetup device-mapper dmraid doc escrow introspection lvm kbd test vdo"

@@ -47,7 +47,7 @@
-       >=dev-libs/gobject-introspection-1.3.0
+       introspection? ( >=dev-libs/gobject-introspection-1.3.0 )
        doc? ( dev-util/gtk-doc )
@@ -74,6 +74,7 @@
+               $(use_enable introspection)
                $(use_enable test tests)
                $(use_with bcache)
                $(use_with cryptsetup crypto)
Comment 1 Larry the Git Cow gentoo-dev 2019-06-17 14:36:06 UTC
The bug has been referenced in the following commit(s):

commit 6e87617f23a8b2bd9f0b3bc3203ef79b400cc081
Author:     Lars Wendler <>
AuthorDate: 2019-06-17 14:35:50 +0000
Commit:     Lars Wendler <>
CommitDate: 2019-06-17 14:35:50 +0000

    sys-libs/libblockdev: Added "introspection" USE flag to live ebuild
    Thanks-to: Gino McCarty <>
    Package-Manager: Portage-2.3.67, Repoman-2.3.14
    Signed-off-by: Lars Wendler <>

 sys-libs/libblockdev/libblockdev-9999.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 2 Lars Wendler (Polynomial-C) gentoo-dev 2019-06-17 14:37:45 UTC
Sorry it took so long to make it into an ebuild. I've added your suggested changes into the live ebuild and will move that into the next upstream release ebuild as well.