add loongarch64 support
(cherry picked from commit 86b6c6f0e1debd18a17201dccce4b3156e306c11)
This commit is contained in:
parent
6562afe21e
commit
5311372452
26
Add-loongarch64-support.patch
Normal file
26
Add-loongarch64-support.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 2e2eade35a9aabd1109a7f457b1da444fb0a8141 Mon Sep 17 00:00:00 2001
|
||||||
|
From: WangQiang <wangqiang1@kylinos.cn>
|
||||||
|
Date: Tue, 28 Jun 2022 10:38:31 +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
|
||||||
|
|
||||||
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
12
redis5.spec
12
redis5.spec
@ -6,7 +6,7 @@
|
|||||||
%global Pname redis
|
%global Pname redis
|
||||||
Name: redis5
|
Name: redis5
|
||||||
Version: 5.0.7
|
Version: 5.0.7
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: A persistent key-value database
|
Summary: A persistent key-value database
|
||||||
License: BSD and MIT
|
License: BSD and MIT
|
||||||
URL: https://redis.io
|
URL: https://redis.io
|
||||||
@ -24,6 +24,8 @@ Source10: https://github.com/antirez/%{Pname}-doc/archive/%{doc_commi
|
|||||||
|
|
||||||
Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch
|
Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch
|
||||||
Patch0002: Fix-redis5-gcc-10.patch
|
Patch0002: Fix-redis5-gcc-10.patch
|
||||||
|
Patch0003: Add-loongarch64-support.patch
|
||||||
|
Patch0004: Update-config.guess-and-config.sub.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
@ -85,6 +87,10 @@ tar -xvf %{SOURCE10}
|
|||||||
%patch0001 -p1
|
%patch0001 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch0002 -p1
|
%patch0002 -p1
|
||||||
|
%ifarch loongarch64
|
||||||
|
%patch0003 -p1
|
||||||
|
%patch0004 -p1
|
||||||
|
%endif
|
||||||
mv ../%{Pname}-doc-%{doc_commit} doc
|
mv ../%{Pname}-doc-%{doc_commit} doc
|
||||||
mv deps/lua/COPYRIGHT COPYRIGHT-lua
|
mv deps/lua/COPYRIGHT COPYRIGHT-lua
|
||||||
mv deps/hiredis/COPYING COPYING-hiredis
|
mv deps/hiredis/COPYING COPYING-hiredis
|
||||||
@ -189,6 +195,10 @@ exit 0
|
|||||||
%{_docdir}/%{Pname}
|
%{_docdir}/%{Pname}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 27 2022 Ge Wang <wangge20@h-partners.com> - 5.0.7-5
|
||||||
|
- Add loongarch64 support
|
||||||
|
- Update config.guess and config.sub
|
||||||
|
|
||||||
* Thu Sep 02 2021 lingsheng <lingsheng@huawei.com> - 5.0.7-4
|
* Thu Sep 02 2021 lingsheng <lingsheng@huawei.com> - 5.0.7-4
|
||||||
- Fix missing patch in source package
|
- Fix missing patch in source package
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user