Thu Oct 22 20:19:39 2020 UTC ()
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]


(tnn)
diff -r1.2 -r1.3 pkgsrc/devel/libcbor/Makefile
diff -r1.1 -r1.2 pkgsrc/devel/libcbor/PLIST
diff -r1.1 -r1.2 pkgsrc/devel/libcbor/buildlink3.mk
diff -r1.1 -r1.2 pkgsrc/devel/libcbor/distinfo

cvs diff -r1.2 -r1.3 pkgsrc/devel/libcbor/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/libcbor/Makefile 2019/11/03 10:39:15 1.2
+++ pkgsrc/devel/libcbor/Makefile 2020/10/22 20:19:39 1.3
@@ -1,19 +1,20 @@ @@ -1,19 +1,20 @@
1# $NetBSD: Makefile,v 1.2 2019/11/03 10:39:15 rillig Exp $ 1# $NetBSD: Makefile,v 1.3 2020/10/22 20:19:39 tnn Exp $
2 2
3DISTNAME= libcbor 3DISTNAME= libcbor-0.8.0
4PKGNAME= libcbor-${VERSION} 
5VERSION= 0.5.0 
6CATEGORIES= devel 4CATEGORIES= devel
7MASTER_SITES= ${MASTER_SITE_GITHUB:=PJK/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=PJK/}
8GITHUB_TAG= v${VERSION} 6GITHUB_TAG= v${PKGVERSION_NOREV}
9 7
10MAINTAINER= pkgsrc-users@pkgsrc.org 8MAINTAINER= pkgsrc-users@pkgsrc.org
11HOMEPAGE= https://github.com/PJK/libcbor 9HOMEPAGE= https://github.com/PJK/libcbor
12COMMENT= Parsing and generate schema-less binary data format 10COMMENT= Parsing and generate schema-less binary data format
13LICENSE= mit 11LICENSE= mit
14 12
15USE_LANGUAGES+= c c++ 13USE_LANGUAGES+= c c++
16USE_CMAKE= yes 14USE_CMAKE= yes
17USE_TOOLS+= pkg-config 15USE_TOOLS+= pkg-config
 16CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
 17
 18CHECK_PORTABILITY_SKIP+= misc/hooks/*
18 19
19.include "../../mk/bsd.pkg.mk" 20.include "../../mk/bsd.pkg.mk"

cvs diff -r1.1 -r1.2 pkgsrc/devel/libcbor/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/libcbor/PLIST 2019/08/23 17:14:45 1.1
+++ pkgsrc/devel/libcbor/PLIST 2020/10/22 20:19:39 1.2
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1@comment $NetBSD: PLIST,v 1.1 2019/08/23 17:14:45 agc Exp $ 1@comment $NetBSD: PLIST,v 1.2 2020/10/22 20:19:39 tnn Exp $
2include/cbor.h 2include/cbor.h
3include/cbor/arrays.h 3include/cbor/arrays.h
4include/cbor/bytestrings.h 4include/cbor/bytestrings.h
5include/cbor/callbacks.h 5include/cbor/callbacks.h
 6include/cbor/cbor_export.h
6include/cbor/common.h 7include/cbor/common.h
7include/cbor/configuration.h 8include/cbor/configuration.h
8include/cbor/data.h 9include/cbor/data.h
9include/cbor/encoding.h 10include/cbor/encoding.h
10include/cbor/floats_ctrls.h 11include/cbor/floats_ctrls.h
11include/cbor/internal/builder_callbacks.h 12include/cbor/internal/builder_callbacks.h
12include/cbor/internal/encoders.h 13include/cbor/internal/encoders.h
13include/cbor/internal/loaders.h 14include/cbor/internal/loaders.h
14include/cbor/internal/memory_utils.h 15include/cbor/internal/memory_utils.h
15include/cbor/internal/stack.h 16include/cbor/internal/stack.h
16include/cbor/internal/unicode.h 17include/cbor/internal/unicode.h
17include/cbor/ints.h 18include/cbor/ints.h
18include/cbor/maps.h 19include/cbor/maps.h
19include/cbor/serialization.h 20include/cbor/serialization.h
20include/cbor/streaming.h 21include/cbor/streaming.h
21include/cbor/strings.h 22include/cbor/strings.h
22include/cbor/tags.h 23include/cbor/tags.h
23lib/libcbor.a 
24lib/libcbor.so 24lib/libcbor.so
25lib/libcbor.so.0 25lib/libcbor.so.0.8
26lib/libcbor.so.0.0.0 26lib/libcbor.so.${PKGVERSION}
27lib/pkgconfig/libcbor.pc 27lib/pkgconfig/libcbor.pc

cvs diff -r1.1 -r1.2 pkgsrc/devel/libcbor/buildlink3.mk (expand / switch to unified diff)

--- pkgsrc/devel/libcbor/buildlink3.mk 2020/08/19 16:25:19 1.1
+++ pkgsrc/devel/libcbor/buildlink3.mk 2020/10/22 20:19:39 1.2
@@ -1,14 +1,12 @@ @@ -1,14 +1,12 @@
1# $NetBSD: buildlink3.mk,v 1.1 2020/08/19 16:25:19 riastradh Exp $ 1# $NetBSD: buildlink3.mk,v 1.2 2020/10/22 20:19:39 tnn Exp $
2 2
3BUILDLINK_TREE+= libcbor 3BUILDLINK_TREE+= libcbor
4 4
5.if !defined(LIBCBOR_BUILDLINK_MK) 5.if !defined(LIBCBOR_BUILDLINK3_MK)
6LIBCBOR_BUILDLINK_MK:= 6LIBCBOR_BUILDLINK3_MK:=
7 7
8BUILDLINK_API_DEPENDS.libcbor+= libcbor>=0.5.0 8BUILDLINK_API_DEPENDS.libcbor+= libcbor>=0.8.0
9BUILDLINK_ABI_DEPENDS.libcbor+= libcbor>=0.5.0 
10BUILDLINK_PKGSRCDIR.libcbor?= ../../devel/libcbor 9BUILDLINK_PKGSRCDIR.libcbor?= ../../devel/libcbor
11 10.endif # LIBCBOR_BUILDLINK3_MK
12.endif # LIBCBOR_BUILDLINK_MK 
13 11
14BUILDLINK_TREE+= -libcbor 12BUILDLINK_TREE+= -libcbor

cvs diff -r1.1 -r1.2 pkgsrc/devel/libcbor/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libcbor/distinfo 2019/08/23 17:14:45 1.1
+++ pkgsrc/devel/libcbor/distinfo 2020/10/22 20:19:39 1.2
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.1 2019/08/23 17:14:45 agc Exp $ 1$NetBSD: distinfo,v 1.2 2020/10/22 20:19:39 tnn Exp $
2 2
3SHA1 (libcbor.tar.gz) = 1d03ae595a02929861dd2735b2abe20cacaaa707 3SHA1 (libcbor-0.8.0.tar.gz) = 7ef8ab1d41973da933b27516b3398cbdeade6cb1
4RMD160 (libcbor.tar.gz) = 7ccc6309a1757a53ecb7b197c1b3704cd9f38ee3 4RMD160 (libcbor-0.8.0.tar.gz) = ddd307e64b50f2a777a88e89e10e3891571226a2
5SHA512 (libcbor.tar.gz) = 5c2e9610d9fbb0bfc59f89a180f70b58539a1760fd39cad696af372c164a87828a23bb4d3a54d8e9d846be5271204800f0ad63656ef830f06a0ccdd10edfdb2c 5SHA512 (libcbor-0.8.0.tar.gz) = 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
6Size (libcbor.tar.gz) = 719348 bytes 6Size (libcbor-0.8.0.tar.gz) = 267044 bytes