Fix compilation failure caused by gcc12
Signed-off-by: cherry530 <707078654@qq.com>
This commit is contained in:
parent
24f604341d
commit
2411ed3462
12
Fix-compilation-failure-caused-by-gcc12.patch
Normal file
12
Fix-compilation-failure-caused-by-gcc12.patch
Normal 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;
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user