index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Tasos Sahanidis <tasos@tasossah.com> | 2024-04-08 14:18:32 +0300 |
---|---|---|
committer | Tasos Sahanidis <tasos@tasossah.com> | 2024-04-08 14:18:32 +0300 |
commit | 2a7ffa6b20c60552142d322796d951ad6e0f0842 (patch) | |
tree | d63d2d2ef7e723acad4b4fe1d3568c190a2f4d82 /build-support/glib2-nogir/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch | |
parent | 5feb3d26577942659ae34f2093261cb1c8037253 (diff) |
-rw-r--r-- | build-support/glib2-nogir/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch | 40 |
diff --git a/build-support/glib2-nogir/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch b/build-support/glib2-nogir/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch new file mode 100644 index 00000000..0a0b7f04 --- /dev/null +++ b/build-support/glib2-nogir/0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch @@ -0,0 +1,40 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> +Date: Fri, 7 Jan 2022 18:59:10 +0000 +Subject: [PATCH] glib-compile-schemas: Remove noisy deprecation warnings + +While the warnings are useful for developers, Arch Linux users also see +them when glib-compile-schemas gets run after upgrades, where they just +add noise. + +The alternative to this patch would be redirecting the compiler's stderr +to /dev/null, but that might also suppress more useful errors or +warnings we want users to see. +--- + gio/glib-compile-schemas.c | 13 ------------- + 1 file changed, 13 deletions(-) + +diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c +index 04ef40457eba..e791ce254454 100644 +--- a/gio/glib-compile-schemas.c ++++ b/gio/glib-compile-schemas.c +@@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState *state, + return; + } + +- if (path && (g_str_has_prefix (path, "/apps/") || +- g_str_has_prefix (path, "/desktop/") || +- g_str_has_prefix (path, "/system/"))) +- { +- gchar *message = NULL; +- message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. " +- "Paths starting with " +- "“/apps/”, “/desktop/” or “/system/” are deprecated."), +- id, path); +- g_printerr ("%s\n", message); +- g_free (message); +- } +- + state->schema_state = schema_state_new (path, gettext_domain, + extends, extends_name, list_of); + |