fix build error caused by gcc update to 12.3.0
This commit is contained in:
parent
7bad10ab60
commit
309d7b00a3
11
Fix-build-error-GCC12.patch
Normal file
11
Fix-build-error-GCC12.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -Naur a/src/String.h b/src/String.h
|
||||
--- a/src/String.h 2023-07-25 10:51:57.599822581 +0800
|
||||
+++ b/src/String.h 2023-07-25 10:52:19.904147633 +0800
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <string>
|
||||
+#include <ctime>
|
||||
|
||||
class String
|
||||
{
|
||||
@ -1,17 +1,18 @@
|
||||
Name: predixy
|
||||
Version: 1.0.5
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: High performance and full featured proxy for redis sentinel and redis cluster
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/joyieldInc/predixy
|
||||
Source: https://github.com/joyieldInc/%{name}/archive/refs/tags/%{version}.tar.gz
|
||||
Patch0: Fix-build-error-GCC12.patch
|
||||
BuildRequires: make gcc-c++ libstdc++-static
|
||||
Requires: redis
|
||||
%description
|
||||
Predixy is a high performance and fully featured proxy for redis sentinel and redis cluster.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
@ -47,6 +48,9 @@ popd
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Jul 25 2023 yaoxin <yao_xin001@hoperun.com> - 1.0.5-3
|
||||
- fix build error caused by gcc update to 12.3.0
|
||||
|
||||
* Fri Aug 6 2021 liyanan <liyanan32@huawei.com> - 1.0.5-2
|
||||
- Modify buildrequire form gcc-g++ to gcc-c++
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user