diff options
author | adam <adam@pkgsrc.org> | 2021-06-23 19:35:44 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2021-06-23 19:35:44 +0000 |
commit | 6624ba92c01c43b9ff3c439f4c23897f28d032a7 (patch) | |
tree | d9baa99489254318fef217eb2472c4ee8df7e4e6 | |
parent | 6b68794d484c5d5b60698b934dfedac4bd19d117 (diff) | |
download | pkgsrc-6624ba92c01c43b9ff3c439f4c23897f28d032a7.tar.gz |
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.
-rw-r--r-- | databases/hiredis/Makefile | 7 | ||||
-rw-r--r-- | databases/hiredis/buildlink3.mk | 4 | ||||
-rw-r--r-- | databases/hiredis/distinfo | 12 | ||||
-rw-r--r-- | databases/hiredis/patches/patch-Makefile | 50 |
4 files changed, 33 insertions, 40 deletions
diff --git a/databases/hiredis/Makefile b/databases/hiredis/Makefile index 4dea95011b7..d32a32b1807 100644 --- a/databases/hiredis/Makefile +++ b/databases/hiredis/Makefile @@ -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 @@ HOMEPAGE= https://github.com/redis/hiredis/ COMMENT= Minimalistic C client library for the Redis database LICENSE= modified-bsd -USE_TOOLS+= gmake USE_LIBTOOL= yes +USE_TOOLS+= gmake MAKE_ENV+= DESTDIR=${DESTDIR} +TEST_TARGET= check .include "../../mk/bsd.pkg.mk" diff --git a/databases/hiredis/buildlink3.mk b/databases/hiredis/buildlink3.mk index 251ac738dd2..30e9b79fa94 100644 --- a/databases/hiredis/buildlink3.mk +++ b/databases/hiredis/buildlink3.mk @@ -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 --git a/databases/hiredis/distinfo b/databases/hiredis/distinfo index e301dd3d323..c89a4eb6392 100644 --- a/databases/hiredis/distinfo +++ b/databases/hiredis/distinfo @@ -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 --git a/databases/hiredis/patches/patch-Makefile b/databases/hiredis/patches/patch-Makefile index 027b4c6067f..a1324b29946 100644 --- a/databases/hiredis/patches/patch-Makefile +++ b/databases/hiredis/patches/patch-Makefile @@ -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 @@ use libtool + 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 |