Skip to content

Commit

Permalink
libcbor: update to 0.8.0
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
tnn2 committed Oct 22, 2020
1 parent 7f69de9 commit 14141b9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
11 changes: 6 additions & 5 deletions devel/libcbor/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# $NetBSD: Makefile,v 1.2 2019/11/03 10:39:15 rillig Exp $
# $NetBSD: Makefile,v 1.3 2020/10/22 20:19:39 tnn Exp $

DISTNAME= libcbor
PKGNAME= libcbor-${VERSION}
VERSION= 0.5.0
DISTNAME= libcbor-0.8.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=PJK/}
GITHUB_TAG= v${VERSION}
GITHUB_TAG= v${PKGVERSION_NOREV}

MAINTAINER= pkgsrc-users@pkgsrc.org
HOMEPAGE= https://github.com/PJK/libcbor
Expand All @@ -15,5 +13,8 @@ LICENSE= mit
USE_LANGUAGES+= c c++
USE_CMAKE= yes
USE_TOOLS+= pkg-config
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON

CHECK_PORTABILITY_SKIP+= misc/hooks/*

.include "../../mk/bsd.pkg.mk"
8 changes: 4 additions & 4 deletions devel/libcbor/PLIST
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@comment $NetBSD: PLIST,v 1.1 2019/08/23 17:14:45 agc Exp $
@comment $NetBSD: PLIST,v 1.2 2020/10/22 20:19:39 tnn Exp $
include/cbor.h
include/cbor/arrays.h
include/cbor/bytestrings.h
include/cbor/callbacks.h
include/cbor/cbor_export.h
include/cbor/common.h
include/cbor/configuration.h
include/cbor/data.h
Expand All @@ -20,8 +21,7 @@ include/cbor/serialization.h
include/cbor/streaming.h
include/cbor/strings.h
include/cbor/tags.h
lib/libcbor.a
lib/libcbor.so
lib/libcbor.so.0
lib/libcbor.so.0.0.0
lib/libcbor.so.0.8
lib/libcbor.so.${PKGVERSION}
lib/pkgconfig/libcbor.pc
12 changes: 5 additions & 7 deletions devel/libcbor/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.1 2020/08/19 16:25:19 riastradh Exp $
# $NetBSD: buildlink3.mk,v 1.2 2020/10/22 20:19:39 tnn Exp $

BUILDLINK_TREE+= libcbor

.if !defined(LIBCBOR_BUILDLINK_MK)
LIBCBOR_BUILDLINK_MK:=
.if !defined(LIBCBOR_BUILDLINK3_MK)
LIBCBOR_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.libcbor+= libcbor>=0.5.0
BUILDLINK_ABI_DEPENDS.libcbor+= libcbor>=0.5.0
BUILDLINK_API_DEPENDS.libcbor+= libcbor>=0.8.0
BUILDLINK_PKGSRCDIR.libcbor?= ../../devel/libcbor

.endif # LIBCBOR_BUILDLINK_MK
.endif # LIBCBOR_BUILDLINK3_MK

BUILDLINK_TREE+= -libcbor
10 changes: 5 additions & 5 deletions devel/libcbor/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.1 2019/08/23 17:14:45 agc Exp $
$NetBSD: distinfo,v 1.2 2020/10/22 20:19:39 tnn Exp $

SHA1 (libcbor.tar.gz) = 1d03ae595a02929861dd2735b2abe20cacaaa707
RMD160 (libcbor.tar.gz) = 7ccc6309a1757a53ecb7b197c1b3704cd9f38ee3
SHA512 (libcbor.tar.gz) = 5c2e9610d9fbb0bfc59f89a180f70b58539a1760fd39cad696af372c164a87828a23bb4d3a54d8e9d846be5271204800f0ad63656ef830f06a0ccdd10edfdb2c
Size (libcbor.tar.gz) = 719348 bytes
SHA1 (libcbor-0.8.0.tar.gz) = 7ef8ab1d41973da933b27516b3398cbdeade6cb1
RMD160 (libcbor-0.8.0.tar.gz) = ddd307e64b50f2a777a88e89e10e3891571226a2
SHA512 (libcbor-0.8.0.tar.gz) = 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
Size (libcbor-0.8.0.tar.gz) = 267044 bytes

0 comments on commit 14141b9

Please sign in to comment.