Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263197 - media-sound/moodbar: incompatible to newer GLib versions, g_thread must be initialized
Summary: media-sound/moodbar: incompatible to newer GLib versions, g_thread must be in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-21 01:36 UTC by Wolfgang Draxinger
Modified: 2009-05-09 11:20 UTC (History)
0 users

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


Attachments
simple patch the fixes the problem (moodbar-g_thread_init.patch,429 bytes, patch)
2009-03-21 01:37 UTC, Wolfgang Draxinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Draxinger 2009-03-21 01:36:23 UTC
The (old) moodbar source is incompatible to newer GLib versions: Those require the g_thread subsystem being initialized, however the moodbar standalone executable lacks doing that.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge moodbar
3. moodbar

Actual Results:  
hexarith@loki ~ $ moodbar

(process:10536): GStreamer-WARNING **: The GStreamer function gst_init_get_option_group() was
        called, but the GLib threading system has not been initialised
        yet, something that must happen before any other GLib function
        is called. The application needs to be fixed so that it calls
           if (!g_thread_supported ()) g_thread_init(NULL);
        as very first thing in its main() function. Please file a bug
        against this application.

moodbar aborts here

Expected Results:  
moodbar executing normally.

The issue can be easily fixed by applying this small patch:

diff -r -u moodbar-0.1.2/analyzer/main.c moodbar-0.1.2-patched/analyzer/main.c
--- moodbar-0.1.2/analyzer/main.c       2006-10-12 07:43:30.000000000 +0200
+++ moodbar-0.1.2-patched/analyzer/main.c       2009-03-21 01:42:52.203438900 +0100
@@ -248,6 +248,8 @@
 {
   gint tries;

+  if (!g_thread_supported ()) g_thread_init(NULL);
+
   /* Command-line parsing */
   gchar *outfile = NULL, *infile = NULL;
   gchar **array = NULL;
Comment 1 Wolfgang Draxinger 2009-03-21 01:37:45 UTC
Created attachment 185690 [details, diff]
simple patch the fixes the problem
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-05-09 11:20:01 UTC
+  09 May 2009; Samuli Suominen <ssuominen@gentoo.org> moodbar-0.1.2.ebuild,
+  +files/moodbar-0.1.2-gthread_init.patch:
+  Fix compability with new glib wrt #263197, thanks to Wolfgang Draxinger