Hello community, here is the log from the commit of package json-c for openSUSE:Factory checked in at 2018-01-09 14:35:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/json-c (Old) and /work/SRC/openSUSE:Factory/.json-c.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "json-c" Tue Jan 9 14:35:35 2018 rev:22 rq:560279 version:0.13 Changes: -------- --- /work/SRC/openSUSE:Factory/json-c/json-c.changes 2017-04-24 09:45:23.264776874 +0200 +++ /work/SRC/openSUSE:Factory/.json-c.new/json-c.changes 2018-01-09 14:35:36.589275526 +0100 @@ -1,0 +2,86 @@ +Thu Dec 28 05:17:43 UTC 2017 - [email protected] + +- json-c 0.13 + + Deprecated and removed features: + * Internal use of bits.h has been eliminated. + * lh_abort() is deprecated + + Behavior changes: + * Tighten the number parsing algorithm to raise errors instead + of truncating the results. For example 12.3.4 or 2015-01-15, + which now return null. + * Use size_t for array length and size. Platforms where + sizeof(size_t) != sizeof(int) may not be backwards compatible + * Check for failue when allocating memory, returning NULL and + errno=ENOMEM. + * Change json_object_object_add() return type from void to int, + and will return -1 on failures, instead of exiting. (Note: + this is not an ABI change) + + New features: + * Aiming to follow RFC 7159 now. + * Support for JSON pointer, RFC 6901 (see json_pointer.h) + * Add a couple of additional option to json_object_to_json_string_ext: + JSON_C_TO_STRING_PRETTY_TAB + JSON_C_TO_STRING_NOSLASHESCAPE + * json_object_object_add_ex() - better perf when certain + constraints are known to be true + * Serialization format of doubles now configurable + * New functions + - json_object_equal() - utility function for comparing + json_objects + - json_object_deep_copy() - a way to copy entire object + trees + - json_object_set_<type>() - modify the value of + existing json_object's without the need to recreate them. + Also add a json_object_int_inc function to adjust an int's' + value. + - json_util_get_last_err() - retrieve the string describing + the cause of errors, instead of printing to stderr. + - perllike hash function for strings + * json_global_set_string_hash() + * json_c_visit() - a way to iterate over a tree of json-c + objects. + + Notable bug fixes and other improvements: + * Make reference increment and decrement atomic to allow + passing json objects between threads. + * Fix json_object_object_foreach to avoid uninitialized + variable warnings. + * Improve performance by removing unneeded data items from + hashtable code and reducing duplicate hash computation. + * Performance: store small strings inside json_object + * Performance: of json_object_to_json_string by removing + variadic printf + * Fix parsing of "-Infinity", and avoid needlessly copying the + input when doing so. + * Fix stack buffer overflow in json_object_double_to_json_string_format() + * Fix various potential null ptr deref and int32 overflows + * Fix a long-standing bug in array_list_put_idx() where it + would attempt to free previously free'd entries due to not + checking the current array length. + * use uselocale() instead of setlocale() in json_tokener to + behave better in threaded environments. + * Fix out of bounds read when handling unicode surrogate pairs. + * Ensure doubles that happen to be a whole number are emitted + with ".0" + * Visual Studio: use a snprintf/vsnprintf wrapper that ensures + the string is terminated. + * Fix double to int cast overflow in json_object_get_int64. + * Clamp double to int32 when narrowing in json_object_get_int. + * Use strtoll() to parse ints - instead of sscanf + * usual code linting + + Build changes: + * Add Appveyor and Travis build support + * Support for MacOS and Windows through CMake + * Silent build by default + * Link against libm when needed + * Add support for building with AddressSanitizer + * Add support for building with Clang + * Add a --enable-threading configure option, and only use the + (slower) __sync_add_and_fetch()/__sync_sub_and_fetch() + function when it is specified. +- cleanup with spec-cleaner +- remove fix-set-but-not-used.patch + + fixed: https://github.com/json-c/json-c/issues/240 +- remove gcc7-fix.patch + + fixed in 014924ba899f659917bb64392bbff7d3c803afc2 + +------------------------------------------------------------------- Old: ---- fix-set-but-not-used.patch gcc7-fix.patch json-c-0.12.1.tar.gz New: ---- json-c-0.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ json-c.spec ++++++ --- /var/tmp/diff_new_pack.WQTH18/_old 2018-01-09 14:35:37.321241190 +0100 +++ /var/tmp/diff_new_pack.WQTH18/_new 2018-01-09 14:35:37.329240815 +0100 @@ -17,10 +17,10 @@ %define libname libjson-c -%define libsoname %{libname}2 +%define libsoname %{libname}3 %define oldlibname libjson Name: json-c -Version: 0.12.1 +Version: 0.13 Release: 0 Summary: JSON implementation in C License: MIT @@ -29,14 +29,9 @@ #Git-Clone git://github.com/json-c/json-c Source0: https://s3.amazonaws.com/json-c_releases/releases/%{name}-%{version}.tar.gz Source1: baselibs.conf -# PATCH-FIX-UPSTREAM fix-set-but-not-used.patch -- Fix set-but-not-used compile error in tests https://github.com/json-c/json-c/issues/240 -Patch0: fix-set-but-not-used.patch -# PATCH-FIX-UPSTREAM gcc7-fix.patch -- Fix new warnings seen by GCC7 -Patch1: gcc7-fix.patch BuildRequires: fdupes BuildRequires: libtool BuildRequires: pkgconfig -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description JSON-C implements a reference counting object model that allows you to @@ -91,8 +86,6 @@ %prep %setup -q -%patch0 -p1 -%patch1 -p1 %build %if 0%{?suse_version} <= 1110 @@ -106,7 +99,7 @@ make %{?_smp_mflags} check %install -make DESTDIR=%{buildroot} install %{?_smp_mflags} DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} +%make_install find %{buildroot} -type f -name "*.la" -delete -print # create a compatibilty pkg-config file for software needing it (cd %{buildroot}%{_libdir}/pkgconfig && ln -s json-c.pc json.pc) @@ -118,18 +111,15 @@ %postun -n %{libsoname} -p /sbin/ldconfig %files -n %{libsoname} -%defattr(-,root,root) %{_libdir}/%{libname}.so.* %doc COPYING %files -n %{libname}-devel -%defattr(-,root,root) %{_libdir}/%{libname}.so %{_includedir}/json-c %{_libdir}/pkgconfig/*.pc %files -n %{libname}-doc -%defattr(-,root,root) %doc AUTHORS ChangeLog COPYING README README.html %doc %{_docdir}/%{name}-doc ++++++ baselibs.conf ++++++ --- /var/tmp/diff_new_pack.WQTH18/_old 2018-01-09 14:35:37.365239127 +0100 +++ /var/tmp/diff_new_pack.WQTH18/_new 2018-01-09 14:35:37.365239127 +0100 @@ -1 +1 @@ -libjson-c2 +libjson-c3 ++++++ json-c-0.12.1.tar.gz -> json-c-0.13.tar.gz ++++++ ++++ 35553 lines of diff (skipped)
