From 4c9e87141bafc282cf7e18a4a51389b4d9c965820685e3ea214de95d1e56a512 Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Sat, 2 May 2015 19:02:08 +0000 Subject: [PATCH] Accepting request 305001 from home:sumski:branches:server:search Add 0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch from upstream (kde#341990, http://trac.xapian.org/ticket/675) OBS-URL: https://build.opensuse.org/request/show/305001 OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-core?expand=0&rev=63 --- ...hert_cursor.cc-backends-chert-chert_.patch | 58 +++++++++++++++++++ xapian-core.changes | 6 ++ xapian-core.spec | 3 + 3 files changed, 67 insertions(+) create mode 100644 0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch diff --git a/0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch b/0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch new file mode 100644 index 0000000..f5af685 --- /dev/null +++ b/0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch @@ -0,0 +1,58 @@ +diff --git a/backends/chert/chert_cursor.cc b/backends/chert/chert_cursor.cc +index c470c85a276658851a764945ab3f0887827c2ce2..ab29efefbab93a8e2f885e58fd69210231c84b30 100644 +--- a/backends/chert/chert_cursor.cc ++++ b/backends/chert/chert_cursor.cc +@@ -1,7 +1,7 @@ + /* chert_cursor.cc: Btree cursor implementation + * + * Copyright 1999,2000,2001 BrightStation PLC +- * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2012 Olly Betts ++ * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2012,2015 Olly Betts + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as +@@ -97,6 +97,7 @@ ChertCursor::rebuild() + C[level].n = B->C[level].n; + C[level].p = B->C[level].p; + version = B->cursor_version; ++ B->cursor_created_since_last_modification = true; + } + + ChertCursor::~ChertCursor() +diff --git a/backends/chert/chert_table.cc b/backends/chert/chert_table.cc +index 2a97fd4405ed051e6cd1ec18f97bad49feb674d3..7b96ed9b150f20ba360fb486e7a2f96db3936a70 100644 +--- a/backends/chert/chert_table.cc ++++ b/backends/chert/chert_table.cc +@@ -2,7 +2,7 @@ + * + * Copyright 1999,2000,2001 BrightStation PLC + * Copyright 2002 Ananova Ltd +- * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2013,2015 Olly Betts ++ * Copyright 2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015 Olly Betts + * Copyright 2008 Lemur Consulting Ltd + * Copyright 2010 Richard Boulton + * +@@ -1483,6 +1483,11 @@ ChertTable::basic_open(bool revision_supplied, chert_revision_number_t revision_ + + base_letter = ch; + ++ if (cursor_created_since_last_modification) { ++ cursor_created_since_last_modification = false; ++ ++cursor_version; ++ } ++ + /* ready to open the main file */ + + RETURN(true); +@@ -2041,6 +2046,11 @@ ChertTable::cancel() + changed_n = 0; + changed_c = DIR_START; + seq_count = SEQ_START_POINT; ++ ++ if (cursor_created_since_last_modification) { ++ cursor_created_since_last_modification = false; ++ ++cursor_version; ++ } + } + + /************ B-tree reading ************/ diff --git a/xapian-core.changes b/xapian-core.changes index 4ad807d..1190b11 100644 --- a/xapian-core.changes +++ b/xapian-core.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 2 01:27:33 UTC 2015 - hrvoje.senjan@gmail.com + +- Add 0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch + from upstream (kde#341990, http://trac.xapian.org/ticket/675) + ------------------------------------------------------------------- Thu Mar 12 07:34:11 UTC 2015 - mpluskal@suse.com diff --git a/xapian-core.spec b/xapian-core.spec index 2ca817d..b119b32 100644 --- a/xapian-core.spec +++ b/xapian-core.spec @@ -27,6 +27,8 @@ Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}. Source1: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz.asc Source2: %{name}.keyring Source3: baselibs.conf +# PATCH-FIX-UPSTREAM 0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch +Patch0: 0001-backends-chert-chert_cursor.cc-backends-chert-chert_.patch BuildRequires: automake BuildRequires: fdupes BuildRequires: gcc-c++ @@ -90,6 +92,7 @@ files needed for building packages which use Xapian %prep %setup -q +%patch0 -p1 %build %configure \