pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libcbor



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Mar 15 14:34:45 UTC 2023

Modified Files:
        pkgsrc/devel/libcbor: Makefile PLIST distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/libcbor/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libcbor/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/libcbor/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libcbor/Makefile
diff -u pkgsrc/devel/libcbor/Makefile:1.7 pkgsrc/devel/libcbor/Makefile:1.8
--- pkgsrc/devel/libcbor/Makefile:1.7   Fri Aug  5 20:21:21 2022
+++ pkgsrc/devel/libcbor/Makefile       Wed Mar 15 14:34:45 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2022/08/05 20:21:21 adam Exp $
+# $NetBSD: Makefile,v 1.8 2023/03/15 14:34:45 adam Exp $
 
-DISTNAME=      libcbor-0.9.0
+DISTNAME=      libcbor-0.10.2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=PJK/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}

Index: pkgsrc/devel/libcbor/PLIST
diff -u pkgsrc/devel/libcbor/PLIST:1.3 pkgsrc/devel/libcbor/PLIST:1.4
--- pkgsrc/devel/libcbor/PLIST:1.3      Tue Apr 12 22:36:02 2022
+++ pkgsrc/devel/libcbor/PLIST  Wed Mar 15 14:34:45 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2022/04/12 22:36:02 tnn Exp $
+@comment $NetBSD: PLIST,v 1.4 2023/03/15 14:34:45 adam Exp $
 include/cbor.h
 include/cbor/arrays.h
 include/cbor/bytestrings.h
@@ -22,6 +22,6 @@ include/cbor/streaming.h
 include/cbor/strings.h
 include/cbor/tags.h
 lib/libcbor.so
-lib/libcbor.so.0.9
 lib/libcbor.so.${PKGVERSION}
+lib/libcbor.so.0.10
 lib/pkgconfig/libcbor.pc

Index: pkgsrc/devel/libcbor/distinfo
diff -u pkgsrc/devel/libcbor/distinfo:1.5 pkgsrc/devel/libcbor/distinfo:1.6
--- pkgsrc/devel/libcbor/distinfo:1.5   Tue Apr 12 22:36:02 2022
+++ pkgsrc/devel/libcbor/distinfo       Wed Mar 15 14:34:45 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2022/04/12 22:36:02 tnn Exp $
+$NetBSD: distinfo,v 1.6 2023/03/15 14:34:45 adam Exp $
 
-BLAKE2s (libcbor-0.9.0.tar.gz) = 581b66f34846c1e52c09a458727c91e8b961a1de546c5201952682e7706de088
-SHA512 (libcbor-0.9.0.tar.gz) = 710239f69d770212a82e933e59df1aba0fb3ec516ef6666a366f30a950565a52981b0d46ca7e0eea739f5785d79cc21fc19acd857a4a0b135f4f6aa3ef5fd3b0
-Size (libcbor-0.9.0.tar.gz) = 275405 bytes
+BLAKE2s (libcbor-0.10.2.tar.gz) = faf8b2890531b674f24ecf856cfc04ab3e3a067f6ca6eb0dc4100d4356713cdc
+SHA512 (libcbor-0.10.2.tar.gz) = 23c6177443778d4b4833ec7ed0d0e639a0d4863372e3a38d772fdce2673eae6d5cb2a31a2a021d1a699082ea53494977c907fd0e94149b97cb23a4b6d039228a
+Size (libcbor-0.10.2.tar.gz) = 289450 bytes



Home | Main Index | Thread Index | Old Index