diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-16 04:21:27 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-16 04:21:27 +0800 |
commit | fa325b6768fae55a7fc94e01885ab7298850b1b0 (patch) | |
tree | e1bb63a92f859654cf588de455ec4d78fea6bdbc | |
parent | 3df770896c4b6f03e721531150adeefe2245d64b (diff) | |
download | marcuscom-ports-fa325b6768fae55a7fc94e01885ab7298850b1b0.tar marcuscom-ports-fa325b6768fae55a7fc94e01885ab7298850b1b0.tar.gz marcuscom-ports-fa325b6768fae55a7fc94e01885ab7298850b1b0.tar.bz2 marcuscom-ports-fa325b6768fae55a7fc94e01885ab7298850b1b0.tar.lz marcuscom-ports-fa325b6768fae55a7fc94e01885ab7298850b1b0.tar.xz marcuscom-ports-fa325b6768fae55a7fc94e01885ab7298850b1b0.tar.zst marcuscom-ports-fa325b6768fae55a7fc94e01885ab7298850b1b0.zip |
- Update to 2.11.1
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6259 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | devel/glib20/Makefile | 6 | ||||
-rw-r--r-- | devel/glib20/distinfo | 6 | ||||
-rw-r--r-- | devel/glib20/files/patch-glib_gthread.c | 28 | ||||
-rw-r--r-- | devel/glib20/files/patch-gthread_gthread-impl.c | 185 |
4 files changed, 6 insertions, 219 deletions
diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile index e0940e202..a2e20f5aa 100644 --- a/devel/glib20/Makefile +++ b/devel/glib20/Makefile @@ -2,12 +2,12 @@ # Date Created: 28 July 1998 # Whom: Vanilla I. Shu <vanilla@FreeBSD.org> # -# $FreeBSD: ports/devel/glib20/Makefile,v 1.121 2006/04/30 00:46:47 marcus Exp $ -# $MCom: ports/devel/glib20/Makefile,v 1.77 2006/05/04 05:40:27 marcus Exp $ +# $FreeBSD$ +# $MCom: ports/devel/glib20/Makefile,v 1.78 2006/05/12 18:05:38 marcus Exp $ # PORTNAME= glib -PORTVERSION= 2.11.0 +PORTVERSION= 2.11.1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNOME:S,%SUBDIR%,sources/${PORTNAME}/2.11,} \ ftp://ftp.gtk.org/pub/gtk/v${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}/ \ diff --git a/devel/glib20/distinfo b/devel/glib20/distinfo index 62078dc30..3115b69fc 100644 --- a/devel/glib20/distinfo +++ b/devel/glib20/distinfo @@ -1,3 +1,3 @@ -MD5 (gnome2/glib-2.11.0.tar.bz2) = 5cbfb9d8279d7bf26d13b3ca52c9a570 -SHA256 (gnome2/glib-2.11.0.tar.bz2) = ba4206fb449f5ff4f2e778a5258acd85bbdfc33ea303a1cb99bb41b439e9d0ca -SIZE (gnome2/glib-2.11.0.tar.bz2) = 2836295 +MD5 (gnome2/glib-2.11.1.tar.bz2) = 3655de1e252f3028fff862347a624808 +SHA256 (gnome2/glib-2.11.1.tar.bz2) = de386083f0c790c56c8dc0da7b3109ddb2b4b970d9dcc7b1bf7754bcffa4c530 +SIZE (gnome2/glib-2.11.1.tar.bz2) = 2847382 diff --git a/devel/glib20/files/patch-glib_gthread.c b/devel/glib20/files/patch-glib_gthread.c deleted file mode 100644 index 1dce08388..000000000 --- a/devel/glib20/files/patch-glib_gthread.c +++ /dev/null @@ -1,28 +0,0 @@ ---- glib/gthread.c.orig Mon Mar 14 05:02:07 2005 -+++ glib/gthread.c Wed Jul 20 19:44:08 2005 -@@ -42,24 +42,8 @@ - - #include "glib.h" - #include "gthreadinit.h" -+#include "gthreadprivate.h" - #include "galias.h" -- --#if GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P --# define g_system_thread_equal_simple(thread1, thread2) \ -- ((thread1).dummy_pointer == (thread2).dummy_pointer) --# define g_system_thread_assign(dest, src) \ -- ((dest).dummy_pointer = (src).dummy_pointer) --#else /* GLIB_SIZEOF_SYSTEM_THREAD != SIZEOF_VOID_P */ --# define g_system_thread_equal_simple(thread1, thread2) \ -- (memcmp (&(thread1), &(thread2), GLIB_SIZEOF_SYSTEM_THREAD) == 0) --# define g_system_thread_assign(dest, src) \ -- (memcpy (&(dest), &(src), GLIB_SIZEOF_SYSTEM_THREAD)) --#endif /* GLIB_SIZEOF_SYSTEM_THREAD == SIZEOF_VOID_P */ -- --#define g_system_thread_equal(thread1, thread2) \ -- (g_thread_functions_for_glib_use.thread_equal ? \ -- g_thread_functions_for_glib_use.thread_equal (&(thread1), &(thread2)) :\ -- g_system_thread_equal_simple((thread1), (thread2))) - - GQuark - g_thread_error_quark (void) diff --git a/devel/glib20/files/patch-gthread_gthread-impl.c b/devel/glib20/files/patch-gthread_gthread-impl.c deleted file mode 100644 index 5f1b6dcbd..000000000 --- a/devel/glib20/files/patch-gthread_gthread-impl.c +++ /dev/null @@ -1,185 +0,0 @@ ---- gthread/gthread-impl.c.orig Fri Feb 14 16:08:46 2003 -+++ gthread/gthread-impl.c Wed Jul 20 19:44:08 2005 -@@ -37,9 +37,11 @@ - - #include <glib.h> - #include <gthreadinit.h> -+#include "gthreadprivate.h" - - #ifdef G_THREADS_ENABLED - -+static GSystemThread zero_thread; /* This is initialized to all zero */ - static gboolean thread_system_already_initialized = FALSE; - static gint g_thread_priority_map [G_THREAD_PRIORITY_URGENT + 1]; - -@@ -76,7 +78,7 @@ - struct _ErrorCheckInfo - { - gchar *location; -- GThread *owner; -+ GSystemThread owner; - }; - - static GMutex * -@@ -94,7 +96,9 @@ - gchar *location) - { - ErrorCheckInfo *info; -- GThread *self = g_thread_self (); -+ GSystemThread self; -+ -+ g_thread_functions_for_glib_use.thread_self (&self); - - if (magic != G_MUTEX_DEBUG_MAGIC) - location = "unknown"; -@@ -116,14 +120,14 @@ - } - - info = G_MUTEX_DEBUG_INFO (mutex); -- if (info->owner == self) -+ if (g_system_thread_equal (info->owner, self)) - g_error ("Trying to recursivly lock a mutex at '%s', " - "previously locked at '%s'", - location, info->location); - - g_thread_functions_for_glib_use_default.mutex_lock (mutex); - -- info->owner = self; -+ g_system_thread_assign (info->owner, self); - info->location = location; - } - -@@ -133,7 +137,9 @@ - gchar *location) - { - ErrorCheckInfo *info = G_MUTEX_DEBUG_INFO (mutex); -- GThread *self = g_thread_self (); -+ GSystemThread self; -+ -+ g_thread_functions_for_glib_use.thread_self (&self); - - if (magic != G_MUTEX_DEBUG_MAGIC) - location = "unknown"; -@@ -145,7 +151,7 @@ - return TRUE; - } - -- if (info->owner == self) -+ if (g_system_thread_equal (info->owner, self)) - g_error ("Trying to recursivly lock a mutex at '%s', " - "previously locked at '%s'", - location, info->location); -@@ -153,7 +159,7 @@ - if (!g_thread_functions_for_glib_use_default.mutex_trylock (mutex)) - return FALSE; - -- info->owner = self; -+ g_system_thread_assign (info->owner, self); - info->location = location; - - return TRUE; -@@ -165,20 +171,22 @@ - gchar *location) - { - ErrorCheckInfo *info = G_MUTEX_DEBUG_INFO (mutex); -- GThread *self = g_thread_self (); -+ GSystemThread self; -+ -+ g_thread_functions_for_glib_use.thread_self (&self); - - if (magic != G_MUTEX_DEBUG_MAGIC) - location = "unknown"; - -- if (!info || info->owner == NULL) -+ if (!info || g_system_thread_equal (info->owner, zero_thread)) - g_error ("Trying to unlock an unlocked mutex at '%s'", location); - -- if (info->owner != self) -+ if (!g_system_thread_equal (info->owner, self)) - g_warning ("Trying to unlock a mutex at '%s', " - "previously locked by a different thread at '%s'", - location, info->location); - -- info->owner = NULL; -+ g_system_thread_assign (info->owner, zero_thread); - info->location = NULL; - - g_thread_functions_for_glib_use_default.mutex_unlock (mutex); -@@ -194,7 +202,7 @@ - if (magic != G_MUTEX_DEBUG_MAGIC) - location = "unknown"; - -- if (info && info->owner != NULL) -+ if (info && !g_system_thread_equal (info->owner, zero_thread)) - g_error ("Trying to free a locked mutex at '%s', " - "which was previously locked at '%s'", - location, info->location); -@@ -211,25 +219,27 @@ - { - - ErrorCheckInfo *info = G_MUTEX_DEBUG_INFO (mutex); -- GThread *self = g_thread_self (); -+ GSystemThread self; -+ -+ g_thread_functions_for_glib_use.thread_self (&self); - - if (magic != G_MUTEX_DEBUG_MAGIC) - location = "unknown"; - -- if (!info || info->owner == NULL) -+ if (!info || g_system_thread_equal (info->owner, zero_thread)) - g_error ("Trying to use an unlocked mutex in g_cond_wait() at '%s'", - location); - -- if (info->owner != self) -+ if (!g_system_thread_equal (info->owner, self)) - g_error ("Trying to use a mutex locked by another thread in " - "g_cond_wait() at '%s'", location); - -- info->owner = NULL; -+ g_system_thread_assign (info->owner, zero_thread); - location = info->location; - - g_thread_functions_for_glib_use_default.cond_wait (cond, mutex); - -- info->owner = self; -+ g_system_thread_assign (info->owner, self); - info->location = location; - } - -@@ -242,28 +252,30 @@ - gchar *location) - { - ErrorCheckInfo *info = G_MUTEX_DEBUG_INFO (mutex); -- GThread *self = g_thread_self (); -+ GSystemThread self; - gboolean retval; - -+ g_thread_functions_for_glib_use.thread_self (&self); -+ - if (magic != G_MUTEX_DEBUG_MAGIC) - location = "unknown"; - -- if (!info || info->owner == NULL) -+ if (!info || g_system_thread_equal (info->owner, zero_thread)) - g_error ("Trying to use an unlocked mutex in g_cond_timed_wait() at '%s'", - location); - -- if (info->owner != self) -+ if (!g_system_thread_equal (info->owner, self)) - g_error ("Trying to use a mutex locked by another thread in " - "g_cond_timed_wait() at '%s'", location); - -- info->owner = NULL; -+ g_system_thread_assign (info->owner, zero_thread); - location = info->location; - - retval = g_thread_functions_for_glib_use_default.cond_timed_wait (cond, - mutex, - end_time); - -- info->owner = self; -+ g_system_thread_assign (info->owner, self); - info->location = location; - - return retval; |