Dominique Leuenberger
bc7c8b50f1
Add patch to suppress deprecated paths in schema warnings; fixes rh#814053 (patched build tested, works). OBS-URL: https://build.opensuse.org/request/show/124266 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=199
21 lines
778 B
Diff
21 lines
778 B
Diff
Index: glib-2.32.3/gio/glib-compile-schemas.c
|
|
===================================================================
|
|
--- glib-2.32.3.orig/gio/glib-compile-schemas.c
|
|
+++ glib-2.32.3/gio/glib-compile-schemas.c
|
|
@@ -1204,12 +1204,14 @@ parse_state_start_schema (ParseState *s
|
|
return;
|
|
}
|
|
|
|
+/*
|
|
if (path && (g_str_has_prefix (path, "/apps/") ||
|
|
g_str_has_prefix (path, "/desktop/") ||
|
|
g_str_has_prefix (path, "/system/")))
|
|
g_printerr ("warning: Schema '%s' has path '%s'. Paths starting with "
|
|
"'/apps/', '/desktop/' or '/system/' are deprecated.\n", id, path);
|
|
-
|
|
+*/
|
|
+
|
|
state->schema_state = schema_state_new (path, gettext_domain,
|
|
extends, extends_name, list_of);
|
|
|