summaryrefslogtreecommitdiff
path: root/devel/glib2/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2020-09-18 11:18:29 +0000
committerwiz <wiz@pkgsrc.org>2020-09-18 11:18:29 +0000
commitecbe7bdd1cae61468bf141f3290ac593b2a1c781 (patch)
tree77d7be8f760a4bf29a5f3a122f6fba39f683551d /devel/glib2/patches
parent32d38bb169b699450fd388af3f4ec446ea271023 (diff)
downloadpkgsrc-ecbe7bdd1cae61468bf141f3290ac593b2a1c781.tar.gz
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.
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r--devel/glib2/patches/patch-gio_glib-compile-schemas.c24
1 files changed, 24 insertions, 0 deletions
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);