diff --git a/Fix-build-error-GCC12.patch b/Fix-build-error-GCC12.patch new file mode 100644 index 0000000..48d146c --- /dev/null +++ b/Fix-build-error-GCC12.patch @@ -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 + #include + #include ++#include + + class String + { diff --git a/predixy.spec b/predixy.spec index 5cd37cf..f51dd3b 100644 --- a/predixy.spec +++ b/predixy.spec @@ -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 - 1.0.5-3 +- fix build error caused by gcc update to 12.3.0 + * Fri Aug 6 2021 liyanan - 1.0.5-2 - Modify buildrequire form gcc-g++ to gcc-c++