Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2508a45d67
!56 [sync] PR-47: add Conflicts in spec
From: @openeuler-sync-bot 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2024-06-20 06:12:54 +00:00
xiexing
2bad3c3ed6 update redis5.spec.
add Conflicts in spec

Signed-off-by: xiexing <xiexing4@hisilicon.com>
(cherry picked from commit 7bbdfe8f735a1ff7454c3796a5e4feb99f3b8761)
2024-06-20 13:45:41 +08:00
openeuler-ci-bot
130709a5e6
!55 [sync] PR-42: Add loongarch64 support and update config.guess config.sub
From: @openeuler-sync-bot 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2024-06-20 05:38:11 +00:00
wang--ge
5311372452 add loongarch64 support
(cherry picked from commit 86b6c6f0e1debd18a17201dccce4b3156e306c11)
2024-06-20 10:51:46 +08:00
openeuler-ci-bot
6562afe21e !10 [sync] PR-8: Fix missing patch in source package
From: @openeuler-sync-bot
Reviewed-by: @yangzhao_kl
Signed-off-by: @yangzhao_kl
2021-09-02 12:33:57 +00:00
lingsheng
5cc10538f6 Fix missing patch in source package
(cherry picked from commit 7cbc4c23663ea84607315014ca7fd59641d807e6)
2021-09-02 19:07:13 +08:00
openeuler-ci-bot
aa2e3bda5c !7 fix failure caused by GCC upgrade to 10
From: @aslfjk
Reviewed-by: @yangzhao_kl,@yangzhao_kl
Signed-off-by: @yangzhao_kl
2021-08-04 07:19:54 +00:00
王勇
f911aef90d fix failure caused by GCC upgrade to GCC-10 2021-08-04 14:44:53 +08:00
openeuler-ci-bot
8e01e9de79 !4 Modify aarch64 architecture jemalloc page size from 4k to 64k
From: @ultra_planet
Reviewed-by: @si-gui,@zhengzhenyu
Signed-off-by: @zhengzhenyu
2021-03-30 10:52:01 +08:00
lingsheng
27f9341b1f Modify aarch64 architecture jemalloc page size from 4k to 64k 2021-03-29 19:26:41 +08:00
5 changed files with 5522 additions and 2 deletions

View 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

13
Fix-redis5-gcc-10.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/src/sds.h b/src/sds.h
index 1bdb60d..adcc12c 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -34,7 +34,7 @@
#define __SDS_H
#define SDS_MAX_PREALLOC (1024*1024)
-const char *SDS_NOINIT;
+extern const char *SDS_NOINIT;
#include <sys/types.h>
#include <stdarg.h>

View File

@ -0,0 +1,25 @@
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
@@ -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

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,7 @@
%global Pname redis
Name: redis5
Version: 5.0.7
Release: 1
Release: 6
Summary: A persistent key-value database
License: BSD and MIT
URL: https://redis.io
@ -21,6 +21,12 @@ 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
Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch
Patch0002: Fix-redis5-gcc-10.patch
Patch0003: Add-loongarch64-support.patch
Patch0004: Update-config.guess-and-config.sub.patch
BuildRequires: gcc
%if %{with tests}
BuildRequires: procps-ng tcl
@ -38,6 +44,9 @@ Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Provides: redis(modules_abi) = 1
Conflicts: redis < 5.0
Conflicts: redis > 6.0
%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
@ -76,7 +85,15 @@ administration and development.
%prep
tar -xvf %{SOURCE10}
%autosetup -n %{Pname}-%{version}
%setup -n %{Pname}-%{version}
%ifarch aarch64
%patch0001 -p1
%endif
%patch0002 -p1
%ifarch loongarch64
%patch0003 -p1
%patch0004 -p1
%endif
mv ../%{Pname}-doc-%{doc_commit} doc
mv deps/lua/COPYRIGHT COPYRIGHT-lua
mv deps/hiredis/COPYING COPYING-hiredis
@ -181,5 +198,21 @@ exit 0
%{_docdir}/%{Pname}
%changelog
* Mon Dec 18 2023 xiexing <xiexing4@h-partners.com> - 5.0.7-6
- add Conflicts in spec
* 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
- Fix missing patch in source package
* Tue Aug 03 2021 wangyong <wangyong187@huawei.com> - 5.0.7-3
- Fix build error caused by GCC upgrade to GCC-10
* Mon Mar 29 2021 lingsheng <lingsheng@huawei.com> - 5.0.7-2
- Modify aarch64 architecture jemalloc page size from 4k to 64k
* Sat Mar 20 2021 huanghaitao <huanghaitao8@huawei.com> - 5.0.7-1
- package init