glib/glib.patch

changeset 769
a0926cc92e0c
parent 455
eb5f1f7ac5ff
equal deleted inserted replaced
2:80d78fe238c1 3:ae5a3ea1b8ec
1 Index: Makefile.in 1 Index: Makefile.in
2 --- Makefile.in.orig 2012-05-15 00:09:32.000000000 +0200 2 --- Makefile.in.orig 2012-05-15 00:09:32.000000000 +0200
3 +++ Makefile.in 2012-07-13 20:35:15.000000000 +0200 3 +++ Makefile.in 2012-07-13 20:35:15.000000000 +0200
4 @@ -426,7 +426,7 @@ 4 @@ -820,7 +820,7 @@
5 gio-windows-2.0.pc.in 5
6 TEST_PROGS = 6 @ENABLE_INSTALLED_TESTS_TRUE@installed_test_meta_DATA = $(installed_testcases:=.test)
7 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS} 7 ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
8 -SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs 8 -SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests
9 +SUBDIRS = . m4macros glib gmodule gthread gobject gio po 9 +SUBDIRS = . m4macros glib gmodule gthread gobject gio po
10 DIST_SUBDIRS = $(SUBDIRS) build 10 DIST_SUBDIRS = $(SUBDIRS) build
11 bin_SCRIPTS = glib-gettextize 11 bin_SCRIPTS = glib-gettextize
12 AM_CPPFLAGS = \ 12 AM_CPPFLAGS = \
13 Index: configure
14 --- configure.orig 2012-05-15 00:09:26.000000000 +0200
15 +++ configure 2012-07-13 20:35:26.000000000 +0200
16 @@ -21276,12 +21276,6 @@
17
18
19
20 -if test "x$GCC" = "xyes"; then
21 - case " $CFLAGS " in
22 - *[\ \ ]-Wall[\ \ ]*) ;;
23 - *) CFLAGS="$CFLAGS -Wall" ;;
24 - esac
25 -fi
26
27 if test "$glib_native_win32" = "yes"; then
28 if test x$enable_static = xyes -a x$enable_shared = xyes; then
29 Index: gio/Makefile.in 13 Index: gio/Makefile.in
30 --- gio/Makefile.in.orig 2012-05-15 00:09:29.000000000 +0200 14 --- gio/Makefile.in.orig 2012-05-15 00:09:29.000000000 +0200
31 +++ gio/Makefile.in 2012-07-13 20:35:15.000000000 +0200 15 +++ gio/Makefile.in 2012-07-13 20:35:15.000000000 +0200
32 @@ -482,7 +482,7 @@ 16 @@ -798,8 +798,7 @@
33 CTAGS = ctags 17 *) \
34 am__tty_colors = \ 18 b='$*';; \
35 red=; grn=; lgn=; blu=; std= 19 esac
36 -DIST_SUBDIRS = gdbus-2.0/codegen xdgmime inotify fen win32 . fam tests 20 -DIST_SUBDIRS = gdbus-2.0/codegen xdgmime inotify kqueue fen win32 . \
37 +DIST_SUBDIRS = xdgmime inotify fen win32 . fam 21 - tests fam
22 +DIST_SUBDIRS = xdgmime inotify kqueue fen win32 . fam
38 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 23 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
39 am__relativize = \ 24 am__relativize = \
40 dir0=`pwd`; \ 25 dir0=`pwd`; \
41 @@ -760,8 +760,8 @@ 26 @@ -1172,8 +1171,8 @@
42 gschema.dtd gconstructor_as_data.h $(NULL) $(completion_DATA) 27 @ENABLE_INSTALLED_TESTS_TRUE@ $(dist_test_scripts) $(dist_installed_test_scripts)
43 TEST_PROGS = 28
44 NULL = 29 @ENABLE_INSTALLED_TESTS_TRUE@installed_test_meta_DATA = $(installed_testcases:=.test)
45 -SUBDIRS = gdbus-2.0/codegen $(am__append_1) $(am__append_4) \ 30 -SUBDIRS = gdbus-2.0/codegen $(am__append_15) $(am__append_19) \
46 - $(am__append_8) $(am__append_11) . $(am__append_14) tests 31 - $(am__append_22) $(am__append_26) $(am__append_29) . tests \
47 +SUBDIRS = $(am__append_1) $(am__append_4) \ 32 +SUBDIRS = $(am__append_15) $(am__append_19) \
48 + $(am__append_8) $(am__append_11) . $(am__append_14) 33 + $(am__append_22) $(am__append_26) $(am__append_29) . \
49 @MS_LIB_AVAILABLE_TRUE@@OS_WIN32_AND_DLL_COMPILATION_TRUE@noinst_DATA = gio-2.0.lib 34 $(am__append_32)
50 @MS_LIB_AVAILABLE_TRUE@@OS_WIN32_AND_DLL_COMPILATION_TRUE@install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir) 35 @MS_LIB_AVAILABLE_TRUE@@OS_WIN32_AND_DLL_COMPILATION_TRUE@install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
51 @MS_LIB_AVAILABLE_TRUE@@OS_WIN32_AND_DLL_COMPILATION_TRUE@uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib 36 @MS_LIB_AVAILABLE_TRUE@@OS_WIN32_AND_DLL_COMPILATION_TRUE@uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
52 Index: gio/glib-compile-schemas.c 37 Index: gio/glib-compile-schemas.c
53 --- gio/glib-compile-schemas.c.orig 2012-04-13 15:39:41.000000000 +0200 38 --- gio/glib-compile-schemas.c.orig 2012-04-13 15:39:41.000000000 +0200
54 +++ gio/glib-compile-schemas.c 2012-07-13 20:35:15.000000000 +0200 39 +++ gio/glib-compile-schemas.c 2012-07-13 20:35:15.000000000 +0200
55 @@ -1530,7 +1530,7 @@ 40 @@ -1534,7 +1534,7 @@
56 } 41 }
57 /* Text {{{2 */ 42 /* Text {{{2 */
58 static void 43 static void
59 -text (GMarkupParseContext *context, 44 -text (GMarkupParseContext *context,
60 +XXXtext (GMarkupParseContext *context, 45 +XXXtext (GMarkupParseContext *context,
61 const gchar *text, 46 const gchar *text,
62 gsize text_len, 47 gsize text_len,
63 gpointer user_data, 48 gpointer user_data,
64 @@ -1695,7 +1695,7 @@ 49 @@ -1699,7 +1699,7 @@
65 parse_gschema_files (gchar **files, 50 parse_gschema_files (gchar **files,
66 gboolean strict) 51 gboolean strict)
67 { 52 {
68 - GMarkupParser parser = { start_element, end_element, text }; 53 - GMarkupParser parser = { start_element, end_element, text };
69 + GMarkupParser parser = { start_element, end_element, XXXtext }; 54 + GMarkupParser parser = { start_element, end_element, XXXtext };
77 #include <gio/gunixsocketaddress.h> 62 #include <gio/gunixsocketaddress.h>
78 #include <gio/gunixfdlist.h> 63 #include <gio/gunixfdlist.h>
79 64
80 +#include <sys/socket.h> 65 +#include <sys/socket.h>
81 + 66 +
82 /* used in test_overflow */
83 #ifdef G_OS_UNIX 67 #ifdef G_OS_UNIX
84 #include <gio/gunixconnection.h> 68 #include <gio/gunixconnection.h>
69 #include <errno.h>
85 Index: gio/xdgmime/xdgmimecache.h 70 Index: gio/xdgmime/xdgmimecache.h
86 --- gio/xdgmime/xdgmimecache.h.orig 2011-08-16 02:51:30.000000000 +0200 71 --- gio/xdgmime/xdgmimecache.h.orig 2011-08-16 02:51:30.000000000 +0200
87 +++ gio/xdgmime/xdgmimecache.h 2012-07-13 20:35:15.000000000 +0200 72 +++ gio/xdgmime/xdgmimecache.h 2012-07-13 20:35:15.000000000 +0200
88 @@ -46,6 +46,9 @@ 73 @@ -46,6 +46,9 @@
89 #define _xdg_mime_cache_get_icon XDG_RESERVED_ENTRY(cache_get_icon) 74 #define _xdg_mime_cache_get_icon XDG_RESERVED_ENTRY(cache_get_icon)
104 89
105 +#include "gthread.h" 90 +#include "gthread.h"
106 #include "gatomic.h" 91 #include "gatomic.h"
107 92
108 /** 93 /**
109 Index: glib/gregex.c
110 --- glib/gregex.c.orig 2012-04-02 05:08:41.000000000 +0200
111 +++ glib/gregex.c 2012-07-13 20:35:15.000000000 +0200
112 @@ -228,8 +228,10 @@
113 case PCRE_ERROR_DFA_RECURSE:
114 case PCRE_ERROR_RECURSIONLIMIT:
115 return _("recursion limit reached");
116 +#ifdef PCRE_ERROR_NULLWSLIMIT
117 case PCRE_ERROR_NULLWSLIMIT:
118 return _("workspace limit for empty substrings reached");
119 +#endif
120 case PCRE_ERROR_BADNEWLINE:
121 return _("invalid combination of newline flags");
122 case PCRE_ERROR_BADOFFSET:
123 Index: gmodule/gmodule-dl.c 94 Index: gmodule/gmodule-dl.c
124 --- gmodule/gmodule-dl.c.orig 2011-08-16 02:51:30.000000000 +0200 95 --- gmodule/gmodule-dl.c.orig 2011-08-16 02:51:30.000000000 +0200
125 +++ gmodule/gmodule-dl.c 2012-07-13 20:35:15.000000000 +0200 96 +++ gmodule/gmodule-dl.c 2012-07-13 20:35:15.000000000 +0200
126 @@ -107,6 +107,7 @@ 97 @@ -107,6 +107,7 @@
127 static gpointer 98 static gpointer
129 { 100 {
130 +#ifndef __FreeBSD__ 101 +#ifndef __FreeBSD__
131 gpointer handle; 102 gpointer handle;
132 103
133 /* to query symbols from the program itself, special link options 104 /* to query symbols from the program itself, special link options
134 @@ -118,6 +119,9 @@ 105 @@ -122,6 +123,9 @@
135 g_module_set_error (fetch_dlerror (TRUE)); 106 g_module_set_error (fetch_dlerror (TRUE));
136 107
137 return handle; 108 return handle;
138 +#else 109 +#else
139 + return RTLD_DEFAULT; 110 + return RTLD_DEFAULT;
143 static void 114 static void
144 diff -Nau gio/gsocket.c.orig gio/gsocket.c 115 diff -Nau gio/gsocket.c.orig gio/gsocket.c
145 Index: gio/gsocket.c 116 Index: gio/gsocket.c
146 --- gio/gsocket.c.orig 2012-08-03 11:38:08.419548195 +0200 117 --- gio/gsocket.c.orig 2012-08-03 11:38:08.419548195 +0200
147 +++ gio/gsocket.c 2012-08-03 11:38:11.307357875 +0200 118 +++ gio/gsocket.c 2012-08-03 11:38:11.307357875 +0200
148 @@ -48,6 +48,10 @@ 119 @@ -52,6 +52,10 @@
149 #include <sys/uio.h> 120 #include <sys/uio.h>
150 #endif 121 #endif
151 122
152 +#if defined (__SVR4) && defined (__sun) 123 +#if defined (__SVR4) && defined (__sun)
153 +#include <sys/filio.h> 124 +#include <sys/filio.h>
170 +#define _FILE_OFFSET_BITS 32 141 +#define _FILE_OFFSET_BITS 32
171 +#endif 142 +#endif
172 #include <libelf.h> 143 #include <libelf.h>
173 #include <gelf.h> 144 #include <gelf.h>
174 #include <sys/mman.h> 145 #include <sys/mman.h>
146 diff -Nau gio/glocalfile.c.orig gio/glocalfile.c
147 Index: gio/glocalfile.c.orig
148 --- gio/glocalfile.c.orig 2013-06-16 16:34:39.000000000 +0200
149 +++ gio/glocalfile.c 2013-06-30 22:51:06.165031107 +0200
150 @@ -2427,6 +2427,7 @@
151 is_remote_fs (const gchar *filename)
152 {
153 const char *fsname = NULL;
154 + int statfs_result = 0;
155
156 #ifdef USE_STATFS
157 struct statfs statfs_buffer;

mercurial