head 1.11; access; symbols pkgsrc-2023Q4:1.8.0.8 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.6 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.4 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.2 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.7.0.4 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.2 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.5.0.2 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.4.0.12 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.10 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.8 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.6 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.4 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.2 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.2.0.8 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.6 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.2 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.4 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.1.0.2 pkgsrc-2019Q3-base:1.1; locks; strict; comment @# @; 1.11 date 2024.02.04.19.13.16; author schmonz; state Exp; branches; next 1.10; commitid g76XjAsD4d9Sj9XE; 1.10 date 2024.02.04.19.12.41; author schmonz; state Exp; branches; next 1.9; commitid tNBmX2xQocgFj9XE; 1.9 date 2024.02.04.08.16.38; author adam; state Exp; branches; next 1.8; commitid 81cCNF6AINZxG5XE; 1.8 date 2023.03.15.14.34.45; author adam; state Exp; branches; next 1.7; commitid j3GtIryR2yURfehE; 1.7 date 2022.08.05.20.21.21; author adam; state Exp; branches; next 1.6; commitid YY5pO1bhfkSnjJOD; 1.6 date 2022.07.25.11.12.22; author wiz; state Exp; branches; next 1.5; commitid 6RYOoAzN4cnKCgND; 1.5 date 2022.04.12.22.36.02; author tnn; state Exp; branches; next 1.4; commitid pMZamjHMS1iKKXzD; 1.4 date 2020.11.25.05.54.45; author riastradh; state Exp; branches; next 1.3; commitid yO2j0zvaasqHnexC; 1.3 date 2020.10.22.20.19.39; author tnn; state Exp; branches; next 1.2; commitid Mnd6ldsBRF5MfWsC; 1.2 date 2019.11.03.10.39.15; author rillig; state Exp; branches; next 1.1; commitid REW2CfrA7HdqqoJB; 1.1 date 2019.08.23.17.14.45; author agc; state Exp; branches; next ; commitid iAFi6ptbUrosVaAB; desc @@ 1.11 log @libcbor: oops, didn't mean to leave in a PKGREVISION bump. @ text @# $NetBSD: Makefile,v 1.10 2024/02/04 19:12:41 schmonz Exp $ DISTNAME= libcbor-0.11.0 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GITHUB:=PJK/} GITHUB_TAG= v${PKGVERSION_NOREV} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://github.com/PJK/libcbor COMMENT= Parsing and generate schema-less binary data format LICENSE= mit USE_LANGUAGES= c c++ CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON CMAKE_ARGS+= -DWITH_EXAMPLES=OFF CHECK_PORTABILITY_SKIP+= misc/hooks/* PLIST_SUBST+= PKGVERSION_SANS_TEENY=${PKGVERSION_NOREV:C/\.[0-9]*$//} .include "../../devel/cmake/build.mk" .include "../../mk/bsd.pkg.mk" @ 1.10 log @libcbor: fix PLIST (and hopefully stay fixed on next update). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2024/02/04 08:16:38 adam Exp $ a3 1 PKGREVISION= 1 @ 1.9 log @libcbor: updated to 0.11.0 0.11.0 (2024-02-04) --------------------- - [Updated documentation to refer to RFC 8949](https://github.com/PJK/libcbor/issues/269) - Improvements to `cbor_describe` - [Bytestring data will now be printed as well](https://github.com/PJK/libcbor/pull/281) by [akallabeth](https://github.com/akallabeth) - [Formatting consistency and clarity improvements](https://github.com/PJK/libcbor/pull/285) - [Fix `cbor_string_set_handle` not setting the codepoint count](https://github.com/PJK/libcbor/pull/286) - BREAKING: [`cbor_load` will no longer fail on input strings that are well-formed but not valid UTF-8](https://github.com/PJK/libcbor/pull/286) - If you were relying on the validation, please check the result using `cbor_string_codepoint_count` instead - BREAKING: [All decoders like `cbor_load` and `cbor_stream_decode` will accept all well-formed tag values](https://github.com/PJK/libcbor/pull/308) (bug discovered by [dskern-github](https://github.com/dskern-github)) - Previously, decoding of certain values would fail with `CBOR_ERR_MALFORMATED` or `CBOR_DECODER_ERROR` - This also makes decoding symmetrical with serialization, which already accepts all values @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2023/03/15 14:34:45 adam Exp $ d4 1 d20 2 @ 1.8 log @libcbor: updated to 0.10.2 0.10.2 (2023-01-31) Fixed minor test bug causing failures for x86 Linux (discovered by trofi) Actual libcbor functionality not affected, bug was in the test suite Made tests platform-independent 0.10.1 (2022-12-30) Fix a regression in cbor_serialize_alloc that caused serialization of zero-length strings and bytestrings or byte/strings with zero-length chunks to fail (discovered by martelletto) 0.10.0 (2022-12-29) Make the buffer_size optional in cbor_serialize_alloc BREAKING: Improved half-float encoding for denormalized numbers. Denormalized half-floats will now preserve data in the mantissa Note: Half-float NaNs still lose data BUILD BREAKING: Minimum CMake version is 3.0 See https://repology.org/project/cmake/versions for support; the vast majority of users should not be affected. Fix a potential memory leak when the allocator fails during array or map decoding Fix a memory leak when the allocator fails when adding chunks to indefinite bytestrings. (discovered by James-ZHANG) Fix a memory leak when the allocator fails when adding chunks to indefinite strings Potentially BUILD BREAKING: Add nodiscard attributes to most functions Warning: This may cause new build warnings and (in rare cases, depending on your configuration) errors BREAKING: Fix cbor_copy leaking memory and creating invalid items when the allocator fails. Previously, the failures were not handled in the interface. Now, cbor_copy may return NULL upon failure; clients should check the return value Fix cbor_build_tag illegal memory behavior when the allocator fails Add a new cbor_serialized_size API Reworked cbor_serialize_alloc to allocate the exact amount of memory necessary upfront This should significantly speed up cbor_serialize_alloc for large items by avoiding multiple reallocation iterations Clients should not use the return value of cbor_serialize_alloc. It may be removed in the future. BUILD BREAKING: Deprecate CBOR_CUSTOM_ALLOC cbor_set_allocs will always be enabled from now on Note: The flag will be kept as a no-op triggering a warning when used for one version and then removed completely @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2022/08/05 20:21:21 adam Exp $ d3 1 a3 1 DISTNAME= libcbor-0.10.2 d13 1 a13 2 USE_LANGUAGES+= c c++ USE_CMAKE= yes d19 1 @ 1.7 log @libcbor: do not build examples @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2022/07/25 11:12:22 wiz Exp $ d3 1 a3 1 DISTNAME= libcbor-0.9.0 @ 1.6 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.5 2022/04/12 22:36:02 tnn Exp $ d8 1 a8 1 MAINTAINER= pkgsrc-users@@pkgsrc.org d16 1 @ 1.5 log @libcbor: update to 0.9.0 Improved pkg-config paths handling Use explicit math.h linkage Fixed handling of items that exceed the host size_t range @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2020/11/25 05:54:45 riastradh Exp $ a14 1 USE_TOOLS+= pkg-config @ 1.4 log @devel/libcbor: ldexp requires -lm. This mechanism is a kludge -- I would like to just say LIBS+= -lm but that doesn't work with cmake. Feel free to replace this by a better mechanism for cmake! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2020/10/22 20:19:39 tnn Exp $ d3 1 a3 1 DISTNAME= libcbor-0.8.0 a16 1 CMAKE_ARGS+= -DCMAKE_C_STANDARD_LIBRARIES="-lm" # ldexp @ 1.3 log @libcbor: update to 0.8.0 This is an ABI breaking update so security/libfido2 must also be updated. v0.8.0 BREAKING: Fix cbor_tag_item not increasing the reference count on the tagged item reference it returns [Fixes #109] (discovered bt JohnGilmour) BREAKING: CBOR_DECODER_EBUFFER removed from cbor_decoder_status Fixed several minor manpage issues [#159] (discovered by kloczek@@) v0.7.0 Fix bad encoding of NaN half-floats [Fixes #53] (discovered by BSipos-RKF) Fix potentially bad encoding of negative half-float with exponent < -14 [Fixes #112] (discovered by yami36) BREAKING: Improved bool support [Fixes #63] Fix memory_allocation_test breaking the build without CBOR_CUSTOM_ALLOC [Fixes #128] (by panlinux) Fix a potential build issue where cJSON includes may be misconfigured Breaking: Add a limit on the size of the decoding context stack (by James-ZHANG) Enable LTO/IPO based on CheckIPOSupported [#143] (by xanderlent) v0.6.1 Fix bad shared library version number v0.6.0 Correctly set .so version [Fixes #52]. Fix & prevent heap overflow error in example code [#74] [#76] (by @@nevun) Correctly set OSX dynamic library version [Fixes #75] Fix misplaced 0xFF bytes in maps possibly causing memory corruption BREAKING: Fix handling & cleanup of failed memory allocation in constructor and builder helper functions [Fixes #84] Globally enforced code style [Fixes #83] Fix issue possible memory corruption bug on repeated cbor_(byte)string_add_chunk calls with intermittently failing realloc calls Fix possibly misaligned reads and writes when endian.h is uses or when running on a big-endian machine [Fixes #99, #100] @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2019/11/03 10:39:15 rillig Exp $ d17 1 @ 1.2 log @devel: align variable assignments pkglint -Wall -F --only aligned --only indent -r No manual corrections. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2019/08/23 17:14:45 agc Exp $ d3 1 a3 3 DISTNAME= libcbor PKGNAME= libcbor-${VERSION} VERSION= 0.5.0 d6 1 a6 1 GITHUB_TAG= v${VERSION} d16 3 @ 1.1 log @Add libcbor version 0.5.0 to the packages collection libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format. From cbor.io: RFC 7049 Concise Binary Object Representation "The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation." @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2015/06/30 02:29:52 cfkoch Exp $ d3 6 a8 6 DISTNAME= libcbor PKGNAME= libcbor-${VERSION} VERSION= 0.5.0 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GITHUB:=PJK/} GITHUB_TAG= v${VERSION} d10 4 a13 4 MAINTAINER= pkgsrc-users@@pkgsrc.org HOMEPAGE= https://github.com/PJK/libcbor COMMENT= Parsing and generate schema-less binary data format LICENSE= mit d15 1 a15 1 USE_LANGUAGES+= c c++ @