json-c: Update to version 0.17

Message ID 20230827101745.6483-4-adolf.belka@ipfire.org
State Staged
Commit df80b0d554ea2124426b320ad28ae4c047446cb1
Headers
Series json-c: Update to version 0.17 |

Commit Message

Adolf Belka Aug. 27, 2023, 10:17 a.m. UTC
  - Update from version 0.16 to 0.17
- Update of rootfile
- Changelog
    0.17 (up to commit 077661f, 2023-08-08)
	Deprecated and removed features:
		* None
	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

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
 config/rootfiles/common/json-c | 3 ++-
 lfs/json-c                     | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
  

Patch

diff --git a/config/rootfiles/common/json-c b/config/rootfiles/common/json-c
index 58b6916af..f050376cb 100644
--- a/config/rootfiles/common/json-c
+++ b/config/rootfiles/common/json-c
@@ -7,6 +7,7 @@ 
 #usr/include/json-c/json_inttypes.h
 #usr/include/json-c/json_object.h
 #usr/include/json-c/json_object_iterator.h
+#usr/include/json-c/json_patch.h
 #usr/include/json-c/json_pointer.h
 #usr/include/json-c/json_tokener.h
 #usr/include/json-c/json_types.h
@@ -20,5 +21,5 @@ 
 #usr/lib/cmake/json-c/json-c-targets.cmake
 #usr/lib/libjson-c.so
 usr/lib/libjson-c.so.5
-usr/lib/libjson-c.so.5.2.0
+usr/lib/libjson-c.so.5.3.0
 #usr/lib/pkgconfig/json-c.pc
diff --git a/lfs/json-c b/lfs/json-c
index 642afd26a..e529eb141 100644
--- a/lfs/json-c
+++ b/lfs/json-c
@@ -24,7 +24,7 @@ 
 
 include Config
 
-VER        = 0.16
+VER        = 0.17
 
 THISAPP    = json-c-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -40,7 +40,7 @@  objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_BLAKE2 = 11457fa39330338c85bfdfb0dd38fc703ad6942e730ba090c9fe017dfb81ef905d7b1bb1c768b9b51f6445a8cf3cf4007d7740be3a9878f8062edc62ba554c66
+$(DL_FILE)_BLAKE2 = 26be25141447f2b652fa09d7096141a8bf7992469bcc53b275c1bc0108fc36a8898a8185c381218d3146d00fa03bdd0b837be073410fc93af943b5f083dbaa69
 
 install : $(TARGET)