pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/json-c json-c: update to 0.15.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/12b82984d88a
branches:  trunk
changeset: 439986:12b82984d88a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Oct 01 09:16:12 2020 +0000

description:
json-c: update to 0.15.

Next Release 0.15
=====================

Deprecated and removed features:
--------------------------------
* Deprecate `array_list_new()` in favor of `array_list_new2()`
* Remove the THIS_FUNCTION_IS_DEPRECATED define.
* Remove config.h.win32

New features
------------
* Add a `JSON_TOKENER_ALLOW_TRAILING_CHARS` flag to allow multiple objects
  to be parsed even when `JSON_TOKENER_STRICT` is set.
* Add `json_object_new_array_ext(int)` and `array_list_new_2(int)` to allow
   arrays to be allocated with the exact size needed, when known.
* Add `json_object_array_shrink()` (and `array_list_shrink()`) and use it in
   json_tokener to minimize the amount of memory used.
* Add a json_parse binary, for use in testing changes (not installed, but
   available in the apps directory).

Build changes
-------------
* #639/#621 - Add symbol versions to all exported symbols
* #508/#634 - Always enable -fPIC to allow use of the json-c static library in
   other libraries
* Build both static and shared libraries at the same time.
* #626 - Restore compatibility with cmake 2.8
* #471 - Always create directories with mode 0755, regardless of umask.
* #606/#604 - Improve support for OSes like AIX and IBM i, as well as for
   MINGW32 and old versions of MSVC
* #451/#617 - Add a DISABLE_THREAD_LOCAL_STORAGE cmake option to disable
   the use of thread-local storage.

Significant changes and bug fixes
---------------------------------
* Split the internal json_object structure into several sub-types, one for
   each json_type (json_object_object, json_object_string, etc...).
  This improves memory usage and speed, with the benchmark under
   bench/ report 5.8% faster test time and 6%(max RSS)-12%(peak heap)
   less memory usage.
  Memory used just for json_object structures decreased 27%, so use cases
   with fewer arrays and/or strings would benefit more.
* Minimize memory usage in array handling in json_tokener by shrinking
   arrays to the exact number of elements parsed.  On bench/ benchmark:
   9% faster test time, 39%(max RSS)-50%(peak heap) less memory usage.
   Add json_object_array_shrink() and array_list_shrink() functions.
* #616 - Parsing of surrogate pairs in unicode escapes now properly handles
   incremental parsing.
* Fix incremental parsing of numbers, especially those with exponents, e.g.
   so parsing "[0", "e+", "-]" now properly returns an error.
  Strict mode now rejects missing exponents ("0e").
* Successfully return number objects at the top level even when they are
   followed by a "-", "." or "e".  This makes parsing things like "123-45"
   behave consistently with things like "123xyz".

Other changes
-------------
* #589 - Detect broken RDRAND during initialization; also, fix segfault
    in the CPUID check.
* #592 - Fix integer overflows to prevert out of bounds write on large input.
* Protect against division by zero in linkhash, when creaed with zero size.
* #602 - Fix json_parse_uint64() internal error checking, leaving the retval
    untouched in more failure cases.
* #614 - Prevent truncation when custom double formatters insert extra \0's

diffstat:

 textproc/json-c/Makefile |   4 ++--
 textproc/json-c/PLIST    |   6 +++---
 textproc/json-c/distinfo |  10 +++++-----
 3 files changed, 10 insertions(+), 10 deletions(-)

diffs (48 lines):

diff -r 7d1b882e918a -r 12b82984d88a textproc/json-c/Makefile
--- a/textproc/json-c/Makefile  Thu Oct 01 09:14:10 2020 +0000
+++ b/textproc/json-c/Makefile  Thu Oct 01 09:16:12 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2020/05/19 12:24:33 nia Exp $
+# $NetBSD: Makefile,v 1.17 2020/10/01 09:16:12 wiz Exp $
 
-DISTNAME=      json-c-0.14
+DISTNAME=      json-c-0.15
 CATEGORIES=    textproc
 MASTER_SITES=  https://s3.amazonaws.com/json-c_releases/releases/
 
diff -r 7d1b882e918a -r 12b82984d88a textproc/json-c/PLIST
--- a/textproc/json-c/PLIST     Thu Oct 01 09:14:10 2020 +0000
+++ b/textproc/json-c/PLIST     Thu Oct 01 09:16:12 2020 +0000
@@ -1,6 +1,5 @@
-@comment $NetBSD: PLIST,v 1.6 2020/05/19 12:08:31 nia Exp $
+@comment $NetBSD: PLIST,v 1.7 2020/10/01 09:16:12 wiz Exp $
 include/json-c/arraylist.h
-include/json-c/config.h
 include/json-c/debug.h
 include/json-c/json.h
 include/json-c/json_c_version.h
@@ -18,7 +17,8 @@
 lib/cmake/json-c/json-c-config.cmake
 lib/cmake/json-c/json-c-targets-release.cmake
 lib/cmake/json-c/json-c-targets.cmake
+lib/libjson-c.a
 lib/libjson-c.so
 lib/libjson-c.so.5
-lib/libjson-c.so.5.0.0
+lib/libjson-c.so.5.1.0
 lib/pkgconfig/json-c.pc
diff -r 7d1b882e918a -r 12b82984d88a textproc/json-c/distinfo
--- a/textproc/json-c/distinfo  Thu Oct 01 09:14:10 2020 +0000
+++ b/textproc/json-c/distinfo  Thu Oct 01 09:16:12 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2020/05/19 12:08:31 nia Exp $
+$NetBSD: distinfo,v 1.10 2020/10/01 09:16:12 wiz Exp $
 
-SHA1 (json-c-0.14.tar.gz) = 5a8ddc6d03f2b8be504f5f618eb75800cf887d51
-RMD160 (json-c-0.14.tar.gz) = 2f6dfc51a03205274c7b2da4351899b0a192f935
-SHA512 (json-c-0.14.tar.gz) = 75537c61d0632a01f94d2394d7a4387ef1eca0b68aa56c495d3d96dd29b38ed20eb0cc3f6e5e24dc6660c8939669f8954005d9c3ba20437f3fcc9f9dd896b00d
-Size (json-c-0.14.tar.gz) = 321677 bytes
+SHA1 (json-c-0.15.tar.gz) = 2c2d9a6cac1016c1263f1e0ec39d00591ec3e7b2
+RMD160 (json-c-0.15.tar.gz) = 3fdfeeda752a530b5b300a9badd955dd925a7e3a
+SHA512 (json-c-0.15.tar.gz) = dc01298bcc78f0f31a34f5fcfe45c0feebfd88518e97fb4f96f1a652f71ccdd303415a4c7bf5b573bdcbcca80428281f0dfccefc6545ea3a7f18dbb819332f34
+Size (json-c-0.15.tar.gz) = 361488 bytes



Home | Main Index | Thread Index | Old Index