From 55fa0947279b5f241eb8378c4789185f7cc61bea Mon Sep 17 00:00:00 2001 From: sthen Date: Wed, 3 Jul 2019 14:38:55 +0000 Subject: [PATCH] update to pecl-redis-5.0.0 --- databases/pecl-redis/Makefile | 4 ++-- databases/pecl-redis/distinfo | 4 ++-- databases/pecl-redis/patches/patch-library_c | 14 ++++++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 databases/pecl-redis/patches/patch-library_c diff --git a/databases/pecl-redis/Makefile b/databases/pecl-redis/Makefile index b8be8850003..26c9c41127a 100644 --- a/databases/pecl-redis/Makefile +++ b/databases/pecl-redis/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.10 2019/03/14 15:57:51 sthen Exp $ +# $OpenBSD: Makefile,v 1.11 2019/07/03 14:38:55 sthen Exp $ COMMENT= PHP interface to redis -DISTNAME= redis-4.3.0 +DISTNAME= redis-5.0.0 CATEGORIES= databases diff --git a/databases/pecl-redis/distinfo b/databases/pecl-redis/distinfo index c8d97d88e2b..378c64e0b37 100644 --- a/databases/pecl-redis/distinfo +++ b/databases/pecl-redis/distinfo @@ -1,2 +1,2 @@ -SHA256 (redis-4.3.0.tgz) = wPBM7DSZYKhCtgkg+4pDNlbi5JTq7W5mM5fWcQKlG6I= -SIZE (redis-4.3.0.tgz) = 241883 +SHA256 (redis-5.0.0.tgz) = R/RbbQu+6Nj+9jYPVxshb2V9FFZdXIU28y2zAaw72AQ= +SIZE (redis-5.0.0.tgz) = 243480 diff --git a/databases/pecl-redis/patches/patch-library_c b/databases/pecl-redis/patches/patch-library_c new file mode 100644 index 00000000000..611f11c65ff --- /dev/null +++ b/databases/pecl-redis/patches/patch-library_c @@ -0,0 +1,14 @@ +$OpenBSD: patch-library_c,v 1.1 2019/07/03 14:38:55 sthen Exp $ + +Index: library.c +--- library.c.orig ++++ library.c +@@ -1842,7 +1842,7 @@ PHP_REDIS_API int redis_sock_connect(RedisSock *redis_ + } + + gettimeofday(&tv, NULL); +- persistent_id = strpprintf(0, "phpredis_%ld%ld", tv.tv_sec, tv.tv_usec); ++ persistent_id = strpprintf(0, "phpredis_%lld%ld", (long long)tv.tv_sec, tv.tv_usec); + } else { + if (redis_sock->persistent_id) { + persistent_id = strpprintf(0, "phpredis:%s:%s", host, ZSTR_VAL(redis_sock->persistent_id));