Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876226 - net-im/gajim:1.4.7 missing introspection USE for x11-libs/gtksourceview:4
Summary: net-im/gajim:1.4.7 missing introspection USE for x11-libs/gtksourceview:4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-10-08 21:52 UTC by tbartdev
Modified: 2023-05-15 20:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tbartdev 2022-10-08 21:52:25 UTC
Had x11-libs/gtksourceview:4 installed without introspection USE flag.

Gajim fails to start with

Missing dependency: Namespace GtkSource not available

As a non-dev this was pretty hard to track down as I haven't found any option of tracing to where this actually stems from in gajim (also not with pdb as it does not actually crash; maybe I did not use it correctly, not a dev, as I said). Worked my way down to gajim.py where gi.require_version() somehow rang a bell (*G*Object *I*ntrospection)

This one fixes it:

--- /usr/portage/net-im/gajim/gajim-1.4.7.ebuild	2022-09-08 08:40:49.000000000 +0200
+++ /mnt/scratch/gajim-1.4.7.ebuild	2022-10-08 23:33:57.341550433 +0200
@@ -22,7 +22,7 @@
 COMMON_DEPEND="
 	dev-libs/gobject-introspection[cairo(+)]
 	>=x11-libs/gtk+-3.22:3[introspection]
-	x11-libs/gtksourceview:4"
+	x11-libs/gtksourceview:4[introspection]"
 DEPEND="${COMMON_DEPEND}
 	app-arch/unzip
 	virtual/pkgconfig

There might be more packages needing this USE flag. I don't fully understand why all the other packages in this list work although there's only libsoup[introspection] and gtk+[introspection] in the ebuild and none of the remaining ones:

(gajim.py, line 59ff)
 59     try:
 60         gi.require_versions({'GLib': '2.0',
 61                              'Gio': '2.0',
 62                              'Gtk': '3.0',
 63                              'GtkSource': '4',
 64                              'GObject': '2.0',
 65                              'Pango': '1.0',
 66                              'Soup': '2.4'})
Comment 1 Adrian Schollmeyer 2022-12-11 10:23:11 UTC
Same problem here as well. Enabling introdspection for gtksourceview:4 fixed it.
Comment 2 Larry the Git Cow gentoo-dev 2023-05-15 20:26:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5598fa50bd775a68d6ff6222d6e8e4611bfd8dbf

commit 5598fa50bd775a68d6ff6222d6e8e4611bfd8dbf
Author:     Casper Hanegreefs <casinvictusgentoo@proton.me>
AuthorDate: 2023-05-07 07:24:11 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2023-05-15 20:26:45 +0000

    net-im/gajim: add 1.7.3
    
    Closes: https://bugs.gentoo.org/876511
    Closes: https://bugs.gentoo.org/876226
    Signed-off-by: Casper Hanegreefs <casinvictusgentoo@proton.me>
    Closes: https://github.com/gentoo/gentoo/pull/30910
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 net-im/gajim/Manifest           |  1 +
 net-im/gajim/gajim-1.7.3.ebuild | 94 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)