From 6a6875c55ce6d7e5f86cf89ce24ddd0a64244e4320d73846a55e10f7554d194b Mon Sep 17 00:00:00 2001 From: Paolo Stivanin Date: Fri, 3 Nov 2023 08:49:25 +0000 Subject: [PATCH] - Update to 0.17: + New features: * json_patch: add first implementation only with patch application * Add --disable-static and --disable-dynamic options to the cmake-configure script. * Add -DBUILD_APPS=NO option to disable app build * Minimum cmake version is now 3.9 + Significant changes and bug fixes: * When serializing with JSON_C_TO_STRING_PRETTY set, keep the opening and closing curly or square braces on same line for empty objects or arrays. * Disable locale handling when targeting a uClibc system due to problems with its duplocale() function. * When parsing with JSON_TOKENER_STRICT set, integer overflow/underflow now result in a json_tokener_error_parse_number. Without that flag values are capped at INT64_MIN/UINT64_MAX. * Fix memory leak with emtpy strings in json_object_set_string * json_object_from_fd_ex: fail if file is too large (>=INT_MAX bytes) * Add back json_number_chars, but only because it's part of the public API. * Entirely drop mode bits from open(O_RDONLY) to avoid warnings on certain platforms. * Specify dependent libraries, including -lbsd, in a more consistent way so linking against a static json-c works better * Fix a variety of build problems and add & improve tests * Update RFC reference to https://www.rfc-editor.org/rfc/rfc8259 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/json-c?expand=0&rev=44 --- json-c-0.16-20220414.tar.gz | 3 --- json-c-0.17-20230812.tar.gz | 3 +++ json-c.changes | 27 +++++++++++++++++++++++++++ json-c.spec | 6 +++--- 4 files changed, 33 insertions(+), 6 deletions(-) delete mode 100644 json-c-0.16-20220414.tar.gz create mode 100644 json-c-0.17-20230812.tar.gz diff --git a/json-c-0.16-20220414.tar.gz b/json-c-0.16-20220414.tar.gz deleted file mode 100644 index 2fd5f9a..0000000 --- a/json-c-0.16-20220414.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ecaeedffd99a60b1262819f9e60d7d983844073abc74e495cb822b251904185 -size 337024 diff --git a/json-c-0.17-20230812.tar.gz b/json-c-0.17-20230812.tar.gz new file mode 100644 index 0000000..2ebfb80 --- /dev/null +++ b/json-c-0.17-20230812.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:024d302a3aadcbf9f78735320a6d5aedf8b77876c8ac8bbb95081ca55054c7eb +size 364529 diff --git a/json-c.changes b/json-c.changes index 79e08d9..6f66fe4 100644 --- a/json-c.changes +++ b/json-c.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Fri Nov 3 08:47:33 UTC 2023 - Paolo Stivanin + +- Update to 0.17: + + New features: + * json_patch: add first implementation only with patch application + * Add --disable-static and --disable-dynamic options to the cmake-configure script. + * Add -DBUILD_APPS=NO option to disable app build + * Minimum cmake version is now 3.9 + + Significant changes and bug fixes: + * When serializing with JSON_C_TO_STRING_PRETTY set, keep the opening and + closing curly or square braces on same line for empty objects or arrays. + * Disable locale handling when targeting a uClibc system due to problems + with its duplocale() function. + * When parsing with JSON_TOKENER_STRICT set, integer overflow/underflow + now result in a json_tokener_error_parse_number. Without that flag + values are capped at INT64_MIN/UINT64_MAX. + * Fix memory leak with emtpy strings in json_object_set_string + * json_object_from_fd_ex: fail if file is too large (>=INT_MAX bytes) + * Add back json_number_chars, but only because it's part of the public API. + * Entirely drop mode bits from open(O_RDONLY) to avoid warnings on certain + platforms. + * Specify dependent libraries, including -lbsd, in a more consistent way so + linking against a static json-c works better + * Fix a variety of build problems and add & improve tests + * Update RFC reference to https://www.rfc-editor.org/rfc/rfc8259 + ------------------------------------------------------------------- Wed Apr 20 06:29:21 UTC 2022 - Paolo Stivanin diff --git a/json-c.spec b/json-c.spec index bbe7bff..5f8c471 100644 --- a/json-c.spec +++ b/json-c.spec @@ -1,7 +1,7 @@ # # spec file for package json-c # -# 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,9 +19,9 @@ %define libname libjson-c %define libsoname %{libname}5 %define oldlibname libjson -%define version_date 20220414 +%define version_date 20230812 Name: json-c -Version: 0.16 +Version: 0.17 Release: 0 Summary: JSON implementation in C License: MIT