Commit Graph

14 Commits

Author SHA1 Message Date
Alex Kiernan
ce0b93fc12 jansson: Default to shared builds
The change to cmake changed the default to static builds (there doesn't
appear to be a way to ask for both).

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-03 10:26:21 -07:00
Alex Kiernan
7361f9f75f jansson: Backport linker flag fixes
Fix overwriting linker flags.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-03 10:26:21 -07:00
Alex Kiernan
4b26cded9c jansson: Honour multilib paths
When multilib is enabled, builds fail during package_qa:

ERROR: jansson-2.14-r0 do_package: QA Issue: jansson: Files/directories were installed but not shipped in any package:
  /usr/lib
  /usr/lib/libjansson.a
  /usr/lib/pkgconfig
  /usr/lib/cmake
  /usr/lib/pkgconfig/jansson.pc
  /usr/lib/cmake/jansson
  /usr/lib/cmake/jansson/janssonTargets-noconfig.cmake
  /usr/lib/cmake/jansson/janssonConfig.cmake
  /usr/lib/cmake/jansson/janssonConfigVersion.cmake
  /usr/lib/cmake/jansson/janssonTargets.cmake
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
jansson: 10 installed and not shipped files. [installed-vs-shipped]
ERROR: jansson-2.14-r0 do_package: Fatal QA errors were found, failing task.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-10-03 10:26:21 -07:00
Markus Volk
0782ea454a jansson: use cmake instead of autotools
This fixes build with clang and lld linker

| x86_64-poky-linux-ld.lld: error: unknown argument '--default-symver'
| clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-28 14:54:31 -07:00
Alex Kiernan
c1705a1ded jansson: Upgrade 2.13.1 -> 2.14
Releases have moved to github in 2.14.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alex Kiernan <alexk@zuma.ai>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-02 11:37:03 -04:00
Wang Mingyu
ddb9565aeb jansson: upgrade 2.12 -> 2.13.1
-License-Update: Copyright year updated to 2020.

Signed-off-by: Wang Mingyu <wangmy@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-21 15:07:44 -07:00
André Draszik
209bc3d65a jansson: allow to build a -native package
This will e.g. enable us to use it from nghttp2-native

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-07 17:43:43 -08:00
Oleksandr Kravchuk
3d4e72ce6d jansson: update to 2.12
License MD5 hash has been changed due to modified copyright year in the
LICENSE file.

Signed-off-by: Oleksandr Kravchuk <dev@sashko.rv.ua>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-05 10:18:59 -08:00
Andre McCurdy
92362245d7 jansson: update 2.9 -> 2.11
Version 2.11

============

Released 2018-02-09

* New features:

  - Add `json_pack()` format specifiers s*, o* and O* for values that
    can be omitted if null (#339).

  - Add `json_error_code()` to retrieve numeric error codes (#365, #380,
    #381).

  - Enable thread safety for `json_dump()` on all systems.  Enable thread
    safe `json_decref()` and `json_incref()` for modern compilers (#389).

  - Add `json_sprintf()` and `json_vsprintf()` (#393).

* Bug Fixes:

  - Fix incorrect report of success from `json_dump_file()` when an error
    is returned by `fclose()` (#359).

  - Make json_equal() const-correct (#344).

  - Fix incomplete stealing of references by `json_pack()` (#374).

* Build:

  - Work around gcc's -Wimplicit-fallthrough.

  - Fix CMake detection of `sys/types.h` header (#375).

  - Fix `jansson.pc` generated by CMake to be more consistent with the one
    generated using GNU Autotools (#368).

* Other:

  - Miscellaneous documentation fixes (#356, #378, #395).

  - Remove unnecessary reference actions from parsers (#377).

Version 2.10
============

Released 2017-03-02

* New features:

  - Add JSON_EMBED encoding flag allowing arrays and objects to be encoded
    into existing streams (#329).

  - Add `json_dumpb()` function for dumping to a pre-allocated buffer (#328).

  - Add `json_dumpfd()` and `json_loadfd()` functions for dumping to streaming
    file descriptors (#328).

  - Add support for parsing buffers larger than 2GB (#309).

* Build:

  - Fix CMake build when LONG_LONG_INT is defined as "" (#321)

* Other:

  - Internal code cleanup (#311, #314)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-01 14:41:31 -07:00
Igor Socec
fb6585fdce jansson: update to 2.9
Improved build, tests and documentation.

New features: functions and macros (*pack, *foreach, *string*, *alloc*)

Security fixes: CVE-2013-6401

Bugfixes:
- Number parsing and overflows
- Fix l_isxdigit() macro (#97).
- 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).
- Fix a crash when parsing inputs consisting of very deeply nested arrays or objects (#282, #284).
- Never convert numbers to integers in the parser when JSON_DECODE_INT_AS_REAL is set (#212).
- Handle out-of-memory situations gracefully in the hashtable implementation (#298).

The copyright date in the LICENSE file was updated for 2016.

Signed-off-by: Igor Socec <igor.socec@pelagicore.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-10-21 18:20:44 +02:00
Matthieu CRAPET
c95e155780 recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues
Changes:
- rename SUMMARY with length > 80 to DESCRIPTION
- rename DESCRIPTION with length < 80 to (non present tag) SUMMARY
- drop final point character at the end of SUMMARY string
- remove trailing whitespace of SUMMARY line

Note: don't bump PR

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-02-23 23:20:02 +01:00
Jack Mitchell
e2012416a6 jansson: update to 2.4
Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-01-25 13:11:47 +01:00
Khem Raj
bdfbc1665f jansson_2.3.1.bb: Fix multilib use BPN in SRC_URI instead of PN
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2013-01-08 09:31:44 -08:00
Jack Mitchell
35586da6c0 Jansson: new recipe, library for creating and manipulating JSON strings in C
Signed-off-by: Jack Mitchell <jack.mitchell@dbbroadcast.co.uk>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-10-24 08:22:52 +02:00