pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/jansson jansson: updated to 2.11



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ab548a57dbb
branches:  trunk
changeset: 313612:9ab548a57dbb
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Oct 04 12:53:07 2018 +0000

description:
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

diffstat:

 textproc/jansson/Makefile      |  16 ++++++++--------
 textproc/jansson/buildlink3.mk |   4 ++--
 textproc/jansson/distinfo      |  10 +++++-----
 3 files changed, 15 insertions(+), 15 deletions(-)

diffs (68 lines):

diff -r b5eaf93693fb -r 9ab548a57dbb textproc/jansson/Makefile
--- a/textproc/jansson/Makefile Thu Oct 04 12:21:33 2018 +0000
+++ b/textproc/jansson/Makefile Thu Oct 04 12:53:07 2018 +0000
@@ -1,23 +1,23 @@
-# $NetBSD: Makefile,v 1.5 2015/01/16 11:50:28 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2018/10/04 12:53:07 adam Exp $
 
-DISTNAME=      jansson-2.7
+DISTNAME=      jansson-2.11
 CATEGORIES=    textproc
 MASTER_SITES=  http://www.digip.org/jansson/releases/
+EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://www.digip.org/jansson/
 COMMENT=       C library for encoding, decoding and manipulating JSON data
 LICENSE=       mit
 
-USE_LANGUAGES= c99
-GNU_CONFIGURE= yes
-USE_LIBTOOL=   yes
-USE_TOOLS+=    pkg-config
-
+USE_LANGUAGES=         c99
+USE_LIBTOOL=           yes
+USE_TOOLS+=            pkg-config
+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
+TEST_TARGET=           check
 
 .include "../../mk/bsd.pkg.mk"
diff -r b5eaf93693fb -r 9ab548a57dbb textproc/jansson/buildlink3.mk
--- a/textproc/jansson/buildlink3.mk    Thu Oct 04 12:21:33 2018 +0000
+++ b/textproc/jansson/buildlink3.mk    Thu Oct 04 12:53:07 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2018/01/07 13:04:33 rillig Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2018/10/04 12:53:07 adam Exp $
 
 BUILDLINK_TREE+=       jansson
 
@@ -6,7 +6,7 @@
 JANSSON_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.jansson+=        jansson>=2.0
-BUILDLINK_ABI_DEPENDS.jansson?=        jansson>=2.4nb1
+BUILDLINK_ABI_DEPENDS.jansson+=        jansson>=2.4nb1
 BUILDLINK_PKGSRCDIR.jansson?=  ../../textproc/jansson
 
 .endif # JANSSON_BUILDLINK3_MK
diff -r b5eaf93693fb -r 9ab548a57dbb textproc/jansson/distinfo
--- a/textproc/jansson/distinfo Thu Oct 04 12:21:33 2018 +0000
+++ b/textproc/jansson/distinfo Thu Oct 04 12:53:07 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 01:59:37 agc Exp $
+$NetBSD: distinfo,v 1.4 2018/10/04 12:53:07 adam Exp $
 
-SHA1 (jansson-2.7.tar.gz) = 7d8686d84fd46c7c28d70bf2d5e8961bc002845e
-RMD160 (jansson-2.7.tar.gz) = b30b0b41b6cfe839559cecf15701d3424248dff3
-SHA512 (jansson-2.7.tar.gz) = 657b715868c2fbf8da1e41befee2691524190e12255214c472652ca3e3793b03e2b384dc3aedb1071b67b0b8cb57fd495103979983fe21a2404f12cd70295a28
-Size (jansson-2.7.tar.gz) = 445179 bytes
+SHA1 (jansson-2.11.tar.bz2) = 02eedcc641c5770da423a0ea05e3a104bafd7ef1
+RMD160 (jansson-2.11.tar.bz2) = 3bcee164d2cfb3432aa129988bac86b19109d8d6
+SHA512 (jansson-2.11.tar.bz2) = 3a9ef8c470d203ef65f214d979d0a8dfc034ff1417b2af7071564c804e33d51f7b30915c7d62ac2156092aef756e4cdc3298a67205b913ffc312dcafeeefc1dc
+Size (jansson-2.11.tar.bz2) = 399179 bytes



Home | Main Index | Thread Index | Old Index