!7 fix failure caused by GCC upgrade to 10
From: @aslfjk Reviewed-by: @yangzhao_kl,@yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
aa2e3bda5c
13
Fix-redis5-gcc-10.patch
Normal file
13
Fix-redis5-gcc-10.patch
Normal 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>
|
||||
@ -6,7 +6,7 @@
|
||||
%global Pname redis
|
||||
Name: redis5
|
||||
Version: 5.0.7
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: A persistent key-value database
|
||||
License: BSD and MIT
|
||||
URL: https://redis.io
|
||||
@ -24,6 +24,7 @@ Source10: https://github.com/antirez/%{Pname}-doc/archive/%{doc_commi
|
||||
%ifarch aarch64
|
||||
Patch0001: Modify-aarch64-architecture-jemalloc-page-size-from-from-4k-to-64k.patch
|
||||
%endif
|
||||
Patch0002: Fix-redis5-gcc-10.patch
|
||||
BuildRequires: gcc
|
||||
%if %{with tests}
|
||||
BuildRequires: procps-ng tcl
|
||||
@ -184,6 +185,9 @@ exit 0
|
||||
%{_docdir}/%{Pname}
|
||||
|
||||
%changelog
|
||||
* 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user