Compare commits
10 Commits
b97bd780a1
...
e5b16aec92
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5b16aec92 | ||
|
|
0e81cfc796 | ||
|
|
b0386a5d48 | ||
|
|
de6df0b6a6 | ||
|
|
0a5e8982dc | ||
|
|
aa3e0956ee | ||
|
|
28cc8b24e6 | ||
|
|
b503aa9da8 | ||
|
|
81fd04ae6c | ||
|
|
2d6f0fd162 |
26
Add-loongarch64-support.patch
Normal file
26
Add-loongarch64-support.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From a1f23456adfaec27df27bba511bcf7fae59708f0 Mon Sep 17 00:00:00 2001
|
||||
From: WangQiang <wangqiang1@kylinos.cn>
|
||||
Date: Tue, 28 Jun 2022 10:10:21 +0800
|
||||
Subject: [PATCH] Add LoongArch64 Support
|
||||
|
||||
---
|
||||
.../include/jemalloc/internal/jemalloc_internal_types.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
|
||||
index 1b750b1..780627d 100644
|
||||
--- a/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
|
||||
+++ b/deps/jemalloc/include/jemalloc/internal/jemalloc_internal_types.h
|
||||
@@ -107,6 +107,9 @@ typedef int malloc_cpuid_t;
|
||||
# ifdef __tile__
|
||||
# define LG_QUANTUM 4
|
||||
# endif
|
||||
+# ifdef __loongarch__
|
||||
+# define LG_QUANTUM 4
|
||||
+# endif
|
||||
# ifdef __le32__
|
||||
# define LG_QUANTUM 4
|
||||
# endif
|
||||
--
|
||||
2.27.0
|
||||
|
||||
@ -1,25 +1,12 @@
|
||||
From 8c4c3730d69ea1e3352d35e18999d42dca4c07e5 Mon Sep 17 00:00:00 2001
|
||||
From: lingsheng <lingsheng@huawei.com>
|
||||
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
|
||||
@@ -81,7 +81,7 @@ JEMALLOC_LDFLAGS= $(LDFLAGS)
|
||||
diff -Naru redis-6.2.7/deps/Makefile redis-6.2.7-new/deps/Makefile
|
||||
--- redis-6.2.7/deps/Makefile 2022-04-27 21:31:52.000000000 +0800
|
||||
+++ redis-6.2.7-new/deps/Makefile 2022-06-14 15:21:56.254108000 +0800
|
||||
@@ -88,7 +88,7 @@
|
||||
|
||||
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 && ./configure --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ CFLAGS="$(JEMALLOC_CFLAGS)" LDFLAGS="$(JEMALLOC_LDFLAGS)"
|
||||
+ cd jemalloc && ./configure --with-version=5.1.0-0-g0 --with-lg-quantum=3 --with-jemalloc-prefix=je_ 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
|
||||
|
||||
|
||||
5423
Update-config.guess-and-config.sub.patch
Normal file
5423
Update-config.guess-and-config.sub.patch
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
redis-6.2.7.tar.gz
Normal file
BIN
redis-6.2.7.tar.gz
Normal file
Binary file not shown.
38
redis6.spec
38
redis6.spec
@ -5,8 +5,8 @@
|
||||
%global make_flags DEBUG="" V="echo" LDFLAGS="%{?__global_ldflags}" CFLAGS+="%{optflags} -fPIC" INSTALL="install -p" PREFIX=%{buildroot}%{_prefix} BUILD_WITH_SYSTEMD=yes BUILD_TLS=yes
|
||||
%global Pname redis
|
||||
Name: redis6
|
||||
Version: 6.0.11
|
||||
Release: 2
|
||||
Version: 6.2.7
|
||||
Release: 3
|
||||
Summary: A persistent key-value database
|
||||
License: BSD and MIT
|
||||
URL: https://redis.io
|
||||
@ -18,9 +18,11 @@ Source6: %{Pname}-shutdown
|
||||
Source7: %{Pname}-limit-systemd
|
||||
Source9: macros.%{Pname}
|
||||
Source10: https://github.com/%{Pname}/%{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
|
||||
Patch0003: Add-loongarch64-support.patch
|
||||
Patch0004: Update-config.guess-and-config.sub.patch
|
||||
|
||||
BuildRequires: make gcc
|
||||
%if %{with tests}
|
||||
BuildRequires: procps-ng tcl
|
||||
@ -38,6 +40,7 @@ Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
Provides: redis(modules_abi)%{?_isa} = 1
|
||||
Conflicts: redis redis5
|
||||
%description
|
||||
Redis is an advanced key-value store. It is often referred to as a data
|
||||
structure server since keys can contain strings, hashes, lists, sets and
|
||||
@ -61,6 +64,7 @@ You can use Redis from most programming languages also.
|
||||
%package devel
|
||||
Summary: Development header for Redis module development
|
||||
Provides: %{Pname}-static = %{version}-%{release}
|
||||
Conflicts: redis redis5
|
||||
%description devel
|
||||
Header file required for building loadable Redis modules. Detailed
|
||||
API documentation is available in the redis-doc package.
|
||||
@ -69,14 +73,21 @@ API documentation is available in the redis-doc package.
|
||||
Summary: Documentation for Redis
|
||||
License: CC-BY-SA
|
||||
BuildArch: noarch
|
||||
Conflicts: redis < 4.0
|
||||
Conflicts: redis redis5
|
||||
%description doc
|
||||
Detailed documentation for many aspects of Redis use,
|
||||
administration and development.
|
||||
|
||||
%prep
|
||||
tar -xvf %{SOURCE10}
|
||||
%autosetup -n %{Pname}-%{version} -p1
|
||||
%setup -n %{Pname}-%{version}
|
||||
%ifarch aarch64
|
||||
%patch0001 -p1
|
||||
%endif
|
||||
%ifarch loongarch64
|
||||
%patch0003 -p1
|
||||
%patch0004 -p1
|
||||
%endif
|
||||
mv ../%{Pname}-doc-%{doc_commit} doc
|
||||
mv deps/lua/COPYRIGHT COPYRIGHT-lua
|
||||
mv deps/jemalloc/COPYING COPYING-jemalloc
|
||||
@ -205,6 +216,21 @@ fi
|
||||
%{_docdir}/%{Pname}
|
||||
|
||||
%changelog
|
||||
* Wed Dec 20 2023 xiexing <xiexing4@h-partners.com> - 6.2.7-3
|
||||
- add Conflicts with redis and redis5
|
||||
|
||||
* Tue Dec 27 2022 Ge Wang <wangge20@h-partners.com> - 6.2.7-2
|
||||
- Update config.guess and config.sub for loongarch64 architecture
|
||||
|
||||
* Wed Jun 15 2022 yangweidong <yangweidong9@huawei.com> - 6.2.7-1
|
||||
- Fix CVE-2022-24735 CVE-2022-24736 CVE-2021-29477 CVE-2021-32672
|
||||
|
||||
* Thu Nov 04 2021 liwu <liwu13@huawei.com> - 6.0.11-4
|
||||
- Fix CVE-2021-32626
|
||||
|
||||
* Thu Sep 02 2021 lingsheng <lingsheng@huawei.com> - 6.0.11-3
|
||||
- Fix missing patch in source package
|
||||
|
||||
* Mon Mar 29 2021 lingsheng <lingsheng@huawei.com> - 6.0.11-2
|
||||
- Modify aarch64 architecture jemalloc page size from 4k to 64k
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user