Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-board/aisleriot/files: aisleriot-3.2.3.2-g_thread_init.patch
Date: Tue, 28 Aug 2012 18:56:59
Message-Id: 20120828185647.9312820A67@flycatcher.gentoo.org
1 tetromino 12/08/28 18:56:47
2
3 Added: aisleriot-3.2.3.2-g_thread_init.patch
4 Log:
5 Fix g_thread_init/glib-2.32 build failure (bug #432938, thanks to Oschtan).
6
7 (Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 games-board/aisleriot/files/aisleriot-3.2.3.2-g_thread_init.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/aisleriot/files/aisleriot-3.2.3.2-g_thread_init.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-board/aisleriot/files/aisleriot-3.2.3.2-g_thread_init.patch?rev=1.1&content-type=text/plain
14
15 Index: aisleriot-3.2.3.2-g_thread_init.patch
16 ===================================================================
17 From ee73ae586a307aad04f00908122f3950303153db Mon Sep 17 00:00:00 2001
18 From: Christian Persch <chpe@×××××.org>
19 Date: Wed, 5 Oct 2011 20:07:09 +0200
20 Subject: [PATCH] Just call g_type_init
21
22 This will init gthreads, so no need to do it manually.
23 ---
24 src/lib/ar-runtime.c | 14 +++-----------
25 1 file changed, 3 insertions(+), 11 deletions(-)
26
27 diff --git a/src/lib/ar-runtime.c b/src/lib/ar-runtime.c
28 index eeff9f9..f51766f 100644
29 --- a/src/lib/ar-runtime.c
30 +++ b/src/lib/ar-runtime.c
31 @@ -286,17 +286,9 @@ ar_runtime_init (const char *name)
32 }
33 #endif /* G_OS_WIN32 */
34
35 -#if defined(HAVE_GNOME) || defined(HAVE_RSVG_GNOMEVFS) || defined(ENABLE_SOUND)
36 - /* If we're going to use gconf, gnome-vfs, or canberra, we need to
37 - * init threads; and this has to be done before calling any other glib functions.
38 - */
39 -#if defined(LIBGAMES_SUPPORT_GI)
40 - /* Seed has already called g_thread_init() */
41 - g_assert (g_thread_get_initialized());
42 -#else
43 - g_thread_init (NULL);
44 -#endif
45 -#endif
46 + /* This also initialises gthread */
47 + g_type_init ();
48 +
49 /* May call any glib function after this point */
50
51 ar_profilestart ("ar_runtime_init");
52 --
53 1.7.12