From 7da2dac19b643a2f5901a04330002f235e06d421 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 30 Sep 2008 05:50:50 +0000 Subject: [PATCH] - Remove references to temporary registers from cache on release (#463061) --- sqlite-3.5.9-remove-temporary.patch | 11 +++++++++++ sqlite.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 sqlite-3.5.9-remove-temporary.patch diff --git a/sqlite-3.5.9-remove-temporary.patch b/sqlite-3.5.9-remove-temporary.patch new file mode 100644 index 0000000..0a841fb --- /dev/null +++ b/sqlite-3.5.9-remove-temporary.patch @@ -0,0 +1,11 @@ +diff -up sqlite-3.5.9/src/expr.c.remove-temp sqlite-3.5.9/src/expr.c +--- sqlite-3.5.9/src/expr.c.remove-temp 2008-05-13 15:50:50.000000000 +0300 ++++ sqlite-3.5.9/src/expr.c 2008-09-22 18:04:39.000000000 +0300 +@@ -3428,6 +3428,7 @@ int sqlite3GetTempReg(Parse *pParse){ + } + void sqlite3ReleaseTempReg(Parse *pParse, int iReg){ + if( iReg && pParse->nTempRegaTempReg) ){ ++ sqlite3ExprWritableRegister(pParse, iReg, iReg); + pParse->aTempReg[pParse->nTempReg++] = iReg; + } + } diff --git a/sqlite.spec b/sqlite.spec index 84eaa22..e73f956 100644 --- a/sqlite.spec +++ b/sqlite.spec @@ -6,12 +6,13 @@ Summary: Library that implements an embeddable SQL database engine Name: sqlite Version: 3.5.9 -Release: 1%{?dist} +Release: 2%{?dist} License: Public Domain Group: Applications/Databases URL: http://www.sqlite.org/ Source: http://www.sqlite.org/sqlite-%{version}.tar.gz Patch1: sqlite-3.5.8-pkgconfig-version.patch +Patch2: sqlite-3.5.9-remove-temporary.patch Obsoletes: sqlite3 sqlite3-devel BuildRequires: ncurses-devel readline-devel glibc-devel BuildRequires: /usr/bin/tclsh @@ -52,6 +53,7 @@ This package contains the tcl modules for %{name}. %prep %setup -q %patch1 -p1 -b .pkgconf +%patch2 -p1 -b .remove-temp %build export CFLAGS="$RPM_OPT_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -Wall" @@ -109,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Tue Sep 30 2008 Panu Matilainen - 3.5.9-2 +- Remove references to temporary registers from cache on release (#463061) + * Tue Jun 17 2008 Stepan Kasal - 3.5.9-1 - update to 3.5.9