You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

181 lines
5.5 KiB

Index: gio/glib-compile-schemas.c
--- gio/glib-compile-schemas.c.orig 2019-12-16 15:00:38.000000000 +0100
+++ gio/glib-compile-schemas.c 2019-12-23 19:36:57.173027000 +0100
@@ -1589,7 +1589,7 @@
}
/* Text {{{2 */
static void
-text (GMarkupParseContext *context,
+XXXtext (GMarkupParseContext *context,
const gchar *text,
gsize text_len,
gpointer user_data,
@@ -1770,7 +1770,7 @@
parse_gschema_files (gchar **files,
gboolean strict)
{
- GMarkupParser parser = { start_element, end_element, text };
+ GMarkupParser parser = { start_element, end_element, XXXtext };
ParseState state = { 0, };
const gchar *filename;
GError *error = NULL;
Index: gio/meson.build
--- gio/meson.build.orig 2019-12-23 19:36:57.173249000 +0100
+++ gio/meson.build 2019-12-23 19:37:40.425855000 +0100
@@ -1013,9 +1013,6 @@
endif
subdir('fam')
-if build_tests
- subdir('tests')
-endif
# The following is an example for building internal marshallers that are used
# by GIO. We cannot guarantee glib-genmarshal availability while building GLib
Index: gio/tests/gdbus-peer.c
--- gio/tests/gdbus-peer.c.orig 2019-12-16 15:00:38.000000000 +0100
+++ gio/tests/gdbus-peer.c 2019-12-23 19:36:57.173628000 +0100
@@ -27,6 +27,7 @@
/* for open(2) */
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/socket.h>
#include <fcntl.h>
#include <string.h>
Index: gio/tests/org.gtk.test.gschema.override
Index: gio/tests/org.gtk.test.gschema.xml
Index: gio/xdgmime/xdgmimecache.h
--- gio/xdgmime/xdgmimecache.h.orig 2019-12-16 15:00:38.000000000 +0100
+++ gio/xdgmime/xdgmimecache.h 2019-12-23 19:36:57.173746000 +0100
@@ -44,6 +44,9 @@
#define _xdg_mime_cache_get_icon XDG_RESERVED_ENTRY(cache_get_icon)
#define _xdg_mime_cache_get_generic_icon XDG_RESERVED_ENTRY(cache_get_generic_icon)
#define _xdg_mime_cache_glob_dump XDG_RESERVED_ENTRY(cache_glob_dump)
+#define _xdg_mime_cache_is_valid_mime_type XDG_RESERVED_ENTRY(cache_is_valid_mime_type)
+#define _xdg_mime_cache_mime_type_equal XDG_RESERVED_ENTRY(cache_mime_type_equal)
+#define _xdg_mime_cache_media_type_equal XDG_RESERVED_ENTRY(cache_media_type_equal)
#endif
extern XdgMimeCache **_caches;
Index: glib/gatomic.c
--- glib/gatomic.c.orig 2019-12-16 15:00:38.000000000 +0100
+++ glib/gatomic.c 2019-12-23 19:36:57.173918000 +0100
@@ -19,6 +19,7 @@
#include "config.h"
+#include "gthread.h"
#include "gatomic.h"
/**
Index: glib/gmem.c
--- glib/gmem.c.orig 2019-12-16 15:00:38.000000000 +0100
+++ glib/gmem.c 2019-12-23 19:36:57.174056000 +0100
@@ -38,6 +38,7 @@
#include "gbacktrace.h"
#include "gtestutils.h"
#include "gthread.h"
+#include "gthreadprivate.h"
#include "glib_trace.h"
/* notes on macros:
Index: glib/gthread-posix.c
--- glib/gthread-posix.c.orig 2019-12-16 15:00:38.000000000 +0100
+++ glib/gthread-posix.c 2019-12-23 19:36:57.174285000 +0100
@@ -99,7 +99,7 @@
if G_UNLIKELY (mutex == NULL)
g_thread_abort (errno, "malloc");
-#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
+#if defined(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) && !defined(__FreeBSD__)
pthread_mutexattr_init (&attr);
pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
pattr = &attr;
@@ -108,7 +108,7 @@
if G_UNLIKELY ((status = pthread_mutex_init (mutex, pattr)) != 0)
g_thread_abort (status, "pthread_mutex_init");
-#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
+#if defined(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) && !defined(__FreeBSD__)
pthread_mutexattr_destroy (&attr);
#endif
@@ -280,10 +280,14 @@
if G_UNLIKELY (mutex == NULL)
g_thread_abort (errno, "malloc");
+#if defined(PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP) && !defined(__FreeBSD__)
pthread_mutexattr_init (&attr);
pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
pthread_mutex_init (mutex, &attr);
pthread_mutexattr_destroy (&attr);
+#else
+ pthread_mutex_init (mutex, NULL);
+#endif
return mutex;
}
Index: glib/meson.build
--- glib/meson.build.orig 2019-12-16 15:00:38.000000000 +0100
+++ glib/meson.build 2019-12-23 19:37:53.744707000 +0100
@@ -370,7 +370,7 @@
include_directories : [configinc, glibinc])
pkg.generate(libglib,
- libraries : [libintl],
+ libraries : [],
libraries_private : [osx_ldflags, win32_ldflags],
subdirs : ['glib-2.0'],
extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
@@ -458,6 +458,3 @@
)
endif
-if build_tests
- subdir('tests')
-endif
Index: gmodule/gmodule-dl.c
--- gmodule/gmodule-dl.c.orig 2019-12-16 15:00:38.000000000 +0100
+++ gmodule/gmodule-dl.c 2019-12-23 19:36:57.174595000 +0100
@@ -106,6 +106,7 @@
static gpointer
_g_module_self (void)
{
+#ifndef __FreeBSD__
gpointer handle;
/* to query symbols from the program itself, special link options
@@ -128,6 +129,9 @@
g_module_set_error (fetch_dlerror (TRUE));
return handle;
+#else
+ return RTLD_DEFAULT;
+#endif
}
static void
Index: gobject/meson.build
--- gobject/meson.build.orig 2019-12-23 19:36:57.174726000 +0100
+++ gobject/meson.build 2019-12-23 19:37:59.469896000 +0100
@@ -165,6 +165,3 @@
)
endif
-if build_tests
- subdir('tests')
-endif
Index: meson.build
--- meson.build.orig 2019-12-23 19:36:57.175173000 +0100
+++ meson.build 2019-12-23 19:38:15.933198000 +0100
@@ -2154,9 +2154,6 @@
subdir('gmodule')
subdir('gio')
subdir('fuzzing')
-if build_tests
- subdir('tests')
-endif
# xgettext is optional (on Windows for instance)
if find_program('xgettext', required : get_option('nls')).found()