!56 Update config.guess and config.sub for loongarch.

From: @huajingyun 
Reviewed-by: @wuzeyi1 
Signed-off-by: @wuzeyi1
This commit is contained in:
openeuler-ci-bot 2022-12-06 03:15:08 +00:00 committed by Gitee
commit b83ea8d205
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5460 additions and 1 deletions

View 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

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
%global Pname redis
Name: redis6
Version: 6.2.7
Release: 1
Release: 2
Summary: A persistent key-value database
License: BSD and MIT
URL: https://redis.io
@ -21,6 +21,9 @@ Source10: https://github.com/%{Pname}/%{Pname}-doc/archive/%{doc_comm
Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch
Patch0003: Add-loongarch64-support.patch
Patch0004: Update-config.guess-and-config.sub.patch
Patch0002: fix-help-info.patch
BuildRequires: make gcc
%if %{with tests}
@ -82,6 +85,10 @@ tar -xvf %{SOURCE10}
%patch0001 -p1
%patch0002 -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
@ -210,6 +217,9 @@ fi
%{_docdir}/%{Pname}
%changelog
* Tue Nov 15 2022 huajingyun <huajingyun@loongson.cn> - 6.2.7-2
- Update config.guess and config.sub for loongarch
* Tue Jun 14 2022 yangweidong <yangweidong9@huawei.com> - 6.2.7-1
- Fix CVE-2022-24735 CVE-2022-24736 CVE-2021-29477 CVE-2021-32672