head 1.9; access; symbols pkgsrc-2022Q3:1.8.0.10 pkgsrc-2022Q3-base:1.8 pkgsrc-2022Q2:1.8.0.8 pkgsrc-2022Q2-base:1.8 pkgsrc-2022Q1:1.8.0.6 pkgsrc-2022Q1-base:1.8 pkgsrc-2021Q4:1.8.0.4 pkgsrc-2021Q4-base:1.8 pkgsrc-2021Q3:1.8.0.2 pkgsrc-2021Q3-base:1.8 pkgsrc-2021Q2:1.7.0.12 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.10 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.8 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.6 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.4 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.2 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.6.0.4 pkgsrc-2019Q4-base:1.6 pkgsrc-2019Q3:1.5.0.14 pkgsrc-2019Q3-base:1.5 pkgsrc-2019Q2:1.5.0.12 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.10 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.8 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.6 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.4 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.2 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.4.0.6 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.4 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.3.0.16 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.14 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.12 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.10 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.8 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.6 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.3.0.4 pkgsrc-2015Q4-base:1.3 pkgsrc-2015Q3:1.3.0.2 pkgsrc-2015Q3-base:1.3 pkgsrc-2015Q2:1.2.0.2 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.1.0.8 pkgsrc-2015Q1-base:1.1 pkgsrc-2014Q4:1.1.0.6 pkgsrc-2014Q4-base:1.1 pkgsrc-2014Q3:1.1.0.4 pkgsrc-2014Q3-base:1.1 pkgsrc-2014Q2:1.1.0.2 pkgsrc-2014Q2-base:1.1; locks; strict; comment @# @; 1.9 date 2022.11.25.10.40.35; author adam; state dead; branches; next 1.8; commitid VuKv4200X0dOu43E; 1.8 date 2021.06.23.19.35.44; author adam; state Exp; branches; next 1.7; commitid 4fvwoIDbmSGJaiYC; 1.7 date 2020.03.22.18.20.11; author wiz; state Exp; branches; next 1.6; commitid bWWjdMWyyeFltq1C; 1.6 date 2019.11.26.12.43.42; author wiz; state Exp; branches; next 1.5; commitid rZ1Rlf4idUFnnmMB; 1.5 date 2018.01.26.09.33.31; author jperkin; state Exp; branches; next 1.4; commitid vYI0YX5QjAumPmoA; 1.4 date 2017.07.07.11.21.12; author wiz; state Exp; branches; next 1.3; commitid HKUdZATaWsUTWhYz; 1.3 date 2015.09.02.15.12.37; author wiedi; state Exp; branches; next 1.2; commitid lh5XWR6wxaFuTGzy; 1.2 date 2015.06.05.14.07.27; author wiedi; state Exp; branches; next 1.1; commitid knevJt13K6Vpofoy; 1.1 date 2014.04.02.17.25.44; author wiedi; state Exp; branches; next ; commitid eyQJLgTyjRb9h8vx; desc @@ 1.9 log @hiredis: updated to 1.1.0 1.1.0 🐛 Bug Fixes Add support for nan in RESP3 double 🧰 Maintenance Add an example that calls redisCommandArgv fix flag reference Make freeing a NULL redisAsyncContext a no-op. CI updates @ text @$NetBSD: patch-Makefile,v 1.8 2021/06/23 19:35:44 adam Exp $ Use libtool --- Makefile.orig 2020-08-03 18:18:07.000000000 +0000 +++ Makefile @@@@ -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 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) 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) \ + -rpath $(PREFIX)/lib \ + -version-number $(HIREDIS_MAJOR):$(HIREDIS_MINOR) + dynamic: $(DYLIBNAME) static: $(STLIBNAME) 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) $(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 - $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME) - cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIBNAME) - $(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH) + $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) $(LANAME) $(INSTALL_LIBRARY_PATH) mkdir -p $(INSTALL_PKGCONF_PATH) $(INSTALL) $(PKGCONFNAME) $(INSTALL_PKGCONF_PATH) @ 1.8 log @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. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.7 2020/03/22 18:20:11 wiz Exp $ @ 1.7 log @hiredis: update to 0.14.1. ### 0.14.1 (2020-03-13) * Adds safe allocation wrappers (CVE-2020-7105, #747, #752) (Michael Grunder) @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.6 2019/11/26 12:43:42 wiz Exp $ d3 1 a3 1 use libtool d5 1 a5 1 --- Makefile.orig 2020-03-14 18:46:35.000000000 +0000 d7 3 a9 3 @@@@ -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) d12 1 a12 1 STLIB_MAKE_CMD=ar rcs $(STLIBNAME) d14 3 a16 11 # 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) d21 6 a26 6 # 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) d35 3 a37 3 @@@@ -153,7 +159,7 @@@@ check: hiredis-test kill `cat /tmp/hiredis-test-redis.pid` d44 2 a45 2 rm -rf $(DYLIBNAME) $(STLIBNAME) $(TESTS) $(PKGCONFNAME) examples/hiredis-example* *.o *.gcda *.gcno *.gcov @@@@ -180,9 +186,7 @@@@ install: $(DYLIBNAME) $(STLIBNAME) $(PKG @ 1.6 log @hiredis: update to 0.14.0. ### 0.14.0 **Fixes**: * Catch a buffer overflow when formatting the error message * Import latest upstream sds. This breaks applications that are linked against the old hiredis v0.13 * Fix warnings, when compiled with -Wshadow * Make hiredis compile in Cygwin on Windows, now CI-tested * Bulk and multi-bulk lengths less than -1 or greater than `LLONG_MAX` are now protocol errors. This is consistent with the RESP specification. On 32-bit platforms, the upper bound is lowered to `SIZE_MAX`. **BREAKING CHANGES**: * Change `redisReply.len` to `size_t`, as it denotes the the size of a string User code should compare this to `size_t` values as well. If it was used to compare to other values, casting might be necessary or can be removed, if casting was applied before. * Remove backwards compatibility macro's This removes the following old function aliases, use the new name now: | Old | New | | --------------------------- | ---------------------- | | redisReplyReaderCreate | redisReaderCreate | | redisReplyReaderCreate | redisReaderCreate | | redisReplyReaderFree | redisReaderFree | | redisReplyReaderFeed | redisReaderFeed | | redisReplyReaderGetReply | redisReaderGetReply | | redisReplyReaderSetPrivdata | redisReaderSetPrivdata | | redisReplyReaderGetObject | redisReaderGetObject | | redisReplyReaderGetError | redisReaderGetError | * The `DEBUG` variable in the Makefile was renamed to `DEBUG_FLAGS` Previously it broke some builds for people that had `DEBUG` set to some arbitrary value, due to debugging other software. By renaming we avoid unintentional name clashes. Simply rename `DEBUG` to `DEBUG_FLAGS` in your environment to make it working again. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.5 2018/01/26 09:33:31 jperkin Exp $ d5 1 a5 1 --- Makefile.orig 2018-09-25 22:59:34.000000000 +0000 d31 2 a32 2 async.o: async.c fmacros.h async.h hiredis.h read.h sds.h net.h dict.c dict.h @@@@ -82,6 +83,11 @@@@ $(DYLIBNAME): $(OBJ) d44 1 a44 1 @@@@ -152,7 +158,7 @@@@ check: hiredis-test d53 1 a53 1 @@@@ -179,9 +185,7 @@@@ install: $(DYLIBNAME) $(STLIBNAME) $(PKG d55 1 a55 1 $(INSTALL) hiredis.h async.h read.h sds.h $(INSTALL_INCLUDE_PATH) @ 1.5 log @hiredis: Fix SunOS linker flags. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.4 2017/07/07 11:21:12 wiz Exp $ d5 1 a5 1 --- Makefile.orig 2015-09-16 10:25:02.000000000 +0000 a19 1 INSTALL= cp -r d22 3 a24 2 @@@@ -66,7 +67,7 @@@@ ifeq ($(uname_S),Darwin) DYLIB_MAKE_CMD=$(CC) -shared -Wl,-install_name,$(DYLIB_MINOR_NAME) -o $(DYLIBNAME) $(LDFLAGS) d32 1 a32 1 @@@@ -83,6 +84,11 @@@@ $(DYLIBNAME): $(OBJ) d44 1 a44 1 @@@@ -153,7 +159,7 @@@@ check: hiredis-test d53 4 a56 4 @@@@ -183,9 +189,7 @@@@ $(PKGCONFNAME): hiredis.h install: $(DYLIBNAME) $(STLIBNAME) $(PKGCONFNAME) mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH) $(INSTALL) hiredis.h async.h read.h sds.h adapters $(INSTALL_INCLUDE_PATH) @ 1.4 log @Honor LDFLAGS. Fixes RELRO build. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.3 2015/09/02 15:12:37 wiedi Exp $ d5 1 a5 1 --- Makefile.orig 2015-08-25 12:16:20.000000000 +0000 d7 1 a7 1 @@@@ -51,6 +51,7 @@@@ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFI d15 8 @ 1.3 log @Update hiredis to 0.13.2 * Prevent crash on pending replies in async code (Thanks, @@switch-st) * Clear `REDIS_CONNECTED` flag when connection is closed (Thanks, Jerry Jacobs) * Add MacOS X addapter (Thanks, @@dizzus) * Add Qt adapter (Thanks, Pietro Cerutti) * Add Ivykis adapter (Thanks, Gergely Nagy) All adapters are provided as is and are only tested where possible. @ text @d1 2 a2 1 $NetBSD: patch-Makefile,v 1.2 2015/06/05 14:07:27 wiedi Exp $ d29 1 a29 1 + $(LIBTOOL) --mode=link $(CC) -o $(LANAME) $(OBJ:.o=.lo) \ @ 1.2 log @Update hiredis to 0.13.1 ### 0.13.1 - May 03, 2015 This is a bug fix release. The new `reconnect` method introduced new struct members, which clashed with pre-defined names in pre-C99 code. Another commit forced C99 compilation just to make it work, but of course this is not desirable for outside projects. Other non-C99 code can now use hiredis as usual again. Sorry for the inconvenience. * Fix memory leak in async reply handling (Salvatore Sanfilippo) * Rename struct member to avoid name clash with pre-c99 code (Alex Balashov, ncopa) ### 0.13.0 - April 16, 2015 This release adds a minimal Windows compatibility layer. The parser, standalone since v0.12.0, can now be compiled on Windows (and thus used in other client libraries as well) * Windows compatibility layer for parser code (tzickel) * Properly escape data printed to PKGCONF file (Dan Skorupski) * Fix tests when assert() undefined (Keith Bennett, Matt Stancliff) * Implement a reconnect method for the client context, this changes the structure of `redisContext` (Aaron Bedra) ### 0.12.1 - January 26, 2015 * Fix `make install`: DESTDIR support, install all required files, install PKGCONF in proper location * Fix `make test` as 32 bit build on 64 bit platform ### 0.12.0 - January 22, 2015 * Add optional KeepAlive support * Try again on EINTR errors * Add libuv adapter * Add IPv6 support * Remove possiblity of multiple close on same fd * Add ability to bind source address on connect * Add redisConnectFd() and redisFreeKeepFd() * Fix getaddrinfo() memory leak * Free string if it is unused (fixes memory leak) * Improve redisAppendCommandArgv performance 2.5x * Add support for SO_REUSEADDR * Fix redisvFormatCommand format parsing * Add GLib 2.0 adapter * Refactor reading code into read.c * Fix errno error buffers to not clobber errors * Generate pkgconf during build * Silence _BSD_SOURCE warnings * Improve digit counting for multibulk creation @ text @d1 1 a1 1 $NetBSD$ d4 1 a4 1 --- Makefile.orig 2015-05-03 20:58:11.000000000 +0000 d6 1 a6 1 @@@@ -49,6 +49,7 @@@@ DYLIB_MAJOR_NAME=$(LIBNAME).$(DYLIBSUFFI d14 1 a14 1 @@@@ -65,7 +66,7 @@@@ ifeq ($(uname_S),Darwin) d23 1 a23 1 @@@@ -82,6 +83,11 @@@@ $(DYLIBNAME): $(OBJ) d35 1 a35 1 @@@@ -133,7 +139,7 @@@@ check: hiredis-test d44 1 a44 1 @@@@ -163,10 +169,7 @@@@ $(PKGCONFNAME): hiredis.h d49 1 a49 2 - cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME) - cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MAJOR_NAME) $(DYLIBNAME) @ 1.1 log @Add hiredis-0.11.0 Hiredis is a minimalistic C client library for the Redis database. It is minimalistic because it just adds minimal support for the protocol, but at the same time it uses an high level printf-alike API in order to make it much higher level than otherwise suggested by its minimal code base and the lack of explicit bindings for every Redis command. Apart from supporting sending commands and receiving replies, it comes with a reply parser that is decoupled from the I/O layer. It is a stream parser designed for easy reusability, which can for instance be used in higher level language bindings for efficient reply parsing. Hiredis only supports the binary-safe Redis protocol, so you can use it with any Redis version >= 1.2.0. The library comes with multiple APIs. There is the synchronous API, the asynchronous API and the reply parsing API. @ text @d2 1 a2 1 add DESTDIR and use libtool d4 1 a4 1 --- Makefile.orig 2012-08-28 06:55:52.000000000 +0000 d6 3 a8 1 @@@@ -27,6 +27,8 @@@@ DYLIB_MAKE_CMD=$(CC) -shared -Wl,-soname d10 1 a12 2 +LANAME=$(LIBNAME).la + d14 1 a14 3 uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') ifeq ($(uname_S),SunOS) @@@@ -41,7 +43,7 @@@@ ifeq ($(uname_S),Darwin) d18 2 a19 2 -all: $(DYLIBNAME) $(BINS) +all: $(LANAME) d22 4 a25 4 net.o: net.c fmacros.h net.h hiredis.h @@@@ -60,6 +62,13 @@@@ $(STLIBNAME): $(OBJ) dynamic: $(DYLIBNAME) static: $(STLIBNAME) d28 1 a28 3 + $(LIBTOOL) --mode=link \ + $(CC) -o $(LANAME) \ + $(OBJ:.o=.lo) \ d32 4 a35 4 # Binaries: hiredis-example-libevent: example-libevent.c adapters/libevent.h $(STLIBNAME) $(CC) -o $@@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -levent example-libevent.c $(STLIBNAME) @@@@ -95,7 +104,7 @@@@ check: hiredis-test d43 3 a45 14 rm -rf $(DYLIBNAME) $(STLIBNAME) $(BINS) hiredis-example* *.o *.gcda *.gcno *.gcov @@@@ -107,8 +116,8 @@@@ dep: PREFIX?=/usr/local INCLUDE_PATH?=include/hiredis LIBRARY_PATH?=lib -INSTALL_INCLUDE_PATH= $(PREFIX)/$(INCLUDE_PATH) -INSTALL_LIBRARY_PATH= $(PREFIX)/$(LIBRARY_PATH) +INSTALL_INCLUDE_PATH= $(DESTDIR)$(PREFIX)/$(INCLUDE_PATH) +INSTALL_LIBRARY_PATH= $(DESTDIR)$(PREFIX)/$(LIBRARY_PATH) ifeq ($(uname_S),SunOS) INSTALL?= cp -r @@@@ -119,10 +128,7 @@@@ INSTALL?= cp -a install: $(DYLIBNAME) $(STLIBNAME) d47 1 a47 1 $(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH) d52 3 a54 1 + $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) $(LANAME) $(DESTDIR)$(PREFIX)/lib a55 2 32bit: @@echo "" @