glib-2.0_2.26.1.bb: Patch to make is work on systems without atomics
authorKhem Raj <raj.khem@gmail.com>
Sun, 2 Jan 2011 21:05:33 +0000 (13:05 -0800)
committerKhem Raj <raj.khem@gmail.com>
Sun, 2 Jan 2011 21:06:28 +0000 (13:06 -0800)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/glib-2.0/glib-2.0-2.26.1/libglib2-fix-compilation-with-no-builtin-atomic.patch [new file with mode: 0644]
recipes/glib-2.0/glib-2.0_2.26.1.bb

diff --git a/recipes/glib-2.0/glib-2.0-2.26.1/libglib2-fix-compilation-with-no-builtin-atomic.patch b/recipes/glib-2.0/glib-2.0-2.26.1/libglib2-fix-compilation-with-no-builtin-atomic.patch
new file mode 100644 (file)
index 0000000..39c0510
--- /dev/null
@@ -0,0 +1,25 @@
+From 58096320ea0888c4fbbff318839017a4d2e82703 Mon Sep 17 00:00:00 2001
+From: Lionel Landwerlin <llandwerlin@gmail.com>
+Date: Sat, 6 Nov 2010 14:56:15 +0100
+Subject: [PATCH] glib: fix compilation with no builtin atomic operations compilers
+
+Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
+---
+ glib/gatomic.c |    1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/glib/gatomic.c b/glib/gatomic.c
+index 845c866..01468ce 100644
+--- a/glib/gatomic.c
++++ b/glib/gatomic.c
+@@ -881,6 +881,7 @@ g_atomic_pointer_compare_and_exchange (volatile gpointer G_GNUC_MAY_ALIAS *atomi
+ #endif /* DEFINE_WITH_WIN32_INTERLOCKED */
+ #ifdef DEFINE_WITH_MUTEXES
++# include "gthread.h"
+ /* We have to use the slow, but safe locking method */
+ static GMutex *g_atomic_mutex; 
+-- 
+1.7.2.3
+
index 1fa9b6a..8788258 100644 (file)
@@ -10,7 +10,7 @@ DEPENDS = "glib-2.0-native gtk-doc zlib"
 DEPENDS_virtclass-native = "gettext-native gtk-doc-native \
                             pkgconfig-native"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "\
   http://ftp.gnome.org/pub/GNOME/sources/glib/2.26/glib-${PV}.tar.bz2;name=archive \
@@ -20,6 +20,7 @@ SRC_URI = "\
   file://gatomic-proper-pointer-get-cast.patch \
   file://60_wait-longer-for-threads-to-die.patch \
   file://glib-mkenums-interpreter.patch \
+  file://libglib2-fix-compilation-with-no-builtin-atomic.patch \
 "
 
 SRC_URI[archive.md5sum] = "17535accceef55bcb17a74d73f9c2aef"