Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

getting rid of GObject Introspection, vala

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
xanderal
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 133
Joined: Wed Mar 06, 2019 4:35 am
Location: Germany

getting rid of GObject Introspection, vala

  • Quote

Post by xanderal » Wed Nov 06, 2019 12:50 pm

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.
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

  • Quote

Post by charles17 » Wed Nov 06, 2019 2:19 pm

No problem here with

Code: Select all

# Global USE flags
*/* -bluetooth -dbus -introspection -ldap -libnotify -nls -pam -udisks
But

Code: Select all

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

Code: Select all

DEPEND="${RDEPEND}
	dev-libs/gobject-introspection-common
	dev-libs/vala-common
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Wed Nov 06, 2019 4:06 pm

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: Select all

/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.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
xanderal
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 133
Joined: Wed Mar 06, 2019 4:35 am
Location: Germany

  • Quote

Post by xanderal » Fri Nov 08, 2019 2:49 pm

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?
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Fri Nov 08, 2019 3:41 pm

Well https://en.wikipedia.org/wiki/GObject#G ... rospection
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.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
trickygnome
n00b
n00b
User avatar
Posts: 30
Joined: Wed May 17, 2017 7:22 pm

  • Quote

Post by trickygnome » Tue May 13, 2025 12:51 pm

I faced bug when compiling "dev-libs/gobject-introspection" with python_single_target_python3_12
So I just disabled it at globally with this:

Code: Select all

USE="-introspection"
and in file "/etc/portage/package.use/notmuch" I set:

Code: Select all

dev-libs/gmime -vala

But I got error for "dev-libs/gmime-3.2.14" that I need for Notmuch to work[/quote]:

Code: Select all

Couldn't find include 'GObject-2.0.gir' (search path: '['.', '/var/tmp/portage/dev-libs/gmime-3.2.14/homedir/.local/share/gir-1.0', 'gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
make[3]: *** [/usr/share/gobject-introspection-1.0/Makefile.introspection:156: GMime-3.0.gir] Error 1
make[3]: Leaving directory '/var/tmp/portage/dev-libs/gmime-3.2.14/work/gmime-3.2.14/gmime'
make[2]: *** [Makefile:1020: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/gmime-3.2.14/work/gmime-3.2.14/gmime'
make[1]: *** [Makefile:539: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/gmime-3.2.14/work/gmime-3.2.14'
make: *** [Makefile:446: all] Error 2
 * ERROR: dev-libs/gmime-3.2.14::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/gmime-3.2.14::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/gmime-3.2.14::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/gmime-3.2.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/gmime-3.2.14/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/gmime-3.2.14/work/gmime-3.2.14'
 * S: '/var/tmp/portage/dev-libs/gmime-3.2.14/work/gmime-3.2.14'

I unmerged notmuch, made full update and after that gmime installed without errors with notmuch.
Happy ending.
Several hours for full recompilation.
I use wpa_supplicant for WIFI, ALSA, Dracut, Sway, doas.
github.com/Anoncheg1
Top
Post Reply

6 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic