diff options
Diffstat (limited to 'meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch')
-rw-r--r-- | meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch b/meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch new file mode 100644 index 0000000000..bd7ed77642 --- /dev/null +++ b/meta/recipes-core/glib-2.0/files/0001-Remove-the-warning-about-deprecated-paths-in-schemas.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 22dcd727203d59a025c8be4280b4654a7054322f Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 12 Jun 2015 17:08:46 +0300 | ||
4 | Subject: [PATCH] Remove the warning about deprecated paths in schemas | ||
5 | |||
6 | Some schemas in gsettings-desktop-schemas (such as proxy and locale) | ||
7 | are still using deprecated paths, as of 3.16.1. This causes warning | ||
8 | messages, and meta/lib/oe/rootfs.py complaints about them. | ||
9 | |||
10 | Upstream-Status: Inappropriate | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | gio/glib-compile-schemas.c | 13 ------------- | ||
14 | 1 file changed, 13 deletions(-) | ||
15 | |||
16 | diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c | ||
17 | index 04ef404..e791ce2 100644 | ||
18 | --- a/gio/glib-compile-schemas.c | ||
19 | +++ b/gio/glib-compile-schemas.c | ||
20 | @@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state, | ||
21 | return; | ||
22 | } | ||
23 | |||
24 | - if (path && (g_str_has_prefix (path, "/apps/") || | ||
25 | - g_str_has_prefix (path, "/desktop/") || | ||
26 | - g_str_has_prefix (path, "/system/"))) | ||
27 | - { | ||
28 | - gchar *message = NULL; | ||
29 | - message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. " | ||
30 | - "Paths starting with " | ||
31 | - "“/apps/”, “/desktop/” or “/system/” are deprecated."), | ||
32 | - id, path); | ||
33 | - g_printerr ("%s\n", message); | ||
34 | - g_free (message); | ||
35 | - } | ||
36 | - | ||
37 | state->schema_state = schema_state_new (path, gettext_domain, | ||
38 | extends, extends_name, list_of); | ||
39 | |||