Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
3.35.1-2: add a workaround for https://www.sqlite.org/forum/forumpost…
Browse files Browse the repository at this point in the history
…/1061e627d0

git-svn-id: file:///srv/repos/svn-packages/svn@410106 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
heftig authored and svntogit committed Mar 16, 2021
1 parent 4780338 commit bf1cc8b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
9 changes: 8 additions & 1 deletion trunk/PKGBUILD
Expand Up @@ -7,7 +7,7 @@ _srcver=3350100
_docver=${_srcver}
#_docver=3330000
pkgver=3.35.1
pkgrel=1
pkgrel=2
pkgdesc="A C library that implements an SQL database engine"
arch=('x86_64')
license=('custom:Public Domain')
Expand All @@ -16,12 +16,14 @@ makedepends=('tcl' 'readline' 'zlib')
source=(https://www.sqlite.org/2021/sqlite-src-${_srcver}.zip
https://www.sqlite.org/2021/sqlite-doc-${_docver}.zip
sqlite-lemon-system-template.patch
tracker-workaround.diff
license.txt)
options=('!emptydirs' '!makeflags') # json extensions breaks parallel build
# upstream now switched to sha3sums - currently not suppoerted by makepkg
sha256sums=('8cb60d7cc55c410fcd6990fe92802fda02760efa4fe3569a677e3e8dcdf8b107'
'3bb955ea75606e735955aa0b680d72d91cde367b6d3e38ee14b88a588deb6a4f'
'55746d93b0df4b349c4aa4f09535746dac3530f9fd6de241c9f38e2c92e8ee97'
'8f2134e31d489e3eadd2564a8a950797202bddc67cae553b8694d19eb455e2c1'
'4e57d9ac979f1c9872e69799c2597eeef4c6ce7224f3ede0bf9dc8d217b1e65d')

prepare() {
Expand All @@ -31,6 +33,11 @@ prepare() {
# https://src.fedoraproject.org/rpms/sqlite/blob/master/f/sqlite.spec
patch -Np1 -i ../sqlite-lemon-system-template.patch

# workaround
# https://www.sqlite.org/forum/forumpost/1061e627d0
# https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/161#note_1059821
patch -Np1 -i ../tracker-workaround.diff

# autoreconf -vfi
}

Expand Down
17 changes: 17 additions & 0 deletions trunk/tracker-workaround.diff
@@ -0,0 +1,17 @@
src/select.c | 3 +++
1 file changed, 3 insertions(+)

diff --git c/src/select.c i/src/select.c
index beb5c1e3b..00b709652 100644
--- c/src/select.c
+++ i/src/select.c
@@ -4003,6 +4003,9 @@ static int flattenSubquery(
** queries.
*/
if( pSub->pPrior ){
+ if( pSrc->nSrc!=1 ){
+ return 0; /* workaround https://www.sqlite.org/forum/forumpost/1061e627d0 */
+ }
if( pSub->pOrderBy ){
return 0; /* Restriction (20) */
}

0 comments on commit bf1cc8b

Please sign in to comment.