From 2411ed34622caacc2e4c10046bacba88f4b68fa3 Mon Sep 17 00:00:00 2001 From: cherry530 <707078654@qq.com> Date: Fri, 14 Jul 2023 10:25:12 +0800 Subject: [PATCH] Fix compilation failure caused by gcc12 Signed-off-by: cherry530 <707078654@qq.com> --- Fix-compilation-failure-caused-by-gcc12.patch | 12 ++++++++++++ xapian-core.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Fix-compilation-failure-caused-by-gcc12.patch diff --git a/Fix-compilation-failure-caused-by-gcc12.patch b/Fix-compilation-failure-caused-by-gcc12.patch new file mode 100644 index 0000000..8feb58c --- /dev/null +++ b/Fix-compilation-failure-caused-by-gcc12.patch @@ -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 + #include ++#include + + using namespace std; + diff --git a/xapian-core.spec b/xapian-core.spec index 4a8bc13..ba10a2d 100644 --- a/xapian-core.spec +++ b/xapian-core.spec @@ -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 - 1.4.9-3 - Judge arch before use valgrind