From 0f94db24e1035037992abd3286ebf3228efcf25dd1b2835edef88dbf4c00c124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 14 May 2012 10:08:43 +0000 Subject: [PATCH] - Add upstream commit 79a4a3a84f to fix subversion failures OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=59 --- 79a4a3a84f.patch | 17 +++++++++++++++++ sqlite3.changes | 5 +++++ sqlite3.spec | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 79a4a3a84f.patch diff --git a/79a4a3a84f.patch b/79a4a3a84f.patch new file mode 100644 index 0000000..e60b465 --- /dev/null +++ b/79a4a3a84f.patch @@ -0,0 +1,17 @@ +Index: sqlite-autoconf-3071100/sqlite3.c +=================================================================== +--- sqlite-autoconf-3071100.orig/sqlite3.c ++++ sqlite-autoconf-3071100/sqlite3.c +@@ -67595,8 +67595,10 @@ case OP_Savepoint: { + rc = p->rc; + }else{ + u.ar.iSavepoint = db->nSavepoint - u.ar.iSavepoint - 1; +- for(u.ar.ii=0; u.ar.iinDb; u.ar.ii++){ +- sqlite3BtreeTripAllCursors(db->aDb[u.ar.ii].pBt, SQLITE_ABORT); ++ if( u.ar.p1==SAVEPOINT_ROLLBACK ){ ++ for(u.ar.ii=0; u.ar.iinDb; u.ar.ii++){ ++ sqlite3BtreeTripAllCursors(db->aDb[u.ar.ii].pBt, SQLITE_ABORT); ++ } + } + for(u.ar.ii=0; u.ar.iinDb; u.ar.ii++){ + rc = sqlite3BtreeSavepoint(db->aDb[u.ar.ii].pBt, u.ar.p1, u.ar.iSavepoint); diff --git a/sqlite3.changes b/sqlite3.changes index b65457b..9669040 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 14 09:53:58 UTC 2012 - idonmez@suse.com + +- Add upstream commit 79a4a3a84f to fix subversion failures + ------------------------------------------------------------------- Fri May 4 06:49:49 UTC 2012 - max@suse.com diff --git a/sqlite3.spec b/sqlite3.spec index 6968b6c..505ba60 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -37,6 +37,7 @@ Provides: sqlite = %version Obsoletes: sqlite < %version Source0: sqlite-autoconf-%tarversion.tar.gz Source1: baselibs.conf +Patch1: 79a4a3a84f.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # bug437293 %ifarch ppc64 @@ -112,6 +113,7 @@ database access without running a separate RDBMS process. %prep %setup -q -n sqlite-autoconf-%tarversion +%patch1 -p1 %build export CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_USE_URI"