From 9b86509d24aa7db007cfe665dcea0fee598706ca Mon Sep 17 00:00:00 2001 From: Fabian Deutsch Date: Fri, 7 Jun 2013 09:17:05 +0200 Subject: [PATCH] Unbundle jemalloc Signed-off-by: Fabian Deutsch --- redis-deps-unbundle-jemalloc.patch | 14 ++++++++++++++ redis.spec | 10 +++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 redis-deps-unbundle-jemalloc.patch diff --git a/redis-deps-unbundle-jemalloc.patch b/redis-deps-unbundle-jemalloc.patch new file mode 100644 index 0000000..7aa574d --- /dev/null +++ b/redis-deps-unbundle-jemalloc.patch @@ -0,0 +1,14 @@ +--- a/src/Makefile 2013-04-30 15:15:56.000000000 +0200 ++++ b/src/Makefile 2013-06-07 09:13:06.913999530 +0200 +@@ -71,9 +71,8 @@ ifeq ($(MALLOC),tcmalloc_minimal) + endif + + ifeq ($(MALLOC),jemalloc) +- DEPENDENCY_TARGETS+= jemalloc +- FINAL_CFLAGS+= -DUSE_JEMALLOC -I../deps/jemalloc/include +- FINAL_LIBS+= ../deps/jemalloc/lib/libjemalloc.a -ldl ++ FINAL_CFLAGS+= -DUSE_JEMALLOC -I/usr/include/jemalloc ++ FINAL_LIBS+= -ljemalloc -ldl + endif + + REDIS_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS) diff --git a/redis.spec b/redis.spec index 9eda453..53a2646 100644 --- a/redis.spec +++ b/redis.spec @@ -10,7 +10,7 @@ Name: redis Version: 2.6.13 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A persistent key-value database Group: Applications/Databases @@ -23,6 +23,7 @@ Source3: %{name}.service # Update configuration for Fedora Patch0: %{name}-2.6.13-redis.conf.patch Patch1: %{name}-deps-PIC.patch +Patch2: %{name}-deps-unbundle-jemalloc.patch BuildRequires: systemd-units %if !0%{?el5} @@ -31,6 +32,7 @@ BuildRequires: tcl >= 8.5 BuildRequires: google-perftools-devel %endif %endif +BuildRequires: jemalloc-devel Requires: logrotate Requires(post): chkconfig @@ -51,8 +53,11 @@ different kind of sorting abilities. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %build +rm -rvf deps/jemalloc + export CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} \ DEBUG="" \ @@ -121,6 +126,9 @@ fi %{_unitdir}/%{name}.service %changelog +* Fri Jun 07 2013 Fabian Deutsch - 2.6.13-2 +- Unbundle jemalloc + * Fri Jun 07 2013 Fabian Deutsch - 2.6.13-1 - Add compile PIE flag (rhbz#955459) - Update to redis 2.6.13 (rhbz#820919)