!3 修复由于gcc升级到12版本导致的编译失败

From: @cherry530 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-07-14 03:10:27 +00:00 committed by Gitee
commit bcafeecff5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/api/omdocument.cc b/api/omdocument.cc
index e8ef1b9..327b1c4 100644
--- a/api/omdocument.cc
+++ b/api/omdocument.cc
@@ -39,6 +39,7 @@
#include <algorithm>
#include <string>
+#include <limits>
using namespace std;

View File

@ -1,10 +1,13 @@
Name: xapian-core
Version: 1.4.9
Release: 3
Release: 4
Summary: An Open Source Probabilistic Information Retrieval Library
License: GPLv2+
URL: http://www.xapian.org/
Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz
Patch0: Fix-compilation-failure-caused-by-gcc12.patch
BuildRequires: gcc-c++ libuuid-devel zlib-devel
%ifarch %{valgrind_arches}
BuildRequires: valgrind-devel
@ -83,6 +86,9 @@ rm -rf %{buildroot}%{_datadir}/doc/%{name}
%changelog
* Fri Jul 14 2023 xu_ping <707078654@qq.com> - 1.4.9-4
- Fix compilation failure caused by gcc12
* Wed Aug 26 2020 whoisxxx <zhangxuzhou4@huawei.com> - 1.4.9-3
- Judge arch before use valgrind