diff --git a/Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch b/Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch new file mode 100644 index 0000000000000000000000000000000000000000..9fc8845e24957c1fdc152e8201ce52072819bdb5 --- /dev/null +++ b/Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch @@ -0,0 +1,25 @@ +From 8c4c3730d69ea1e3352d35e18999d42dca4c07e5 Mon Sep 17 00:00:00 2001 +From: lingsheng +Date: Mon, 29 Mar 2021 17:37:06 +0800 +Subject: [PATCH] Modify aarch64 architecture jemalloc page size from 4k to 64k + +--- + deps/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/deps/Makefile b/deps/Makefile +index eb35c1e..2ba6ae3 100644 +--- a/deps/Makefile ++++ b/deps/Makefile +@@ -77,7 +77,7 @@ JEMALLOC_LDFLAGS= $(LDFLAGS) + + jemalloc: .make-prerequisites + @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR) +- cd jemalloc && ./configure --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)" ++ cd jemalloc && ./configure --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ --enable-cc-silence CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)" --with-lg-page=16 + cd jemalloc && $(MAKE) CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)" lib/libjemalloc.a + + .PHONY: jemalloc +-- +2.23.0 + diff --git a/redis5.spec b/redis5.spec index 1235b5013f847b91e9655ec542eb770e0f851168..c760cc7928cb151a82c6994d58962afc376b8176 100644 --- a/redis5.spec +++ b/redis5.spec @@ -6,7 +6,7 @@ %global Pname redis Name: redis5 Version: 5.0.7 -Release: 1 +Release: 2 Summary: A persistent key-value database License: BSD and MIT URL: https://redis.io @@ -21,6 +21,9 @@ Source7: %{Pname}-limit-systemd Source8: %{Pname}-limit-init Source9: macros.%{Pname} Source10: https://github.com/antirez/%{Pname}-doc/archive/%{doc_commit}/%{Pname}-doc-%{short_doc_commit}.tar.gz +%ifarch aarch64 +Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch +%endif BuildRequires: gcc %if %{with tests} BuildRequires: procps-ng tcl @@ -76,7 +79,7 @@ administration and development. %prep tar -xvf %{SOURCE10} -%autosetup -n %{Pname}-%{version} +%autosetup -n %{Pname}-%{version} -p1 mv ../%{Pname}-doc-%{doc_commit} doc mv deps/lua/COPYRIGHT COPYRIGHT-lua mv deps/hiredis/COPYING COPYING-hiredis @@ -181,5 +184,8 @@ exit 0 %{_docdir}/%{Pname} %changelog +* Mon Mar 29 2021 lingsheng - 5.0.7-2 +- Modify aarch64 architecture jemalloc page size from 4k to 64k + * Sat Mar 20 2021 huanghaitao - 5.0.7-1 - package init