diff options
author | Arn0 <yth@ythogtha.org> | 2021-04-18 17:20:56 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-04-24 23:16:06 +0700 |
commit | a3da048e47c6422ac8d59f93ab931a8c7c729f00 (patch) | |
tree | a90cd019ae1af545555b3b59fccaf716bf3c695f /system/sqldiff/sqldiff.SlackBuild | |
parent | d8c7ca6b5f0bc7bd011d4144546172186aa3dea2 (diff) |
system/sqldiff: updated for version 3.35.5
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/sqldiff/sqldiff.SlackBuild')
-rw-r--r-- | system/sqldiff/sqldiff.SlackBuild | 63 |
1 files changed, 49 insertions, 14 deletions
diff --git a/system/sqldiff/sqldiff.SlackBuild b/system/sqldiff/sqldiff.SlackBuild index 4385747b8b39..07d36f7f1af4 100644 --- a/system/sqldiff/sqldiff.SlackBuild +++ b/system/sqldiff/sqldiff.SlackBuild @@ -22,11 +22,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=sqldiff -VERSION=${VERSION:-3.13} +VERSION=${VERSION:-3.35.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRCNAM=sqlite -SRCVER=$(tr -d . <<< "${VERSION}0000") +SRCVER="3350500" if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -56,7 +56,37 @@ else fi # Enable the same features as slackware official sqlite package: -SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_ICU -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_SECURE_DELETE=1" +# Enable AND, NOT and nested parenthesis in FTS3 +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_FTS3_PARENTHESIS=1" + +# Enable the ICU extension +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_ICU" + +# Enables the retrieval of column metadata +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1" + +# Disable directory syncs +SLKCFLAGS="$SLKCFLAGS -DSQLITE_DISABLE_DIRSYNC=1" + +# Add additional logic to the ANALYZE command and to the query planner +# to chose better query plans under certain situations +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_STAT4=1" + +# Enable the sqlite3_unlock_notify() interface and its associated functionality +# https://www.sqlite.org/unlock_notify.html +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_UNLOCK_NOTIFY=1" + +# The secure_delete setting causes deleted content to be overwritten with zeros +# https://www.sqlite.org/pragma.html#pragma_secure_delete +SLKCFLAGS="$SLKCFLAGS -DSQLITE_SECURE_DELETE=1" + +# Enable the "Resumable Bulk Update" extension +# https://www.sqlite.org/rbu.html +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_RBU=1" + +# Enable the DBSTAT Virtual Table +# https://www.sqlite.org/dbstat.html +SLKCFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_DBSTAT_VTAB=1" set -e @@ -74,8 +104,15 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Completely copied from slackware's official sqlite SlackBuild -# except --enable-cross-thread-connections is removed because it does not work. -configure() { +if [ ! -f configure ]; then + # Try regenerating configure: + autoreconf -vif +fi + +# Fix a bug in ./configure that discards all but the last considered option: +sed -i "s|\$(OPT_FEATURE_FLAGS)|\${OPT_FEATURE_FLAGS}|g" ./configure + + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS $(icu-config --cppflags)" \ LDFLAGS="$(icu-config --ldflags)" \ @@ -88,16 +125,14 @@ LDFLAGS="$(icu-config --ldflags)" \ --enable-threadsafe \ --enable-tempstore=yes \ --enable-load-extension \ + --enable-fts3 \ + --enable-fts4 \ + --enable-fts5 \ + --enable-json1 \ + --enable-rtree \ + --enable-session \ --enable-static=no \ - --build=$ARCH-slackware-linux - return $? -} - -if ! configure ; then - # Try regenerating configure: - autoconf - configure || exit 1 -fi + --build=$ARCH-slackware-linux || exit 1 # End of Slackware's SlackBuild copy-pasting # Here we only build $PRGNAM target |