From ecbe7bdd1cae61468bf141f3290ac593b2a1c781 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 18 Sep 2020 11:18:29 +0000 Subject: glib2: disable deprecation warnings glib2 complains about it, but gsettings-desktop-schemas is actively using these paths and not planning to stop anytime soon. This deprecation warning causes lots of unnecessary warnings in pkgin upgrade logs. Bump PKGREVISION. --- .../glib2/patches/patch-gio_glib-compile-schemas.c | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 devel/glib2/patches/patch-gio_glib-compile-schemas.c (limited to 'devel/glib2/patches') diff --git a/devel/glib2/patches/patch-gio_glib-compile-schemas.c b/devel/glib2/patches/patch-gio_glib-compile-schemas.c new file mode 100644 index 00000000000..4d1409986d6 --- /dev/null +++ b/devel/glib2/patches/patch-gio_glib-compile-schemas.c @@ -0,0 +1,24 @@ +$NetBSD: patch-gio_glib-compile-schemas.c,v 1.1 2020/09/18 11:18:29 wiz Exp $ + +gsettings-desktop-schemas uses deprecated paths and is not going to stop +anytime soon, see +https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/issues/27 + +--- gio/glib-compile-schemas.c.orig 2020-08-18 11:06:36.941520700 +0000 ++++ gio/glib-compile-schemas.c +@@ -1232,6 +1232,7 @@ parse_state_start_schema (ParseState *s + return; + } + ++#if 0 + if (path && (g_str_has_prefix (path, "/apps/") || + g_str_has_prefix (path, "/desktop/") || + g_str_has_prefix (path, "/system/"))) +@@ -1244,6 +1245,7 @@ parse_state_start_schema (ParseState *s + g_printerr ("%s\n", message); + g_free (message); + } ++#endif + + state->schema_state = schema_state_new (path, gettext_domain, + extends, extends_name, list_of); -- cgit v1.2.3