mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
- local redis server patch was adapted from previous version (4.7.1) - dropping ruby26, it is no longer in the tree - tests require >=dev-db/redis-7; they fail immediately with dev-db/redis-6.2.7 - it was necessary to tweak one sed because test file was moved to different directory. Bug: https://bugs.gentoo.org/873091 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/27494 Signed-off-by: Sam James <sam@gentoo.org>
50 lines
1.7 KiB
Diff
50 lines
1.7 KiB
Diff
Gentoo specific patch adapted from redis-4.7.1-local-redis-server.patch
|
|
|
|
diff --git a/makefile b/makefile
|
|
index df25e4b..57bc941 100644
|
|
--- a/makefile
|
|
+++ b/makefile
|
|
@@ -1,18 +1,17 @@
|
|
REDIS_BRANCH ?= 7.0
|
|
ROOT_DIR :=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
|
-TMP := tmp
|
|
CONF := ${ROOT_DIR}/test/support/conf/redis-${REDIS_BRANCH}.conf
|
|
BUILD_DIR := ${TMP}/cache/redis-${REDIS_BRANCH}
|
|
TARBALL := ${TMP}/redis-${REDIS_BRANCH}.tar.gz
|
|
-BINARY := ${BUILD_DIR}/src/redis-server
|
|
-REDIS_CLIENT := ${BUILD_DIR}/src/redis-cli
|
|
+BINARY := /usr/sbin/redis-server
|
|
+REDIS_CLIENT := /usr/bin/redis-cli
|
|
REDIS_TRIB := ${BUILD_DIR}/src/redis-trib.rb
|
|
-PID_PATH := ${BUILD_DIR}/redis.pid
|
|
+PID_PATH := ${TMP}/redis.pid
|
|
SOCKET_PATH := ${TMP}/redis.sock
|
|
PORT := 6381
|
|
SLAVE_PORT := 6382
|
|
-SLAVE_PID_PATH := ${BUILD_DIR}/redis_slave.pid
|
|
-SLAVE_SOCKET_PATH := ${BUILD_DIR}/redis_slave.sock
|
|
+SLAVE_PID_PATH := ${TMP}/redis_slave.pid
|
|
+SLAVE_SOCKET_PATH := ${TMP}/redis_slave.sock
|
|
HA_GROUP_NAME := master1
|
|
SENTINEL_PORTS := 6400 6401 6402
|
|
SENTINEL_PID_PATHS := $(addprefix ${TMP}/redis,$(addsuffix .pid,${SENTINEL_PORTS}))
|
|
@@ -31,14 +30,8 @@ start_all: start start_slave start_sentinel wait_for_sentinel start_cluster crea
|
|
|
|
stop_all: stop_sentinel stop_slave stop stop_cluster
|
|
|
|
-${TMP}:
|
|
- @mkdir -p $@
|
|
-
|
|
-${BINARY}: ${TMP}
|
|
- @bin/build ${REDIS_BRANCH} $<
|
|
-
|
|
test:
|
|
- @env REDIS_SOCKET_PATH=${SOCKET_PATH} bundle exec rake test
|
|
+ @env REDIS_SOCKET_PATH=${SOCKET_PATH} ${RUBY} -S rake test
|
|
|
|
stop:
|
|
@$(call kill-redis,${PID_PATH});\
|
|
--
|
|
2.35.1
|
|
|