head 1.11; access; symbols pkgsrc-2023Q4:1.11.0.6 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.4 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.11.0.2 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.10.0.6 pkgsrc-2023Q1-base:1.10 pkgsrc-2022Q4:1.10.0.4 pkgsrc-2022Q4-base:1.10 pkgsrc-2022Q3:1.10.0.2 pkgsrc-2022Q3-base:1.10 pkgsrc-2022Q2:1.9.0.18 pkgsrc-2022Q2-base:1.9 pkgsrc-2022Q1:1.9.0.16 pkgsrc-2022Q1-base:1.9 pkgsrc-2021Q4:1.9.0.14 pkgsrc-2021Q4-base:1.9 pkgsrc-2021Q3:1.9.0.12 pkgsrc-2021Q3-base:1.9 pkgsrc-2021Q2:1.9.0.10 pkgsrc-2021Q2-base:1.9 pkgsrc-2021Q1:1.9.0.8 pkgsrc-2021Q1-base:1.9 pkgsrc-2020Q4:1.9.0.6 pkgsrc-2020Q4-base:1.9 pkgsrc-2020Q3:1.9.0.4 pkgsrc-2020Q3-base:1.9 pkgsrc-2020Q2:1.9.0.2 pkgsrc-2020Q2-base:1.9 pkgsrc-2020Q1:1.7.0.10 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.12 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.7.0.8 pkgsrc-2019Q3-base:1.7 pkgsrc-2019Q2:1.7.0.6 pkgsrc-2019Q2-base:1.7 pkgsrc-2019Q1:1.7.0.4 pkgsrc-2019Q1-base:1.7 pkgsrc-2018Q4:1.7.0.2 pkgsrc-2018Q4-base:1.7 pkgsrc-2018Q3:1.5.0.32 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.30 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.28 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.26 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.24 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.20 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.18 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.16 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.14 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.12 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.10 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.5.0.8 pkgsrc-2015Q4-base:1.5 pkgsrc-2015Q3:1.5.0.6 pkgsrc-2015Q3-base:1.5 pkgsrc-2015Q2:1.5.0.4 pkgsrc-2015Q2-base:1.5 pkgsrc-2015Q1:1.5.0.2 pkgsrc-2015Q1-base:1.5 pkgsrc-2014Q4:1.4.0.4 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.4.0.2 pkgsrc-2014Q3-base:1.4 pkgsrc-2014Q2:1.3.0.4 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.2 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.1.0.4 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.2 pkgsrc-2013Q3-base:1.1; locks; strict; comment @# @; 1.11 date 2023.04.28.18.13.52; author nikita; state Exp; branches; next 1.10; commitid wZDugQBV65Ue3UmE; 1.10 date 2022.07.25.11.12.29; author wiz; state Exp; branches; next 1.9; commitid 6RYOoAzN4cnKCgND; 1.9 date 2020.05.08.13.54.06; author adam; state Exp; branches; next 1.8; commitid j8tr0rbOmPGCur7C; 1.8 date 2020.05.07.09.20.12; author adam; state Exp; branches; next 1.7; commitid jz0UY2SGs72A0i7C; 1.7 date 2018.12.09.20.33.12; author adam; state Exp; branches; next 1.6; commitid ba6vmU96YpeHha3B; 1.6 date 2018.10.04.12.53.07; author adam; state Exp; branches; next 1.5; commitid BJ0AS3QOKANMQDUA; 1.5 date 2015.01.16.11.50.28; author wiz; state Exp; branches; next 1.4; commitid AjCogT2Hwokv8f6y; 1.4 date 2014.07.23.09.42.55; author asau; state Exp; branches; next 1.3; commitid 0vy2dXnZ3g8w7uJx; 1.3 date 2014.02.15.22.08.47; author wiedi; state Exp; branches; next 1.2; commitid GTHn5Ih8u1Kekfpx; 1.2 date 2014.02.12.23.18.41; author tron; state Exp; branches; next 1.1; commitid dfJj7CwMMWJzNRox; 1.1 date 2013.07.13.10.38.32; author wiz; state Exp; branches; next ; commitid h4Z7pyaVGXbWtiXw; desc @@ 1.11 log @jansson: update to version 2.14 upstream location of releases moved. Changelog: Version 2.14 ============ Released 2021-09-09 * New Features: - Add `json_object_getn`, `json_object_setn`, `json_object_deln`, and the corresponding `nocheck` functions. (#520, by Maxim Zhukov) * Fixes: - Handle `sprintf` corner cases (#537, by Tobias Stoeckmann) * Build: - Symbol versioning for all exported symbols (#540, by Simon McVittie) - Fix compiler warnings (#555, by Kelvin Lee) * Documentation: - Small fixes (#544, #546, by @@i-ky) - Sphinx 3 compatibility (#543, by Pierce Lopez) @ text @# $NetBSD: Makefile,v 1.10 2022/07/25 11:12:29 wiz Exp $ DISTNAME= jansson-2.14 CATEGORIES= textproc MASTER_SITES= ${MASTER_SITE_GITHUB:=akheron/} GITHUB_PROJECT= jansson GITHUB_RELEASE= v${PKGVERSION_NOREV} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= http://www.digip.org/jansson/ COMMENT= C library for encoding, decoding and manipulating JSON data LICENSE= mit USE_LANGUAGES= c99 USE_LIBTOOL= yes GNU_CONFIGURE= yes PKGCONFIG_OVERRIDE+= jansson.pc.in # Fails a self-test because the library exports more symbols than it should. # It seems "libtool ... -export-symbols-regex '^json_' ..." doesn't work, # at least not on NetBSD-6.99.20/amd64. TEST_TARGET= check .include "../../mk/bsd.pkg.mk" @ 1.10 log @*: remove pkg-config from tools where no buildlink3.mk file is included Bulk build on NetBSD of these packages had the same result as before (build succeeds, no PLIST change). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2020/05/08 13:54:06 adam Exp $ d3 1 a3 1 DISTNAME= jansson-2.13.1 d5 3 a7 2 MASTER_SITES= http://www.digip.org/jansson/releases/ EXTRACT_SUFX= .tar.bz2 @ 1.9 log @jansson: updated to 2.13.1 Version 2.13.1 * Build: - Include `jansson_version_str()` and `jansson_version_cmp()` in shared library. - Include `scripts/` in tarball. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2020/05/07 09:20:12 adam Exp $ a14 1 USE_TOOLS+= pkg-config @ 1.8 log @jansson: updated to 2.13 Version 2.13 * New Features: - Add `jansson_version_str()` and `jansson_version_cmp()` for runtime version checking - Add `json_object_update_new()`, `json_object_update_existing_new()` and `json_object_update_missing_new()` functions - Add `json_object_update_recursive()` * Build: - Add ``-Wno-format-truncation`` to suppress format truncation warnings * Bug fixes: - Remove ``strtod`` macro definition for MinGW - Add infinite loop check in `json_deep_copy()` - Add ``pipe`` macro definition for MinGW - Enhance ``JANSSON_ATTRS`` macro to support earlier C standard(C89) - Update version detection for sphinx-build * Documentation: - Fix typos - Document that call the custom free function to free the return value of `json_dumps()` if you have a custom malloc/free - Add vcpkg installation instructions - Document that non-blocking file descriptor is not supported on @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2018/12/09 20:33:12 adam Exp $ d3 1 a3 1 DISTNAME= jansson-2.13 @ 1.7 log @jansson: updated to 2.12 Version 2.12 * Bug fixes: - Fix error message in `json_pack()` for NULL object. - Avoid invalid memory read in `json_pack()`. - Call va_end after va_copy in `json_vsprintf()`. - Improve handling of formats with '?' and '*' in `json_pack()`. - Remove inappropriate `jsonp_free()` which caused segmentation fault in error handling. * Build: - Add function attributes for GCC and CLANG to provide warnings on improper use of jansson routines. - Many CMake fixes. - Enable -Bsymbolic-functions linker flag whenever possible. - Resolve various compiler warnings. - Fix code coverage ignored paths. * Other: - Test coverage improvements. - Add VS 2017 to appveyor, update Visual Studio documentation. - Update copyright for 2018. - Update install instructions in README @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2018/10/04 12:53:07 adam Exp $ d3 1 a3 1 DISTNAME= jansson-2.12 @ 1.6 log @jansson: updated to 2.11 Version 2.11 * New features: - Add json_pack() format specifiers s*, o* and O* for values that can be omitted if null - Add json_error_code() to retrieve numeric error codes - Enable thread safety for json_dump() on all systems. Enable thread safe json_decref() and json_incref() for modern compilers - Add json_sprintf() and json_vsprintf() * Bug Fixes: - Fix incorrect report of success from json_dump_file() when an error is returned by fclose() - Make json_equal() const-correct - Fix incomplete stealing of references by json_pack() * Build: - Work around gcc's -Wimplicit-fallthrough. - Fix CMake detection of sys/types.h header - Fix jansson.pc generated by CMake to be more consistent with the one generated using GNU Autotools * Other: - Miscellaneous documentation fixes - Remove unnecessary reference actions from parsers Version 2.10 * New features: - Add JSON_EMBED encoding flag allowing arrays and objects to be encoded into existing streams - Add json_dumpb() function for dumping to a pre-allocated buffer - Add json_dumpfd() and json_loadfd() functions for dumping to streaming file descriptors - Add support for parsing buffers larger than 2GB * Build: - Fix CMake build when LONG_LONG_INT is defined as "" * Other: - Internal code cleanup Version 2.9 * New features: - Add json_auto_t to automatically decref a value that goes out of scope. Available only on GCC and Clang. * Build: - Fix CMake build (at least on Linux) by removing conflicting jansson_config.h from the distribution - Change CMake install target generation to be optional * Documentation: - Small documentation fixes. Version 2.8 * New features: - Always preserve insertion order of object items. json_object_iter() and friends, json_object_foreach() and json_dumps() and friends now always work in the insertion order of object items - Add json_object_foreach_safe() macro that allows json_object_del() calls during iteration - Add json_get_alloc_funcs() to allow reading the allocation functions set by json_set_alloc_funcs() - Add json_pack() format specifiers s?, o? and O? for values that can be null * Bug fixes: - Fix a crash when parsing inputs consisting of very deeply nested arrays or objects - Never convert numbers to integers in the parser when JSON_DECODE_INT_AS_REAL is set. This fixes error messages for overflowing numbers when JSON_DECODE_INT_AS_REAL is set - Fix a use-after-free in json_pack() error handling. - Fix subnormal number parsing on mingw32. - Handle out-of-memory situations gracefully in the hashtable implementation * Build: - Fix build with CMake on all versions of Visual Studio up to 2015 - Fix pkgconfig libdir when using CMake - Fix CMake config for static CRT builds on Windows - Fix warnings on LLVM 6.0 targeting iOS arm64 - Add coverlls.io support via Travis for a nice test coverage badge - Don't expect jansson_config.h to be in the compiler's include path - Add a build-time option to set initial hashtable size - Use snprintf and strncpy in place of sprintf and strcpy to silence linker warnings on OpenBSD * Documentation: - Fix various typos in documentation, and a broken link - Add an example program in examples/ - Fix building of documentation man pages - Document the fact that copying objects doesn't preserve the insertion order of keys * Tests: - Don't use the nonstandard __FUNCTION__ macro in tests. - Use expr instead of $((...)) in shell scripts for Solaris 10 compatibility. - Disable Visual Studio warning C4756 when triggered deliberately in tests - Other minor fixes * Other changes: - List all unrecognized object keys when strict unpacking fails - Alter the order of the members of the hashtable_pair struct for easier debugging. - Minor performance improvement to json_dump() and friends - Minor style fixes @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2015/01/16 11:50:28 wiz Exp $ d3 1 a3 1 DISTNAME= jansson-2.11 @ 1.5 log @Update to 2.7: Version 2.7 =========== Released 2014-10-02 * New features: - `json_pack()` and friends: Add format specifiers ``s%`` and ``+%`` for a size_t string length (#141). - `json_unpack()` and friends: Add format specifier ``s%`` for unpacking the string length along with the string itself (#141). - Add length-aware string constructors `json_stringn()` and `json_stringn_nocheck()`, length-aware string mutators `json_string_setn()` and `json_string_setn_nocheck()`, and a function for getting string's length `json_string_length()` (#141, #143). - Support ``\u0000`` escapes in the decoder. The support can be enabled by using the ``JSON_ALLOW_NUL`` decoding flag (#141). - Add `json_boolean_value()` as an alias for `json_is_true()` (#146). - Add JSON_REAL_PRECISION encoding flag/macro for controlling real number precision (#178). - Define the maximum indentation as JSON_MAX_INDENT (#191). * Bug fixes: - Some malformed ``\uNNNN`` escapes could crash the decoder with an assertion failure. - Avoid integer overflows with very long strings in UTF-8 decoder and hashtable. - Check for *NULL* key in `json_object_get()` and `json_object_del()` (#151). - Enhance hashtable seeding on Windows (#162). - `json_unpack()`: Allow mixing JSON_STRICT with optional keys (#162, #163). - Fix int/int32 mismatch (#142). - Parse subnormal numbers correctly (#202). * Build: - Remove VS2010 build files. CMake should be used on Windows instead (#165). - Fix CMake build flags for MinGW (#193). - Add CMake config files for find_package. Rename config.h to jansson_private_config.h (#157, #159). - Make Valgrind checks work with CMake (#160). - Fix feature checks to use correct __ATOMIC flags. - Fix CMake checks for uint16_t and uint8_t support (#177). - Make Jansson build on SmartOS/Solaris (#171). - Work around a GCC bug on Solaris (#175). - Fix autoreconf on Debian (#182). - Don't use GNU make specific export for global AM_CFLAGS (#203, #204). - Fix building on Android using the supplied Android.mk (#166, #174). - Android.mk: Add -DHAVE_STDINT_H to LOCAL_CFLAGS (#200). * Documentation: - Document JANSSON_BUILD_SHARED_LIBS CMake option (#187). * Tests: - Close file handles correctly (#198). * Other changes: - ``\uNNNN`` escapes are now encoded in upper case for better readability. - Enable usage of AddressSanitizer (#180). Version 2.6 =========== Released 2014-02-11 * Security: - CVE-2013-6401: The hash function used by the hashtable implementation has been changed, and is automatically seeded with random data when the first JSON object is created. This prevents an attacker from causing large JSON objects with specially crafted keys perform poorly. * New features: - `json_object_seed()`: Set the seed value of the hash function. * Bug fixes: - Include CMake specific files in the release tarball. * Documentation: - Fix tutorial source to send a User-Agent header, which is now required by the GitHub API. - Set all memory to zero in secure_free() example. Version 2.5 =========== Released 2013-09-19 * New features: - `json_pack()` and friends: Add format specifiers ``s#``, ``+`` and ``+#``. - Add ``JSON_DECODE_INT_AS_REAL`` decoding flag to treat all numbers as real in the decoder (#123). - Add `json_array_foreach()`, paralleling `json_object_foreach()` (#118). * Bug fixes: - `json_dumps()` and friends: Don't crash if json is *NULL* and ``JSON_ENCODE_ANY`` is set. - Fix a theoretical integer overflow in `jsonp_strdup()`. - Fix `l_isxdigit()` macro (#97). - Fix an off-by-one error in `json_array_remove()`. * Build: - Support CMake in addition to GNU Autotools (#106, #107, #112, #115, #120, #127). - Support building for Android (#109). - Don't use ``-Werror`` by default. - Support building and testing with VPATH (#93). - Fix compilation when ``NDEBUG`` is defined (#128) * Tests: - Fix a refleak in ``test/bin/json_process.c``. * Documentation: - Clarify the return value of `json_load_callback_t`. - Document how to circumvent problems with separate heaps on Windows. - Fix memory leaks and warnings in ``github_commits.c``. - Use `json_decref()` properly in tutorial. * Other: - Make it possible to forward declare ``struct json_t``. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2014/07/23 09:42:55 asau Exp $ d3 1 a3 1 DISTNAME= jansson-2.7 d6 1 d13 4 a16 5 USE_LANGUAGES= c99 GNU_CONFIGURE= yes USE_LIBTOOL= yes USE_TOOLS+= pkg-config d21 1 a21 1 TEST_TARGET= check @ 1.4 log @Failing tests is no reason to turn them off. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2014/02/15 22:08:47 wiedi Exp $ d3 1 a3 2 DISTNAME= jansson-2.4 PKGREVISION= 1 @ 1.3 log @use c99 to fix build on SunOS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2014/02/12 23:18:41 tron Exp $ d22 1 a22 1 #TEST_TARGET= check @ 1.2 log @Recursive PKGREVISION bump for OpenSSL API version bump. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2013/07/13 10:38:32 wiz Exp $ d13 1 @ 1.1 log @Import jansson-2.4 as textproc/jansson. Jansson is a C library for encoding, decoding and manipulating JSON data. It features: * Simple and intuitive API and data model * Comprehensive documentation * No dependencies on other libraries * Full Unicode support (UTF-8) * Extensive test suite @ text @d1 1 a1 1 # $NetBSD$ d4 1 @