db-move: moved gnome-dictionary from [testing] to [extra] (x86_64)
[arch-packages.git] / glib2 / trunk / 0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch
blob010c9b58528417aad525f45d175db1f9b7119915
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
3 Date: Fri, 7 Jan 2022 18:59:10 +0000
4 Subject: [PATCH] glib-compile-schemas: Remove noisy deprecation warnings
6 While the warnings are useful for developers, Arch Linux users also see
7 them when glib-compile-schemas gets run after upgrades, where they just
8 add noise.
10 The alternative to this patch would be redirecting the compiler's stderr
11 to /dev/null, but that might also suppress more useful errors or
12 warnings we want users to see.
13 ---
14 gio/glib-compile-schemas.c | 13 -------------
15 1 file changed, 13 deletions(-)
17 diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
18 index efe6f8e77eb2..c3e5664e4f2f 100644
19 --- a/gio/glib-compile-schemas.c
20 +++ b/gio/glib-compile-schemas.c
21 @@ -1231,19 +1231,6 @@ parse_state_start_schema (ParseState *state,
22 return;
25 - if (path && (g_str_has_prefix (path, "/apps/") ||
26 - g_str_has_prefix (path, "/desktop/") ||
27 - g_str_has_prefix (path, "/system/")))
28 - {
29 - gchar *message = NULL;
30 - message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
31 - "Paths starting with "
32 - "“/apps/”, “/desktop/” or “/system/” are deprecated."),
33 - id, path);
34 - g_printerr ("%s\n", message);
35 - g_free (message);
36 - }
38 state->schema_state = schema_state_new (path, gettext_domain,
39 extends, extends_name, list_of);