upgpkg(main/sqlcipher): update to 4.5.2

Signed-off-by: 2096779623 <admin@utermux.dev>
This commit is contained in:
2096779623 2022-08-04 09:22:18 +08:00 committed by Uchiha Kakashi
parent 3c431304bc
commit 7b9f5ba74f
2 changed files with 17 additions and 14 deletions

View File

@ -1,19 +1,21 @@
--- a/src/crypto.h 2022-02-28 20:11:16.000000000 +0000
+++ b/src/crypto.h 2022-04-15 22:46:24.166211467 +0000
@@ -39,10 +39,6 @@
#include "btreeInt.h"
diff -uNr sqlcipher-4.5.2/src/crypto.h sqlcipher-4.5.2.mod/src/crypto.h
--- sqlcipher-4.5.2/src/crypto.h 2022-07-28 03:23:29.000000000 +0800
+++ sqlcipher-4.5.2.mod/src/crypto.h 2022-08-04 09:04:30.948978453 +0800
@@ -40,10 +40,6 @@
#include "pager.h"
#include "vdbeInt.h"
-#ifdef __ANDROID__
-#include <android/log.h>
-#endif
-
/* extensions defined in pager.c */
void *sqlite3PagerGetCodec(Pager*);
void sqlite3PagerSetCodec(Pager*, void *(*)(void*,void*,Pgno,int), void (*)(void*,int,int), void (*)(void*), void *);
--- a/src/crypto_impl.c 2022-02-28 20:11:16.000000000 +0000
+++ b/src/crypto_impl.c 2022-04-15 23:00:47.610944833 +0000
@@ -1660,11 +1660,6 @@
#include <time.h>
#if defined(_WIN32) || defined(SQLITE_OS_WINRT)
diff -uNr sqlcipher-4.5.2/src/crypto_impl.c sqlcipher-4.5.2.mod/src/crypto_impl.c
--- sqlcipher-4.5.2/src/crypto_impl.c 2022-07-28 03:23:29.000000000 +0800
+++ sqlcipher-4.5.2.mod/src/crypto_impl.c 2022-08-04 09:06:21.678978411 +0800
@@ -1648,11 +1648,6 @@
FILE *f = (FILE*) file;
char *fmt = "Elapsed time:%.3f ms - %s\n";
double elapsed = (*((sqlite3_uint64*)run_time))/1000000.0;
@ -25,7 +27,7 @@
if(f) fprintf(f, fmt, elapsed, sqlite3_sql((sqlite3_stmt*)stmt));
return SQLITE_OK;
}
@@ -1714,13 +1709,9 @@
@@ -1702,13 +1697,9 @@
va_start(params, message);
#ifdef CODEC_DEBUG
@ -39,7 +41,7 @@
if(level > sqlcipher_log_level || (sqlcipher_log_logcat == 0 && sqlcipher_log_file == NULL)) {
/* no log target or tag not in included filters */
@@ -1752,11 +1743,6 @@
@@ -1740,11 +1731,7 @@
fprintf((FILE*)sqlcipher_log_file, "\n");
}
}
@ -48,6 +50,7 @@
- __android_log_vprint(ANDROID_LOG_DEBUG, "sqlcipher", message, params);
- }
-#endif
+
end:
va_end(params);
}

View File

@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/sqlcipher/sqlcipher
TERMUX_PKG_DESCRIPTION="SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files"
TERMUX_PKG_LICENSE="BSD"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.5.1
TERMUX_PKG_VERSION=4.5.2
TERMUX_PKG_SRCURL=https://github.com/sqlcipher/sqlcipher/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=023499516ef2ade14fbcdbe93fb81cc69458ae6cb3544614df8dbef34835b406
TERMUX_PKG_SHA256=6925f012deb5582e39761a7d4816883cc15b41851a8e70b447c223b8ef406e2a
TERMUX_PKG_DEPENDS="openssl"
TERMUX_PKG_BUILD_DEPENDS="tcl"
TERMUX_PKG_AUTO_UPDATE=true