sqlite: restore pcachetrace extension
we had a mingw patch for this already, so might as well fix it here too
This commit is contained in:
parent
569bc2f14a
commit
c8763c7c64
10
sqlite/0001-sqlite-pcachetrace-include-sqlite3.patch
Normal file
10
sqlite/0001-sqlite-pcachetrace-include-sqlite3.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/ext/misc/pcachetrace.c
|
||||
+++ b/ext/misc/pcachetrace.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
+#include "sqlite3.h"
|
||||
|
||||
/* The original page cache routines */
|
||||
static sqlite3_pcache_methods2 pcacheBase;
|
||||
@ -21,7 +21,7 @@ docdir = $(datadir)/sqlite/extensions
|
||||
# c-source for each of which an extension is built
|
||||
CSRCS = $(filter-out $(addprefix $(srcdir)/,$(CSRCS_IGNORE)),$(wildcard $(srcdir)/*.c))
|
||||
# c-sources not to compile as standalone sqlite-extensions
|
||||
CSRCS_IGNORE = memtrace.c json1.c pcachetrace.c vfstrace.c
|
||||
CSRCS_IGNORE = memtrace.c json1.c vfstrace.c
|
||||
# c-source already compiled into sqlite3 client
|
||||
CSRCS_IGNORE += regexp.c
|
||||
# c-source to be ignored because of compilation errors
|
||||
|
||||
@ -10,7 +10,7 @@ _sqlite_year=2025
|
||||
_srcver=3490100
|
||||
_docver=${_srcver}
|
||||
pkgver=3.49.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A C library that implements an SQL database engine"
|
||||
arch=('i686' 'x86_64')
|
||||
license=(PublicDomain)
|
||||
@ -24,6 +24,7 @@ makedepends=('libreadline-devel' 'icu-devel' 'tcl-devel' 'zlib-devel' 'autotools
|
||||
source=(https://www.sqlite.org/${_sqlite_year}/sqlite-src-${_srcver}.zip
|
||||
https://www.sqlite.org/${_sqlite_year}/sqlite-doc-${_docver}.zip
|
||||
LICENSE
|
||||
0001-sqlite-pcachetrace-include-sqlite3.patch
|
||||
0002-sqlite3.32.3-Makefile.in-fix-rule-compiling-rbu.exe.patch
|
||||
0030-fix-prefix-and-install-dir.patch
|
||||
0031-use-packaged-lempar.c.patch
|
||||
@ -31,10 +32,11 @@ source=(https://www.sqlite.org/${_sqlite_year}/sqlite-src-${_srcver}.zip
|
||||
sha256sums=('4404d93cbce818b1b98ca7259d0ba9b45db76f2fdd9373e56f2d29b519f4d43b'
|
||||
'4581e3340d9d0d8ce03f10fb8ab1cea03cf49fed8198478c1abf5d383521f037'
|
||||
'0b76663a90e034f3d7f2af5bfada4cedec5ebc275361899eccc5c18e6f01ff1f'
|
||||
'6518119034ceb2820d058afcb099d11f636271f55a41ffae22855af66a369166'
|
||||
'2a3be75d6a0e8f7ea1a53f0434a9e1823fcb5965069f482083694388c7564f1c'
|
||||
'f43c799a3f9aef20ece7469d2a99706f95e23036edfe7200262d1143cf5aea92'
|
||||
'9d51e267719f48454627860cf0529928b6711c053e3b930344d897e95a0810fa'
|
||||
'ab871c2fcc4913293cc93a31e5aa925c14a41ac3bb7d58f977cabdcfaab78843')
|
||||
'8c169857b1c449fb7f4e31aaedccdb15435b2f8a83f0f4e744569894a86d8bbd')
|
||||
|
||||
_sqlite_tools="sqlite3.exe sqlite3_analyzer.exe sqldiff.exe dbhash.exe rbu.exe"
|
||||
|
||||
@ -50,6 +52,7 @@ apply_patch_with_msg() {
|
||||
prepare() {
|
||||
cd "sqlite-src-${_srcver}"
|
||||
|
||||
apply_patch_with_msg 0001-sqlite-pcachetrace-include-sqlite3.patch
|
||||
apply_patch_with_msg 0002-sqlite3.32.3-Makefile.in-fix-rule-compiling-rbu.exe.patch
|
||||
apply_patch_with_msg 0030-fix-prefix-and-install-dir.patch
|
||||
apply_patch_with_msg 0031-use-packaged-lempar.c.patch
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user