alicelinux

A lightweight musl + clang/llvm + libressl + busybox distro
git clone https://codeberg.org/emmett1/alicelinux
Log | Files | Refs | README | LICENSE

0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch (1631B)


      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
      5 
      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.
      9 
     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(-)
     16 
     17 diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
     18 index 04ef40457eba..e791ce254454 100644
     19 --- a/gio/glib-compile-schemas.c
     20 +++ b/gio/glib-compile-schemas.c
     21 @@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState  *state,
     22        return;
     23      }
     24  
     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 -    }
     37 -
     38    state->schema_state = schema_state_new (path, gettext_domain,
     39                                            extends, extends_name, list_of);
     40