Index: gio/glib-compile-schemas.c --- gio/glib-compile-schemas.c.orig 2021-02-16 17:27:34.403790200 +0100 +++ gio/glib-compile-schemas.c 2021-02-27 19:44:47.872525000 +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, NULL, NULL }; + GMarkupParser parser = { start_element, end_element, XXXtext, NULL, NULL }; ParseState state = { 0, }; const gchar *filename; GError *error = NULL; Index: gio/meson.build --- gio/meson.build.orig 2021-02-16 17:27:34.445791000 +0100 +++ gio/meson.build 2021-02-27 19:43:31.531579000 +0100 @@ -1024,9 +1024,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 2021-02-16 17:27:34.485791400 +0100 +++ gio/tests/gdbus-peer.c 2021-02-27 19:43:31.531859000 +0100 @@ -27,6 +27,7 @@ /* for open(2) */ #include #include +#include #include #include 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 2021-02-16 17:27:34.509791900 +0100 +++ gio/xdgmime/xdgmimecache.h 2021-02-27 19:43:31.531979000 +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 2021-02-16 17:27:34.515792000 +0100 +++ glib/gatomic.c 2021-02-27 19:43:31.532139000 +0100 @@ -19,6 +19,7 @@ #include "config.h" +#include "gthread.h" #include "gatomic.h" /** Index: glib/gmem.c --- glib/gmem.c.orig 2021-02-16 17:27:34.534792200 +0100 +++ glib/gmem.c 2021-02-27 19:43:31.532276000 +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 2021-02-16 17:27:34.551792400 +0100 +++ glib/gthread-posix.c 2021-02-27 19:43:31.532498000 +0100 @@ -104,7 +104,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; @@ -113,7 +113,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 @@ -285,10 +285,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 2021-02-16 17:27:34.570792700 +0100 +++ glib/meson.build 2021-02-27 19:45:03.002117000 +0100 @@ -389,7 +389,7 @@ include_directories : [configinc, glibinc]) pkg.generate(libglib, - libraries : [libintl_deps], + libraries : [], libraries_private : [osx_ldflags, win32_ldflags], subdirs : ['glib-2.0'], extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags, @@ -481,6 +481,3 @@ ) endif -if build_tests - subdir('tests') -endif Index: gmodule/gmodule-dl.c --- gmodule/gmodule-dl.c.orig 2021-02-16 17:27:34.601793000 +0100 +++ gmodule/gmodule-dl.c 2021-02-27 19:43:31.532835000 +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 2021-02-16 17:27:34.614793000 +0100 +++ gobject/meson.build 2021-02-27 19:43:31.532942000 +0100 @@ -169,6 +169,3 @@ ) endif -if build_tests - subdir('tests') -endif Index: meson.build --- meson.build.orig 2021-02-16 17:27:34.619793200 +0100 +++ meson.build 2021-02-27 19:43:31.533234000 +0100 @@ -2319,9 +2319,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()