[packages/redis] - use symlinks when possible (patch from fedora)

adamg adamg at pld-linux.org
Mon Oct 15 10:29:38 CEST 2018


commit fdc861e9cc2011fe3b37a7de83a86a3439e6e959
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Mon Oct 15 10:26:12 2018 +0200

    - use symlinks when possible (patch from fedora)

 ...is-check-rdb-as-a-symlink-instead-of-dupl.patch | 26 ++++++++++++++++++++++
 redis.spec                                         |  2 ++
 2 files changed, 28 insertions(+)
---
diff --git a/redis.spec b/redis.spec
index bf9d082..ef32eaf 100644
--- a/redis.spec
+++ b/redis.spec
@@ -25,6 +25,7 @@ Source3:	%{name}.tmpfiles
 Patch0:		%{name}.conf.patch
 Patch1:		%{name}-tcl.patch
 Patch2:		0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch
+Patch3:		0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch
 URL:		http://www.redis.io/
 %{?with_perftools:BuildRequires:    gperftools-devel}
 BuildRequires:	jemalloc-static
@@ -74,6 +75,7 @@ disk.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # Remove integration tests
 %{__sed} -i -e '/    integration\/replication/d' tests/test_helper.tcl
diff --git a/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch b/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch
new file mode 100644
index 0000000..ce09350
--- /dev/null
+++ b/0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch
@@ -0,0 +1,26 @@
+From 992c773e70462a6fbe1536e18e673c9ab55d5901 Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Fri, 9 Sep 2016 17:23:27 +0200
+Subject: [PATCH 2/2] install redis-check-rdb as a symlink instead of duplicating
+ the binary
+
+---
+ src/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index fdbe36a..c3083f8 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -287,6 +287,6 @@ install: all
+ 	$(REDIS_INSTALL) $(REDIS_SERVER_NAME) $(INSTALL_BIN)
+ 	$(REDIS_INSTALL) $(REDIS_BENCHMARK_NAME) $(INSTALL_BIN)
+ 	$(REDIS_INSTALL) $(REDIS_CLI_NAME) $(INSTALL_BIN)
+-	$(REDIS_INSTALL) $(REDIS_CHECK_RDB_NAME) $(INSTALL_BIN)
+-	$(REDIS_INSTALL) $(REDIS_CHECK_AOF_NAME) $(INSTALL_BIN)
+ 	@ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_SENTINEL_NAME)
++	@ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_CHECK_RDB_NAME)
++	@ln -sf $(REDIS_SERVER_NAME) $(INSTALL_BIN)/$(REDIS_CHECK_AOF_NAME)
+-- 
+2.13.5
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/redis.git/commitdiff/fdc861e9cc2011fe3b37a7de83a86a3439e6e959



More information about the pld-cvs-commit mailing list