diff options
author | Koen Kooi <koen@openembedded.org> | 2009-10-02 16:50:18 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-10-02 16:50:41 +0200 |
commit | 77e13af5e317d5950d647f7e7ce002d651ff947a (patch) | |
tree | 280d308f63a839f9ac0a14cc61f105632302187f /recipes/glib-2.0/glib-2.0-2.22.0 | |
parent | 80891610ead222418a20a358b7bdb892fa676546 (diff) |
glib-2.0: update to 2.22.1
Diffstat (limited to 'recipes/glib-2.0/glib-2.0-2.22.0')
-rw-r--r-- | recipes/glib-2.0/glib-2.0-2.22.0/atomic-thumb.patch | 42 | ||||
-rw-r--r-- | recipes/glib-2.0/glib-2.0-2.22.0/bug-556515.patch | 34 | ||||
-rw-r--r-- | recipes/glib-2.0/glib-2.0-2.22.0/configure-libtool.patch | 34 | ||||
-rw-r--r-- | recipes/glib-2.0/glib-2.0-2.22.0/gobject.patch | 99 |
4 files changed, 0 insertions, 209 deletions
diff --git a/recipes/glib-2.0/glib-2.0-2.22.0/atomic-thumb.patch b/recipes/glib-2.0/glib-2.0-2.22.0/atomic-thumb.patch deleted file mode 100644 index d7aa08821f..0000000000 --- a/recipes/glib-2.0/glib-2.0-2.22.0/atomic-thumb.patch +++ /dev/null @@ -1,42 +0,0 @@ -# gatomic.c uses SWP, which doesn't work in Thumb mode. -# Put that source file into a separate convenience library which is always built as ARM. - -Index: glib-2.18.1/glib/Makefile.am -=================================================================== ---- glib-2.18.1/glib/Makefile.am 2008-09-18 00:33:57.000000000 +0200 -+++ glib-2.18.1/glib/Makefile.am 2008-11-08 10:13:27.000000000 +0100 -@@ -80,6 +80,7 @@ - galiasdef.c - - lib_LTLIBRARIES = libglib-2.0.la -+noinst_LTLIBRARIES = libgatomic.la - - if OS_WIN32_AND_DLL_COMPILATION - if MS_LIB_AVAILABLE -@@ -96,10 +97,14 @@ - uninstall-ms-lib: - $(uninstall_ms_lib_cmd) - -+libgatomic_la_CFLAGS = $(CFLAGS) -mno-thumb -+ -+libgatomic_la_SOURCES = \ -+ gatomic.c -+ - libglib_2_0_la_SOURCES = \ - garray.c \ - gasyncqueue.c \ -- gatomic.c \ - gbacktrace.c \ - gbase64.c \ - gbookmarkfile.c \ -@@ -286,8 +291,8 @@ - pcre_inc = - endif - --libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib) --libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def) -+libglib_2_0_la_LIBADD = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ @ICONV_LIBS@ @G_LIBS_EXTRA@ $(pcre_lib) libgatomic.la -+libglib_2_0_la_DEPENDENCIES = libcharset/libcharset.la $(printf_la) @GIO@ @GSPAWN@ @PLATFORMDEP@ $(glib_win32_res) $(glib_def) libgatomic.la - - libglib_2_0_la_LDFLAGS = \ - $(glib_win32_res_ldflag) \ diff --git a/recipes/glib-2.0/glib-2.0-2.22.0/bug-556515.patch b/recipes/glib-2.0/glib-2.0-2.22.0/bug-556515.patch deleted file mode 100644 index b03a0afb3f..0000000000 --- a/recipes/glib-2.0/glib-2.0-2.22.0/bug-556515.patch +++ /dev/null @@ -1,34 +0,0 @@ ---- /tmp/gobject.c 2009-09-23 10:02:19.000000000 +0200 -+++ glib-2.21.6/gobject/gobject.c 2009-09-23 14:52:46.000000000 +0200 -@@ -2377,14 +2376,15 @@ - - /* here we want to atomically do: if (ref_count>1) { ref_count--; return; } */ - retry_atomic_decrement1: -- old_ref = g_atomic_int_get (&object->ref_count); -+ old_ref = g_atomic_int_get ((int *)&object->ref_count); - if (old_ref > 1) - { -+ gboolean do_toggle_ref_notify = (old_ref == 2 && OBJECT_HAS_TOGGLE_REF (object)); - if (!g_atomic_int_compare_and_exchange ((int *)&object->ref_count, old_ref, old_ref - 1)) - goto retry_atomic_decrement1; - - /* if we went from 2->1 we need to notify toggle refs if any */ -- if (old_ref == 2 && OBJECT_HAS_TOGGLE_REF (object)) -+ if (do_toggle_ref_notify) - toggle_refs_notify (object, TRUE); - } - else -@@ -2397,11 +2397,12 @@ - old_ref = g_atomic_int_get ((int *)&object->ref_count); - if (old_ref > 1) - { -+ gboolean do_toggle_ref_notify = (old_ref == 2 && OBJECT_HAS_TOGGLE_REF (object)); - if (!g_atomic_int_compare_and_exchange ((int *)&object->ref_count, old_ref, old_ref - 1)) - goto retry_atomic_decrement2; - - /* if we went from 2->1 we need to notify toggle refs if any */ -- if (old_ref == 2 && OBJECT_HAS_TOGGLE_REF (object)) -+ if (do_toggle_ref_notify) - toggle_refs_notify (object, TRUE); - - return; diff --git a/recipes/glib-2.0/glib-2.0-2.22.0/configure-libtool.patch b/recipes/glib-2.0/glib-2.0-2.22.0/configure-libtool.patch deleted file mode 100644 index 3ba79b8986..0000000000 --- a/recipes/glib-2.0/glib-2.0-2.22.0/configure-libtool.patch +++ /dev/null @@ -1,34 +0,0 @@ -# Poky renames libtool to $host_alias-libtool. -# ./$host_alias-libtool isn't created until after configure runs with libtool >= 2.2.2 -# so we can't call # it at this point. We can safely assume a version is available -# from PATH though - ---- glib-2.12.10/configure.in.orig 2006-06-05 13:34:08.000000000 +0100 -+++ glib-2.12.10/configure.in 2006-06-05 13:34:36.000000000 +0100 -@@ -1174,7 +1174,7 @@ - G_MODULE_LDFLAGS= - else - export SED -- G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` -+ G_MODULE_LDFLAGS=`($host_alias-libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh` - fi - dnl G_MODULE_IMPL= don't reset, so cmd-line can override - G_MODULE_NEED_USCORE=0 -@@ -1265,7 +1265,7 @@ - LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS" - dnl *** check for OSF1/5.0 RTLD_GLOBAL brokenness - echo "void glib_plugin_test(void) { }" > plugin.c -- ${SHELL} ./libtool --mode=compile ${CC} -shared \ -+ ${SHELL} $host_alias-libtool --mode=compile ${CC} -shared \ - -export-dynamic -o plugin.o plugin.c 2>&1 >/dev/null - AC_CACHE_CHECK([for RTLD_GLOBAL brokenness], - glib_cv_rtldglobal_broken,[ -@@ -1339,7 +1339,7 @@ - - AC_MSG_CHECKING(for the suffix of shared libraries) - export SED --shrext_cmds=`./libtool --config | grep '^shrext_cmds='` -+shrext_cmds=`$host_alias-libtool --config | grep '^shrext_cmds='` - eval $shrext_cmds - module=yes eval std_shrext=$shrext_cmds - # chop the initial dot diff --git a/recipes/glib-2.0/glib-2.0-2.22.0/gobject.patch b/recipes/glib-2.0/glib-2.0-2.22.0/gobject.patch deleted file mode 100644 index d9c7b7e791..0000000000 --- a/recipes/glib-2.0/glib-2.0-2.22.0/gobject.patch +++ /dev/null @@ -1,99 +0,0 @@ -diff --git a/gobject/gobject.c b/gobject/gobject.c -index 454d8c2..60c502b 100644 ---- a/gobject/gobject.c -+++ b/gobject/gobject.c -@@ -182,7 +182,7 @@ static GQuark quark_closure_array = 0; - static GQuark quark_weak_refs = 0; - static GQuark quark_toggle_refs = 0; - static GParamSpecPool *pspec_pool = NULL; --static GObjectNotifyContext property_notify_context = { 0, }; -+static GObjectNotifyContext property_notify_context = { G_STATIC_PRIVATE_INIT, }; - static gulong gobject_signals[LAST_SIGNAL] = { 0, }; - static guint (*floating_flag_handler) (GObject*, gint) = object_floating_flag_handler; - G_LOCK_DEFINE_STATIC (construction_mutex); -@@ -321,7 +321,6 @@ g_object_do_class_init (GObjectClass *class) - quark_weak_refs = g_quark_from_static_string ("GObject-weak-references"); - quark_toggle_refs = g_quark_from_static_string ("GObject-toggle-references"); - pspec_pool = g_param_spec_pool_new (TRUE); -- property_notify_context.quark_notify_queue = g_quark_from_static_string ("GObject-notify-queue"); - property_notify_context.dispatcher = g_object_notify_dispatcher; - - class->constructor = g_object_constructor; -diff --git a/gobject/gobjectnotifyqueue.c b/gobject/gobjectnotifyqueue.c -index 1d5787b..173a8ed 100644 ---- a/gobject/gobjectnotifyqueue.c -+++ b/gobject/gobjectnotifyqueue.c -@@ -38,7 +38,7 @@ typedef void (*GObjectNotifyQueueDispatcher) (GObject *object, - /* --- structures --- */ - struct _GObjectNotifyContext - { -- GQuark quark_notify_queue; -+ GStaticPrivate key_notify_objects; - GObjectNotifyQueueDispatcher dispatcher; - GTrashStack *_nqueue_trash; /* unused */ - }; -@@ -68,16 +68,27 @@ static inline GObjectNotifyQueue* - g_object_notify_queue_freeze (GObject *object, - GObjectNotifyContext *context) - { -+ GHashTable *objects; - GObjectNotifyQueue *nqueue; - -- nqueue = g_datalist_id_get_data (&object->qdata, context->quark_notify_queue); -+ objects = g_static_private_get (&context->key_notify_objects); -+ if (!objects) -+ { -+ objects = g_hash_table_new_full (g_direct_hash, g_direct_equal, -+ NULL, g_object_notify_queue_free); -+ -+ g_static_private_set (&context->key_notify_objects, objects, -+ (GDestroyNotify) g_hash_table_unref); -+ } -+ -+ nqueue = g_hash_table_lookup (objects, object); - if (!nqueue) - { - nqueue = (void*) g_list_alloc (); - memset (nqueue, 0, sizeof (*nqueue)); - nqueue->context = context; -- g_datalist_id_set_data_full (&object->qdata, context->quark_notify_queue, -- nqueue, g_object_notify_queue_free); -+ -+ g_hash_table_insert (objects, object, nqueue); - } - - g_return_val_if_fail (nqueue->freeze_count < 65535, nqueue); -@@ -94,6 +105,7 @@ g_object_notify_queue_thaw (GObject *object, - GParamSpec *pspecs_mem[16], **pspecs, **free_me = NULL; - GSList *slist; - guint n_pspecs = 0; -+ GHashTable *objects; - - g_return_if_fail (nqueue->freeze_count > 0); - -@@ -119,7 +131,10 @@ g_object_notify_queue_thaw (GObject *object, - - pspecs[n_pspecs++] = pspec; - } -- g_datalist_id_set_data (&object->qdata, context->quark_notify_queue, NULL); -+ objects = g_static_private_get (&context->key_notify_objects); -+ g_hash_table_remove (objects, object); -+ if (g_hash_table_size (objects) == 0) -+ g_static_private_set (&context->key_notify_objects, NULL, NULL); - - if (n_pspecs) - context->dispatcher (object, n_pspecs, pspecs); -@@ -162,7 +177,13 @@ static inline GObjectNotifyQueue* - g_object_notify_queue_from_object (GObject *object, - GObjectNotifyContext *context) - { -- return g_datalist_id_get_data (&object->qdata, context->quark_notify_queue); -+ GHashTable *objects; -+ -+ objects = g_static_private_get (&context->key_notify_objects); -+ if (objects == NULL) -+ return NULL; -+ -+ return g_hash_table_lookup (objects, object); - } - |