redis: Add redis 8.0.0 recipe
cover redis: Add redis 8.0.0 recipe
This branch adds 8.0.0 support for redis WITHOUT any additional modules configured in the build. Module support will require cargo and is deferred for another day.
This effectively copies the 7.2.12 recipe, refreshes the patches/LICENSE file, and provides a baseline package to install.
See redis v8.0.0 README for more details.
Eric Meyers (1):
redis: Add redis 8.0.0 recipe
...-hiredis-use-default-CC-if-it-is-set.patch | 45 + ...ile-to-use-environment-build-setting.patch | 81 + ...003-hack-to-force-use-of-libc-malloc.patch | 39 + .../0004-src-Do-not-reset-FINAL_LIBS.patch | 34 + ...RCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch | 33 + .../redis/redis-8.0.0/init-redis-server | 71 + .../redis/redis-8.0.0/redis.conf | 1314 +++++++++++++++++ .../redis/redis-8.0.0/redis.service | 17 + meta-oe/recipes-extended/redis/redis_8.0.0.bb | 88 ++ 9 files changed, 1722 insertions(+) create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0001-hiredis-use-default-CC-if-it-is-set.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0002-lua-update-Makefile-to-use-environment-build-setting.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0003-hack-to-force-use-of-libc-malloc.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0004-src-Do-not-reset-FINAL_LIBS.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/init-redis-server create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/redis.conf create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/redis.service create mode 100644 meta-oe/recipes-extended/redis/redis_8.0.0.bb
PATCH 1/1 redis: Add redis 8.0.0 recipe
Adding base 8.0.0 recipe for redis without any module configuration.
for more details.
Signed-off-by Eric Meyers <[email protected]>
--- ...-hiredis-use-default-CC-if-it-is-set.patch | 45 + ...ile-to-use-environment-build-setting.patch | 81 + ...003-hack-to-force-use-of-libc-malloc.patch | 39 + .../0004-src-Do-not-reset-FINAL_LIBS.patch | 34 + ...RCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch | 33 + .../redis/redis-8.0.0/init-redis-server | 71 + .../redis/redis-8.0.0/redis.conf | 1314 +++++++++++++++++ .../redis/redis-8.0.0/redis.service | 17 + meta-oe/recipes-extended/redis/redis_8.0.0.bb | 88 ++ 9 files changed, 1722 insertions(+) create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0001-hiredis-use-default-CC-if-it-is-set.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0002-lua-update-Makefile-to-use-environment-build-setting.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0003-hack-to-force-use-of-libc-malloc.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0004-src-Do-not-reset-FINAL_LIBS.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/init-redis-server create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/redis.conf create mode 100644 meta-oe/recipes-extended/redis/redis-8.0.0/redis.service create mode 100644 meta-oe/recipes-extended/redis/redis_8.0.0.bb
meta-oe/recipes-extended/redis/redis-8.0.0/0001-hiredis-use-default-CC-if-it-is-set.patch new file +45 -0
@@ -0,0 +1,45 @@ +From 43601f60f268ddbc2e03f7a33ae4a1ad109f092c Mon Sep 17 00:00:00 2001 +From: Venture Research <[email protected]> +Date: Fri, 8 Feb 2013 17:39:52 -0600 +Subject: [PATCH] hiredis: use default CC if it is set +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Instead of trying to automagically figure out CC, which breaks with OE +as CC has spaces in it, just skip it if one was already passed in. + +Upstream-Status: Pending + +Signed-off-by: Venture Research <[email protected]> + +Update to work with 4.0.8 +Signed-off-by: Alistair Francis <[email protected]> + +Reworked for 6.0.4 +Signed-off-by: Andreas Müller <[email protected]> + +Reworked for 8.0.0 +Signed-off-by: Eric Meyers <[email protected]> + +--- + deps/hiredis/Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/deps/hiredis/Makefile b/deps/hiredis/Makefile +index bd2106b..9ce768d 100644 +--- a/deps/hiredis/Makefile ++++ b/deps/hiredis/Makefile +@@ -36,8 +36,6 @@ endef + export REDIS_TEST_CONFIG + + # Fallback to gcc when $CC is not in $PATH. +-CC:=$(shell sh -c 'type $${CC%% *} >/dev/null 2>/dev/null && echo $(CC) || echo gcc') +-CXX:=$(shell sh -c 'type $${CXX%% *} >/dev/null 2>/dev/null && echo $(CXX) || echo g++') + OPTIMIZATION?=-O3 + WARNINGS=-Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers + DEBUG_FLAGS?= -g -ggdb
meta-oe/recipes-extended/redis/redis-8.0.0/0002-lua-update-Makefile-to-use-environment-build-setting.patch new file +81 -0
81 lines not on this page · raw message
meta-oe/recipes-extended/redis/redis-8.0.0/0003-hack-to-force-use-of-libc-malloc.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 55e09d562a1b8ca6a7d3ef2349c58f466bc44d2b Mon Sep 17 00:00:00 2001 +From: Venture Research <[email protected]> +Date: Wed, 6 Feb 2013 20:51:02 -0600 +Subject: [PATCH] hack to force use of libc malloc + +Hack to force libc usage as it seems the option to pass it in has been +removed in favor of magic. + +Note that this of course doesn't allow tcmalloc and jemalloc, however +jemalloc wasn't building correctly. + +Upstream-Status: Pending + +Signed-off-by: Venture Research <[email protected]> + +Update to work with 4.0.8 +Signed-off-by: Alistair Francis <[email protected]> + +Reworked for 8.0.0 +Signed-off-by: Eric Meyers <[email protected]> + +--- + src/Makefile | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 948ef83..5dbbefc 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -17,7 +17,8 @@ + # Just use 'make dep', but this is only needed by developers. + + release_hdr := $(shell sh -c './mkreleasehdr.sh') +-uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') ++# use fake uname option to force use of generic libc ++uname_S := "USE_LIBC_MALLOC" + uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') + CLANG := $(findstring clang,$(shell sh -c '$(CC) --version | head -1')) +
meta-oe/recipes-extended/redis/redis-8.0.0/0004-src-Do-not-reset-FINAL_LIBS.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 8f7a23705433e3f8850736a3348ecabbf7949e01 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Tue, 10 Sep 2019 20:04:26 -0700 +Subject: [PATCH] src: Do not reset FINAL_LIBS + +This helps case where additional libraries are needed to be passed from +environment to get it going + +e.g. -latomic is needed on clang/x86 to provide for 64bit atomics + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> + +Reworked for 8.0.0 +Signed-off-by: Eric Meyers <[email protected]> + +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 5dbbefc..15fbe09 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -131,7 +131,7 @@ endif + + FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS) + FINAL_LDFLAGS=$(LDFLAGS) $(OPT) $(REDIS_LDFLAGS) $(DEBUG) +-FINAL_LIBS=-lm -lstdc++ ++FINAL_LIBS+=-lm -lstdc++ + DEBUG=-g -ggdb + + # Linux ARM32 needs -latomic at linking time
meta-oe/recipes-extended/redis/redis-8.0.0/0005-Define-_GNU_SOURCE-to-get-PTHREAD_MUTEX_INITIALIZER.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 3e5b6732b936883d895638a3098a29dd254a7be4 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 21 Dec 2019 12:09:51 -0800 +Subject: [PATCH] Define _GNU_SOURCE to get PTHREAD_MUTEX_INITIALIZER + +Fixes +| zmalloc.c:87:37: error: 'PTHREAD_MUTEX_DEFAULT' undeclared here (not in a function) +| 87 | pthread_mutex_t used_memory_mutex = PTHREAD_MUTEX_INITIALIZER; +| | ^~~~~~~~~~~~~~~~~~~~~~~~~ + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> + +Reworked for 8.0.0 +Signed-off-by: Eric Meyers <[email protected]> + +--- + src/zmalloc.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/zmalloc.c b/src/zmalloc.c +index b2f5718..913be90 100644 +--- a/src/zmalloc.c ++++ b/src/zmalloc.c +@@ -12,6 +12,7 @@ + #include "config.h" + #include "solarisfixes.h" + ++#define _GNU_SOURCE + #include <stdio.h> + #include <stdlib.h> + #include <stdint.h>
meta-oe/recipes-extended/redis/redis-8.0.0/init-redis-server new file +71 -0
71 lines not on this page · raw message
meta-oe/recipes-extended/redis/redis-8.0.0/redis.conf new file +1314 -0
1,314 lines not on this page · raw message
meta-oe/recipes-extended/redis/redis-8.0.0/redis.service new file +17 -0
@@ -0,0 +1,17 @@ +[Unit] +Description=Redis In-Memory Data Store +After=network.target + +[Service] +User=redis +Group=redis +ExecStart=/usr/bin/redis-server /etc/redis/redis.conf +ExecStop=/usr/bin/redis-cli shutdown +Restart=always +LimitNOFILE=10032 +Type=notify +StateDirectory=redis + +[Install] +WantedBy=multi-user.target +
meta-oe/recipes-extended/redis/redis_8.0.0.bb new file +88 -0
88 lines not on this page · raw message