Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package jsonrpc-glib for openSUSE:Factory checked in at 2023-03-24 15:19:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/jsonrpc-glib (Old) and /work/SRC/openSUSE:Factory/.jsonrpc-glib.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "jsonrpc-glib" Fri Mar 24 15:19:26 2023 rev:14 rq:1073177 version:3.44.0 Changes: -------- --- /work/SRC/openSUSE:Factory/jsonrpc-glib/jsonrpc-glib.changes 2022-09-21 14:42:54.765834883 +0200 +++ /work/SRC/openSUSE:Factory/.jsonrpc-glib.new.31432/jsonrpc-glib.changes 2023-03-24 15:19:45.182678943 +0100 @@ -1,0 +2,16 @@ +Fri Mar 17 19:02:07 UTC 2023 - Bjørn Lie <[email protected]> + +- Update to version 3.44.0: + + No changes since 3.43.0 development release. + +------------------------------------------------------------------- +Mon Mar 6 16:50:55 UTC 2023 - Bjørn Lie <[email protected]> + +- Update to version 3.43.0: + + Testsuite fixes + + Improved error messages + + Provide client error code with JSON_CLIENT_ERROR error domain + + Explicit variant ownership fixes +- Enable meson_test macro again, following upstreams fixes. + +------------------------------------------------------------------- Old: ---- jsonrpc-glib-3.42.0.tar.xz New: ---- jsonrpc-glib-3.44.0.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ jsonrpc-glib.spec ++++++ --- /var/tmp/diff_new_pack.16fl2S/_old 2023-03-24 15:19:45.546680841 +0100 +++ /var/tmp/diff_new_pack.16fl2S/_new 2023-03-24 15:19:45.550680862 +0100 @@ -1,7 +1,7 @@ # # spec file for package jsonrpc-glib # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,13 @@ %define sover 1_0-1 Name: jsonrpc-glib -Version: 3.42.0 +Version: 3.44.0 Release: 0 Summary: Library to communicate with JSON-RPC based peers License: LGPL-2.1-or-later Group: Development/Libraries/GNOME URL: https://gitlab.gnome.org/GNOME/jsonrpc-glib -Source0: https://download.gnome.org/sources/jsonrpc-glib/3.42/%{name}-%{version}.tar.xz +Source0: https://download.gnome.org/sources/jsonrpc-glib/3.44/%{name}-%{version}.tar.xz Source1: jsonrpc-glib-rpmlintrc BuildRequires: meson >= 0.49.2 @@ -111,9 +111,8 @@ %ldconfig_scriptlets -n libjsonrpc-glib-%{sover} -# https://gitlab.gnome.org/GNOME/jsonrpc-glib/-/issues/2 -#%%check -#%%meson_test +%check +%meson_test %files -n libjsonrpc-glib-%{sover} %license COPYING ++++++ jsonrpc-glib-3.42.0.tar.xz -> jsonrpc-glib-3.44.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonrpc-glib-3.42.0/NEWS new/jsonrpc-glib-3.44.0/NEWS --- old/jsonrpc-glib-3.42.0/NEWS 2022-03-19 00:10:13.000000000 +0100 +++ new/jsonrpc-glib-3.44.0/NEWS 2023-03-17 19:58:27.000000000 +0100 @@ -1,4 +1,21 @@ ============== +Version 3.44.0 +============== + +No changes since 3.43.0 development release. + +============== +Version 3.43.0 +============== + +This is a development release. + + ⢠Testsuite fixes + ⢠Improved error messages + ⢠Provide client error code with JSON_CLIENT_ERROR error domain + ⢠Explicit variant ownership fixes + +============== Version 3.42.0 ============== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonrpc-glib-3.42.0/meson.build new/jsonrpc-glib-3.44.0/meson.build --- old/jsonrpc-glib-3.42.0/meson.build 2022-03-19 00:10:13.000000000 +0100 +++ new/jsonrpc-glib-3.44.0/meson.build 2023-03-17 19:58:27.000000000 +0100 @@ -1,5 +1,5 @@ project('jsonrpc-glib', 'c', - version: '3.42.0', + version: '3.44.0', license: 'LGPLv2.1+', meson_version: '>= 0.49.2', default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonrpc-glib-3.42.0/src/jsonrpc-client.c new/jsonrpc-glib-3.44.0/src/jsonrpc-client.c --- old/jsonrpc-glib-3.42.0/src/jsonrpc-client.c 2022-03-19 00:10:13.000000000 +0100 +++ new/jsonrpc-glib-3.44.0/src/jsonrpc-client.c 2023-03-17 19:58:27.000000000 +0100 @@ -22,7 +22,7 @@ /** * JsonrpcClient: - * + * * A client for JSON-RPC communication * * The #JsonrpcClient class provides a convenient API to coordinate with a @@ -240,7 +240,10 @@ g_hash_table_iter_init (&iter, pd->invocations); while (g_hash_table_iter_next (&iter, NULL, (gpointer *)&task)) - g_task_return_error (task, g_error_copy (pd->error)); + { + if (!g_task_get_completed (task)) + g_task_return_error (task, g_error_copy (pd->error)); + } g_clear_pointer (&pd->invocations, g_hash_table_unref); g_clear_pointer (&pd->error, g_error_free); @@ -820,11 +823,20 @@ { g_autoptr(GVariant) error_variant = NULL; g_autofree gchar *errstr = NULL; + const char *errmsg = NULL; gint64 id = -1; + gint64 errcode = -1; error_variant = g_variant_dict_lookup_value (dict, "error", NULL); - errstr = g_variant_print (error_variant, FALSE); - error = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_FAILED, errstr); + + if (error_variant != NULL && + g_variant_lookup (error_variant, "message", "&s", &errmsg) && + g_variant_lookup (error_variant, "code", "x", &errcode)) + errstr = g_strdup_printf ("%s (%d)", errmsg, (int)errcode); + else + errstr = g_variant_print (error_variant, FALSE); + + error = g_error_new_literal (JSONRPC_CLIENT_ERROR, errcode, errstr); if (g_variant_dict_lookup (dict, "id", "x", &id)) { @@ -1020,7 +1032,8 @@ g_variant_dict_insert (&dict, "id", "x", idval); g_variant_dict_insert (&dict, "method", "s", method); g_variant_dict_insert_value (&dict, "params", params); - message = g_variant_dict_end (&dict); + + message = g_variant_take_ref (g_variant_dict_end (&dict)); g_hash_table_insert (priv->invocations, GINT_TO_POINTER (idval), g_object_ref (task)); @@ -1134,7 +1147,7 @@ * @cancellable: (nullable): A #GCancellable or %NULL * * Synchronously calls @method with @params on the remote peer. - * + * * This function will not wait or expect a reply from the peer. * * If @params is floating then the reference is consumed. @@ -1171,7 +1184,8 @@ g_variant_dict_insert (&dict, "jsonrpc", "s", "2.0"); g_variant_dict_insert (&dict, "method", "s", method); g_variant_dict_insert_value (&dict, "params", params); - message = g_variant_dict_end (&dict); + + message = g_variant_take_ref (g_variant_dict_end (&dict)); ret = jsonrpc_output_stream_write_message (priv->output_stream, message, cancellable, error); @@ -1186,7 +1200,7 @@ * @cancellable: (nullable): A #GCancellable or %NULL * * Asynchronously calls @method with @params on the remote peer. - * + * * This function will not wait or expect a reply from the peer. * * This function is useful when the caller wants to be notified that @@ -1231,7 +1245,8 @@ g_variant_dict_insert (&dict, "jsonrpc", "s", "2.0"); g_variant_dict_insert (&dict, "method", "s", method); g_variant_dict_insert_value (&dict, "params", params); - message = g_variant_dict_end (&dict); + + message = g_variant_take_ref (g_variant_dict_end (&dict)); jsonrpc_output_stream_write_message_async (priv->output_stream, message, @@ -1271,8 +1286,8 @@ * @self: A #JsonrpcClient * * Closes the underlying streams and cancels any inflight operations of the - * #JsonrpcClient. - * + * #JsonrpcClient. + * * This is important to call when you are done with the * client so that any outstanding operations that have caused @self to * hold additional references are cancelled. @@ -1519,7 +1534,8 @@ g_variant_dict_insert (&dict, "jsonrpc", "s", "2.0"); g_variant_dict_insert_value (&dict, "id", id); g_variant_dict_insert_value (&dict, "result", result); - message = g_variant_dict_end (&dict); + + message = g_variant_take_ref (g_variant_dict_end (&dict)); ret = jsonrpc_output_stream_write_message (priv->output_stream, message, cancellable, error); @@ -1608,7 +1624,8 @@ g_variant_dict_insert (&dict, "jsonrpc", "s", "2.0"); g_variant_dict_insert_value (&dict, "id", id); g_variant_dict_insert_value (&dict, "result", result); - message = g_variant_dict_end (&dict); + + message = g_variant_take_ref (g_variant_dict_end (&dict)); jsonrpc_output_stream_write_message_async (priv->output_stream, message, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonrpc-glib-3.42.0/src/jsonrpc-version-macros.h new/jsonrpc-glib-3.44.0/src/jsonrpc-version-macros.h --- old/jsonrpc-glib-3.42.0/src/jsonrpc-version-macros.h 2022-03-19 00:10:13.000000000 +0100 +++ new/jsonrpc-glib-3.44.0/src/jsonrpc-version-macros.h 2023-03-17 19:58:27.000000000 +0100 @@ -44,6 +44,7 @@ #define JSONRPC_VERSION_3_28 (G_ENCODE_VERSION (3, 28)) #define JSONRPC_VERSION_3_30 (G_ENCODE_VERSION (3, 30)) #define JSONRPC_VERSION_3_40 (G_ENCODE_VERSION (3, 40)) +#define JSONRPC_VERSION_3_44 (G_ENCODE_VERSION (3, 44)) #if (JSONRPC_MINOR_VERSION == 99) # define JSONRPC_VERSION_CUR_STABLE (G_ENCODE_VERSION (JSONRPC_MAJOR_VERSION + 1, 0)) @@ -170,4 +171,18 @@ # define JSONRPC_AVAILABLE_IN_3_40 _JSONRPC_EXTERN #endif +#if JSONRPC_VERSION_MIN_REQUIRED >= JSONRPC_VERSION_3_44 +# define JSONRPC_DEPRECATED_IN_3_44 JSONRPC_DEPRECATED +# define JSONRPC_DEPRECATED_IN_3_44_FOR(f) JSONRPC_DEPRECATED_FOR(f) +#else +# define JSONRPC_DEPRECATED_IN_3_44 _JSONRPC_EXTERN +# define JSONRPC_DEPRECATED_IN_3_44_FOR(f) _JSONRPC_EXTERN +#endif + +#if JSONRPC_VERSION_MAX_ALLOWED < JSONRPC_VERSION_3_44 +# define JSONRPC_AVAILABLE_IN_3_44 JSONRPC_UNAVAILABLE(3, 44) +#else +# define JSONRPC_AVAILABLE_IN_3_44 _JSONRPC_EXTERN +#endif + #endif /* JSONRPC_VERSION_MACROS_H */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsonrpc-glib-3.42.0/tests/test-stress.c new/jsonrpc-glib-3.44.0/tests/test-stress.c --- old/jsonrpc-glib-3.42.0/tests/test-stress.c 2022-03-19 00:10:13.000000000 +0100 +++ new/jsonrpc-glib-3.44.0/tests/test-stress.c 2023-03-17 19:58:27.000000000 +0100 @@ -81,7 +81,7 @@ /* Close might error, but the tasks are always * flushed and cancelled. */ - g_idle_add_full (G_PRIORITY_LOW + 1000, + g_idle_add_full (G_PRIORITY_DEFAULT, close_in_idle, g_object_ref (client), g_object_unref);
