Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in gnome-extra/evolution-webcal/files: evolution-webcal-2.32.0-g_thread_init.patch
Date: Tue, 28 Aug 2012 15:48:30
Message-Id: 20120828154759.1C5A420A42@flycatcher.gentoo.org
1 tetromino 12/08/28 15:47:59
2
3 Added: evolution-webcal-2.32.0-g_thread_init.patch
4 Log:
5 Fix build failure with glib-2.32 (bug #433040, thanks to Matthias Heizmann).
6
7 (Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 gnome-extra/evolution-webcal/files/evolution-webcal-2.32.0-g_thread_init.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/evolution-webcal/files/evolution-webcal-2.32.0-g_thread_init.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/evolution-webcal/files/evolution-webcal-2.32.0-g_thread_init.patch?rev=1.1&content-type=text/plain
14
15 Index: evolution-webcal-2.32.0-g_thread_init.patch
16 ===================================================================
17 From d5c4a098d7447df782f0f23bd9b3ff59648fdded Mon Sep 17 00:00:00 2001
18 From: Alexandre Rostovtsev <tetromino@g.o>
19 Date: Tue, 28 Aug 2012 11:17:49 -0400
20 Subject: [PATCH] Call g_thread_init() conditionally
21
22 An explicit call to g_thread_init() is not needed with >=glib-2.24, and
23 causes build failure with >=glib-2.31. Since evolution-webcal is
24 theoretically compatible with >=glib-2.8, guard the call with #ifdef
25 instead of just removing it.
26 ---
27 src/evolution-webcal-main.c | 2 ++
28 1 file changed, 2 insertions(+)
29
30 diff --git a/src/evolution-webcal-main.c b/src/evolution-webcal-main.c
31 index f675686..b6611d3 100644
32 --- a/src/evolution-webcal-main.c
33 +++ b/src/evolution-webcal-main.c
34 @@ -250,7 +250,9 @@ gint main (gint argc, gchar ** argv) {
35 textdomain (GETTEXT_PACKAGE);
36 #endif
37
38 + #if !GLIB_CHECK_VERSION(2,31,0)
39 g_thread_init (NULL);
40 + #endif
41
42 if (!gtk_init_with_args (&argc, &argv,
43 _("- Evolution webcal: URI Handler"),
44 --
45 1.7.12