pkgsrc-WIP-changes archive

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

sds: Update to 2.2.0



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Fri Dec 9 15:00:56 2022 +0100
Changeset:	b50ebddda0a47e749488d56dc6ce39da332e9a0e

Modified Files:
	sds/Makefile
	sds/buildlink3.mk
	sds/distinfo
	sds/files/libsds-2.pc.in
	sds/patches/patch-Makefile

Log Message:
sds: Update to 2.2.0

Switch to maintained fork with releases.

Version 2.2
===

* Feat: new sdsneedsrepr and sdsResize api
* Fix: sdscatvprintf efficiency improvements
* Fix: typos in function comments
* Fix: char passed to isprint and isspace, must be int
* Fix: sdstrim modifies string in place

Version 2.1
===

Merged security fixes and enhancements from redis and pull requests from
upstream repository.

* Sec: integer overflow (CVE-2021-21309).
* Sec: integer overflow in _sdsMakeRoomFor (CVE-2021-41099)
* Sec: potential overflow in sdsll2str
* Feat: add sdssubstr function
* Feat: added some more format specifiers to sdscatfmt
* Upd: readme improvements
* Fix: bug in sdscatfmt when % is the last format character
* Fix: sdscatfmt call sdsMakeRoomFor, asked for more space than intended
* Fix: sdssplitlen - set count to 0 if returned NULL
* Fix: sdstrim - no need to compare the value of ep and sp
* Fix: avoid warnings with -Wshadow
* Fix: add missing headerguard in sdsalloc.h

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b50ebddda0a47e749488d56dc6ce39da332e9a0e

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

diffstat:
 sds/Makefile               | 8 ++++----
 sds/buildlink3.mk          | 2 +-
 sds/distinfo               | 5 ++++-
 sds/files/libsds-2.pc.in   | 2 +-
 sds/patches/patch-Makefile | 2 +-
 5 files changed, 11 insertions(+), 8 deletions(-)

diffs:
diff --git a/sds/Makefile b/sds/Makefile
index 2a18d0b5a9..1f83c16257 100644
--- a/sds/Makefile
+++ b/sds/Makefile
@@ -1,9 +1,10 @@
 # $NetBSD$
 
-PKGNAME=	sds-2.0.0
+DISTNAME=	sds-2.2
 CATEGORIES=	devel
-GIT_REPO=	https://github.com/antirez/sds
-GIT_REVISION=	fb463145c9c245636feb28b5aac0fc897e16f67e
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jcorporation/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+EXTRACT_SUFX=	.zip
 
 MAINTAINER=	micha%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/antirez/sds/
@@ -26,5 +27,4 @@ post-install:
 	cd ${WRKDIR} && ${INSTALL_DATA} libsds-2.pc \
             ${DESTDIR}${PREFIX}/lib/pkgconfig/libsds-2.pc
 
-.include "../../wip/mk/git-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/sds/buildlink3.mk b/sds/buildlink3.mk
index 79ee58b587..1d42c656c2 100644
--- a/sds/buildlink3.mk
+++ b/sds/buildlink3.mk
@@ -5,7 +5,7 @@ BUILDLINK_TREE+=	sds
 .if !defined(SDS_BUILDLINK3_MK)
 SDS_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.sds+=	sds>=2.0.0
+BUILDLINK_API_DEPENDS.sds+=	sds>=2.2.0
 BUILDLINK_PKGSRCDIR.sds?=	../../wip/sds
 .endif	# SDS_BUILDLINK3_MK
 
diff --git a/sds/distinfo b/sds/distinfo
index 3c38c98b4a..6845816324 100644
--- a/sds/distinfo
+++ b/sds/distinfo
@@ -1,3 +1,6 @@
 $NetBSD$
 
-SHA1 (patch-Makefile) = c046a54f7f13f8c9848465c6a6577b626c2bb6d4
+BLAKE2s (sds-2.2.zip) = 199d2a4a6437bc0ba8e86cd99bce86337e90cf20cc202f0b74e81ebbf0639bd2
+SHA512 (sds-2.2.zip) = d72c7de87b7fc3030a1525b8905cd04168bc910a4109d31faf47d928be9cbb80264d6fae38c5a05c8b22926ee2b3faed641fb330b6f3021cd671274149384ce1
+Size (sds-2.2.zip) = 33055 bytes
+SHA1 (patch-Makefile) = faaf0b298c874c3b67a3d8e59228502538227cb2
diff --git a/sds/files/libsds-2.pc.in b/sds/files/libsds-2.pc.in
index eafa69b8cc..9ac1757391 100644
--- a/sds/files/libsds-2.pc.in
+++ b/sds/files/libsds-2.pc.in
@@ -6,7 +6,7 @@ bindir=${prefix}/bin
 
 Name: SDS
 Description: Simple dynamic strings library for C
-URL: https://github.com/antirez/sds/
+URL: https://github.com/jcorporation/sds/
 Version: @release@
 Cflags: -I${includedir}
 Libs: -L${libdir} -lsds
diff --git a/sds/patches/patch-Makefile b/sds/patches/patch-Makefile
index 9cd6e01c4d..a58371e48f 100644
--- a/sds/patches/patch-Makefile
+++ b/sds/patches/patch-Makefile
@@ -19,7 +19,7 @@ $NetBSD$
 +
 +# ABI version for shared library
 +MAJOR=  2
-+MINOR=  0
++MINOR=  2
 +PATCH=  0
 +
 +all: libsds.la


Home | Main Index | Thread Index | Old Index