Package: glib2.0 / 2.58.3-1

debian/03_disble_glib_compile_schemas_warning.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Iain Lane <iain.lane@canonical.com>
Date: Mon, 10 Sep 2012 16:25:18 +0100
Subject: Disable confusing (to users) warning about deprecated schema paths

Disable a warning when compiling schemas which are installed
into 'deprecated' locations. Users see this very often due to
glib-compile-schemas being called from libglib2.0-0's trigger and it is
not very useful for them.

Forwarded: not-needed
---
 gio/glib-compile-schemas.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
index 5e1bebb..7bd8cfb 100644
--- a/gio/glib-compile-schemas.c
+++ b/gio/glib-compile-schemas.c
@@ -1233,6 +1233,9 @@ parse_state_start_schema (ParseState  *state,
       return;
     }
 
+  // Disable this warning: it confuses users and there is unlikely to be much
+  // progress towards fixing
+  /*
   if (path && (g_str_has_prefix (path, "/apps/") ||
                g_str_has_prefix (path, "/desktop/") ||
                g_str_has_prefix (path, "/system/")))
@@ -1245,6 +1248,7 @@ parse_state_start_schema (ParseState  *state,
       g_printerr ("%s\n", message);
       g_free (message);
     }
+    */
 
   state->schema_state = schema_state_new (path, gettext_domain,
                                           extends, extends_name, list_of);