pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/hiredis hiredis: updated to 1.0.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/4ee6e634f088
branches: trunk
changeset: 454870:4ee6e634f088
user: adam <adam%pkgsrc.org@localhost>
date: Wed Jun 23 19:35:44 2021 +0000
description:
hiredis: updated to 1.0.0
Release of v1.0.0
Hiredis v1.0.0 marks the first stable release of Hiredis and introduces
RESP3 support, SSL connections, allocator injection, better Windows support,
and more.
IMPORTANT: There are breaking changes in this release meaning your code
will need to be recompiled and may need small changes. The exact
details of the breaking changes can be found in README.md.
CHANGELOG.md has a detailed list of changes between v0.14.1 and v1.0.0.
diffstat:
databases/hiredis/Makefile | 7 ++-
databases/hiredis/buildlink3.mk | 4 +-
databases/hiredis/distinfo | 12 +++---
databases/hiredis/patches/patch-Makefile | 50 +++++++++++++------------------
4 files changed, 33 insertions(+), 40 deletions(-)
diffs (137 lines):
diff -r 17ea8f314dc2 -r 4ee6e634f088 databases/hiredis/Makefile
--- a/databases/hiredis/Makefile Wed Jun 23 19:34:15 2021 +0000
+++ b/databases/hiredis/Makefile Wed Jun 23 19:35:44 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2020/03/22 18:20:11 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2021/06/23 19:35:44 adam Exp $
-DISTNAME= hiredis-0.14.1
+DISTNAME= hiredis-1.0.0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=redis/}
GITHUB_TAG= v${PKGVERSION_NOREV}
@@ -10,8 +10,9 @@
COMMENT= Minimalistic C client library for the Redis database
LICENSE= modified-bsd
+USE_LIBTOOL= yes
USE_TOOLS+= gmake
-USE_LIBTOOL= yes
MAKE_ENV+= DESTDIR=${DESTDIR}
+TEST_TARGET= check
.include "../../mk/bsd.pkg.mk"
diff -r 17ea8f314dc2 -r 4ee6e634f088 databases/hiredis/buildlink3.mk
--- a/databases/hiredis/buildlink3.mk Wed Jun 23 19:34:15 2021 +0000
+++ b/databases/hiredis/buildlink3.mk Wed Jun 23 19:35:44 2021 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2014/04/02 17:25:44 wiedi Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2021/06/23 19:35:44 adam Exp $
BUILDLINK_TREE+= hiredis
.if !defined(HIREDIS_BUILDLINK3_MK)
HIREDIS_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.hiredis+= hiredis>=0.11.0
+BUILDLINK_API_DEPENDS.hiredis+= hiredis>=1.0.0
BUILDLINK_PKGSRCDIR.hiredis?= ../../databases/hiredis
.endif # HIREDIS_BUILDLINK3_MK
diff -r 17ea8f314dc2 -r 4ee6e634f088 databases/hiredis/distinfo
--- a/databases/hiredis/distinfo Wed Jun 23 19:34:15 2021 +0000
+++ b/databases/hiredis/distinfo Wed Jun 23 19:35:44 2021 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.9 2020/03/22 18:20:11 wiz Exp $
+$NetBSD: distinfo,v 1.10 2021/06/23 19:35:44 adam Exp $
-SHA1 (hiredis-0.14.1.tar.gz) = a422493d601aa36cd14504a6791e7609093af8ed
-RMD160 (hiredis-0.14.1.tar.gz) = d87b275f8d3c16ad91fff664044faa5e731d53ae
-SHA512 (hiredis-0.14.1.tar.gz) = a7310f2d65075df0c17636a0220e16487759471a3442b1de2595ab747565f6b6262e37131613b13e396b31050bcbe5529c35d420cd43fd7d500d9d563d469c4f
-Size (hiredis-0.14.1.tar.gz) = 64372 bytes
-SHA1 (patch-Makefile) = 7291b7a6014160a871e8ec1a50fa11ed18df2ee7
+SHA1 (hiredis-1.0.0.tar.gz) = 26242153e8ce5bfd0f953b3c036f0c63e8c939fe
+RMD160 (hiredis-1.0.0.tar.gz) = 397b66137f7211936e6044b40cda26d9526b1564
+SHA512 (hiredis-1.0.0.tar.gz) = eb56201121eecdbfc8d42e8c2c141ae77bea248eeb36687ac6835c9b2404f5475beb351c4d8539d552db4d88e933bb2bd5b73f165e62b130bb11aeff39928e69
+Size (hiredis-1.0.0.tar.gz) = 97507 bytes
+SHA1 (patch-Makefile) = 2071de674bd5322365702986421accbfd1aadbcc
diff -r 17ea8f314dc2 -r 4ee6e634f088 databases/hiredis/patches/patch-Makefile
--- a/databases/hiredis/patches/patch-Makefile Wed Jun 23 19:34:15 2021 +0000
+++ b/databases/hiredis/patches/patch-Makefile Wed Jun 23 19:35:44 2021 +0000
@@ -1,37 +1,29 @@
-$NetBSD: patch-Makefile,v 1.7 2020/03/22 18:20:11 wiz Exp $
+$NetBSD: patch-Makefile,v 1.8 2021/06/23 19:35:44 adam Exp $
-use libtool
+Use libtool
---- Makefile.orig 2020-03-14 18:46:35.000000000 +0000
+--- Makefile.orig 2020-08-03 18:18:07.000000000 +0000
+++ Makefile
-@@ -51,13 +51,14 @@ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFI
- DYLIBNAME=$(LIBNAME).$(DYLIBSUFFIX)
- DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
+@@ -58,6 +58,7 @@ DYLIBNAME=$(LIBNAME).$(DYLIBSUFFIX)
+
+ DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname,$(DYLIB_MINOR_NAME)
STLIBNAME=$(LIBNAME).$(STLIBSUFFIX)
+LANAME=$(LIBNAME).la
- STLIB_MAKE_CMD=ar rcs $(STLIBNAME)
+ STLIB_MAKE_CMD=$(AR) rcs
- # Platform-specific overrides
- uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
- ifeq ($(uname_S),SunOS)
- REAL_LDFLAGS+= -ldl -lnsl -lsocket
-- DYLIB_MAKE_CMD=$(CC) -G -o $(DYLIBNAME) -h $(DYLIB_MINOR_NAME) $(LDFLAGS)
-+ DYLIB_MAKE_CMD=$(CC) -shared -o $(DYLIBNAME) -Wl,-h,$(DYLIB_MINOR_NAME) $(LDFLAGS)
- endif
- ifeq ($(uname_S),Darwin)
- DYLIBSUFFIX=dylib
-@@ -65,7 +66,7 @@ ifeq ($(uname_S),Darwin)
- DYLIB_MAKE_CMD=$(CC) -dynamiclib -Wl,-install_name,$(PREFIX)/$(LIBRARY_PATH)/$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS)
+ SSL_DYLIB_MINOR_NAME=$(SSL_LIBNAME).$(DYLIBSUFFIX).$(HIREDIS_SONAME)
+@@ -103,7 +104,7 @@ ifeq ($(uname_S),Darwin)
+ DYLIB_PLUGIN=-Wl,-undefined -Wl,dynamic_lookup
endif
-all: $(DYLIBNAME) $(STLIBNAME) hiredis-test $(PKGCONFNAME)
+all: $(LANAME) $(PKGCONFNAME)
-
- # Deps (use make dep to generate this)
- alloc.o: alloc.c fmacros.h alloc.h
-@@ -83,6 +84,11 @@ $(DYLIBNAME): $(OBJ)
- $(STLIBNAME): $(OBJ)
- $(STLIB_MAKE_CMD) $(OBJ)
+ ifeq ($(USE_SSL),1)
+ all: $(SSL_DYLIBNAME) $(SSL_STLIBNAME) $(SSL_PKGCONFNAME)
+ endif
+@@ -132,6 +133,11 @@ $(SSL_DYLIBNAME): $(SSL_OBJ)
+ $(SSL_STLIBNAME): $(SSL_OBJ)
+ $(STLIB_MAKE_CMD) $(SSL_STLIBNAME) $(SSL_OBJ)
+$(LANAME): $(OBJ)
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(LANAME) $(OBJ:.o=.lo) \
@@ -40,17 +32,17 @@
+
dynamic: $(DYLIBNAME)
static: $(STLIBNAME)
-
-@@ -153,7 +159,7 @@ check: hiredis-test
- kill `cat /tmp/hiredis-test-redis.pid`
+ ifeq ($(USE_SSL),1)
+@@ -220,7 +226,7 @@ check: hiredis-test
+ TEST_SSL=$(USE_SSL) ./test.sh
.c.o:
- $(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $<
+ $(LIBTOOL) --mode=compile $(CC) -std=c99 -pedantic -c $(REAL_CFLAGS) $<
clean:
- rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) $(PKGCONFNAME) examples/hiredis-example* *.o *.gcda *.gcno *.gcov
-@@ -180,9 +186,7 @@ install: $(DYLIBNAME) $(STLIBNAME) $(PKG
+ rm -rf $(DYLIBNAME) $(STLIBNAME) $(SSL_DYLIBNAME) $(SSL_STLIBNAME) $(TESTS) $(PKGCONFNAME) examples/hiredis-example* *.o *.gcda *.gcno *.gcov
+@@ -261,9 +267,7 @@ install: $(DYLIBNAME) $(STLIBNAME) $(PKG
mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_INCLUDE_PATH)/adapters $(INSTALL_LIBRARY_PATH)
$(INSTALL) hiredis.h async.h read.h sds.h alloc.h $(INSTALL_INCLUDE_PATH)
$(INSTALL) adapters/*.h $(INSTALL_INCLUDE_PATH)/adapters
Home |
Main Index |
Thread Index |
Old Index