Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
getting rid of GObject Introspection, vala
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
xanderal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2019
Posts: 129
Location: Germany

PostPosted: Wed Nov 06, 2019 12:50 pm    Post subject: getting rid of GObject Introspection, vala Reply with quote

Hej,
can anyone explain to my what GObject Introspection and vala do for me? I found this forum topic from 2011 and read a few articles on it but I'm still not sure why I would want this installed on my system...
I have USE="-gtk -gnome" - so why wouldn't I add -introspection and/or -vala to the mix?
Thanks in advance.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2711

PostPosted: Wed Nov 06, 2019 2:19 pm    Post subject: Reply with quote

No problem here with
/etc/portage/package.use:
# Global USE flags
*/* -bluetooth -dbus -introspection -ldap -libnotify -nls -pam -udisks

But
emerge -pvc dev-libs/gobject-introspection-common:
Calculating dependencies... done!
  dev-libs/gobject-introspection-common-1.60.2 pulled in by:
    gnome-base/librsvg-2.40.20 requires dev-libs/gobject-introspection-common
    x11-libs/gtk+-2.24.32-r1 requires dev-libs/gobject-introspection-common
    x11-libs/gtk+-3.24.10 requires dev-libs/gobject-introspection-common

There is an unconditional DEPEND on it in
https://gitweb.gentoo.org/repo/gentoo.git/tree/gnome-base/librsvg/librsvg-2.40.20.ebuild#n31:
DEPEND="${RDEPEND}
   dev-libs/gobject-introspection-common
   dev-libs/vala-common
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4303
Location: Dallas area

PostPosted: Wed Nov 06, 2019 4:06 pm    Post subject: Reply with quote

Yeah, they pull in gobject-introspection-common even when gobject-introspection is a choice, it's stupid but it's the way the devs have been doing it.
Although all it really installs is
Code:
/usr/share/aclocal/introspection.m4
/usr/share/gobject-introspection-1.0/Makefile.introspection


Having said that, I have gnome and introspection use flags set off globally, I don't worry about vala, because not a lot of packages use it and have it set on.

For the original question, introspection and vala are used by (mostly) gnome packages. So if you're not running gnome, you can global block those.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
xanderal
Tux's lil' helper
Tux's lil' helper


Joined: 06 Mar 2019
Posts: 129
Location: Germany

PostPosted: Fri Nov 08, 2019 2:49 pm    Post subject: Reply with quote

Thanks for your answers. I went ahead and added -introspection -vala. As you already mentioned I couldn't yet rid my system completely off these things.
But I still don't know what it really does for me (regardless of whether or not I can completely remove it or use it or whatever) - in the topic I referenced above:
i92guboj wrote:
But, do you know if there's something concrete that introspection has done for the users, or something that's going to provide soon or in a middle term? Is it maybe aimed to bring the mainstream desktops closer than ever and make them more compatible i.e. to reuse widgets, applets, etc. from one in the others? Is it something that adds options or functionality to gtk+ or glib based applications automatically?
[...]
Or is it just a thing for the programmers?
Did something along those lines change in the last 8 years?
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 4303
Location: Dallas area

PostPosted: Fri Nov 08, 2019 3:41 pm    Post subject: Reply with quote

Well https://en.wikipedia.org/wiki/GObject#GObject_Introspection

Quote:
Depending only on GLib and libc, GObject is a cornerstone of GNOME and is used throughout GTK, Pango, ATK, and most higher-level GNOME libraries like GStreamer and applications. Prior to GTK+ 2.0, code similar to GObject was part of the GTK codebase. (The name “GObject” was not yet in use — the common baseclass was called GtkObject.)

At the release of GTK+ 2.0, the object system was extracted into a separate library due to its general utility. In the process, most non-GUI-specific parts of the GtkObject class were moved up into GObject, the new common baseclass. Having existed as a separate library since March 11, 2002 (the release date of GTK+ 2.0), the GObject library is now used by many non-GUI programs such as command-line and server applications.


Although I've never had it on, on any system of mine, and all packages still run fine, though I don't run much gnome stuff.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.1 (no-pie & modified) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum