]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
3 months agoAdd default --manpath for Haiku but that path is read-only on my Haiku system, so... haiku-configure-tweaks
stephan [Sat, 5 Apr 2025 11:23:14 +0000 (11:23 +0000)] 
Add default --manpath for Haiku but that path is read-only on my Haiku system, so shelve this.

FossilOrigin-Name: e2d9ba6f76abd52d8817fba841072f6d8974c50c74465371571d4a2c6820f9bc

3 months agoExtend proj-dot-ins-append to provide a way to use it for the special-case emcc.sh...
stephan [Sat, 5 Apr 2025 09:17:13 +0000 (09:17 +0000)] 
Extend proj-dot-ins-append to provide a way to use it for the special-case emcc.sh.in handling.

FossilOrigin-Name: 0e98bbddc7b5e39310a8bf345521d05fdbcc906e279c23aa24cf30489ceeeff8

3 months agoAdd a note that SQLite's copy of proj.tcl can be considered the "canonical copy"...
stephan [Sat, 5 Apr 2025 08:48:19 +0000 (08:48 +0000)] 
Add a note that SQLite's copy of proj.tcl can be considered the "canonical copy" for practical purposes. We now have at least 3 copies of it floating around in other trees.

FossilOrigin-Name: 77d2c8e9ef9627c87c05beaf5615958628bd47c393c030ff6fcca607ba43e71f

3 months agoMove the automatic reconfigure tcl code from sqlite-config.tcl to proj.tcl so that...
stephan [Sat, 5 Apr 2025 07:12:41 +0000 (07:12 +0000)] 
Move the automatic reconfigure tcl code from sqlite-config.tcl to proj.tcl so that the TEA bits can reuse it.

FossilOrigin-Name: 52839db2fcdf37631d13c05165ecb551a89c05bd6836f62d62f8f0b7bbe6c6cd

3 months agoRefactor proj-make-from-dot-in and friends to be more useful and remove some annoying...
stephan [Sat, 5 Apr 2025 02:59:37 +0000 (02:59 +0000)] 
Refactor proj-make-from-dot-in and friends to be more useful and remove some annoying limitations.

FossilOrigin-Name: 501ff84e1263e2b026b0ca5f043bcc912ea935229b625b113b7402955df20dd3

3 months agoRename makefile var libtclsqlite3.SO to libtclsqlite3.DLL for consistency.
stephan [Fri, 4 Apr 2025 23:12:32 +0000 (23:12 +0000)] 
Rename makefile var libtclsqlite3.SO to libtclsqlite3.DLL for consistency.

FossilOrigin-Name: 6fb364c853be84c8d1f20497a2cae6e8f06a1d10ae364e3b011cadeaa3e0244b

3 months agoCorrect a makefile var name type in the configure script, introduced in [4947c1c782].
stephan [Fri, 4 Apr 2025 22:59:32 +0000 (22:59 +0000)] 
Correct a makefile var name type in the configure script, introduced in [4947c1c782].

FossilOrigin-Name: 84d77c5fe84d99d4af695a4da424b7dfc65f2343624e201736b7d673b2a8f179

3 months agoAdd more vars to the tclConfig.sh-to-tcl exporter, for use in the TEA build.
stephan [Fri, 4 Apr 2025 22:14:18 +0000 (22:14 +0000)] 
Add more vars to the tclConfig.sh-to-tcl exporter, for use in the TEA build.

FossilOrigin-Name: b0e1e49c7a4af526143214ce7dee97ef0da5e7baa85728fc667b1f7607693ab7

3 months agoAccount for the Mac-specific -instal_name linker flag, which is apparently needed...
stephan [Fri, 4 Apr 2025 20:50:00 +0000 (20:50 +0000)] 
Account for the Mac-specific -instal_name linker flag, which is apparently needed for linking some third-party code. See [forum:5651662b8875ec0a|forum post 5651662b8875ec0a].

FossilOrigin-Name: 4947c1c78298253a51939adf6cf70ee233075db6d60cd7a183a4162c926e667c

3 months agoAdapt the --all flag to apply to a different set of features, and default to enabled...
stephan [Fri, 4 Apr 2025 16:17:02 +0000 (16:17 +0000)] 
Adapt the --all flag to apply to a different set of features, and default to enabled, for the tcl-extension build.

FossilOrigin-Name: b229c8f65acf41b57afacfde712c3a8040d3bd5139bd5e30d450669658185ddd

3 months agoImprove --all flag handling so that combinations of (--all --disable-FEATURE) and...
stephan [Fri, 4 Apr 2025 15:41:19 +0000 (15:41 +0000)] 
Improve --all flag handling so that combinations of (--all --disable-FEATURE) and (--disable-all --FEATURE) work more intuitively. Add missing handling of the --fts3 flag (it was accepted but ignored before). Add TCL_LIBS to the set of vars exported via tclConfig.sh for use in the tea build.

FossilOrigin-Name: 26ef0ff4bfbb4425baa26fa5c8420f5da0603c38ef651104e566c7dc85bfaa3a

3 months agoThe win32lock and win32longpath tests don't work on Cygwin
jan.nijtmans [Fri, 4 Apr 2025 13:23:03 +0000 (13:23 +0000)] 
The win32lock and win32longpath tests don't work on Cygwin

FossilOrigin-Name: 32ef3f26e7fb34dfdb23617a19bb9baa2e4c3dca564a88850b58a0fbe6446cf8

3 months agoMinor configure-internal cleanups to support the autosetup port of the TEA build.
stephan [Fri, 4 Apr 2025 13:08:43 +0000 (13:08 +0000)] 
Minor configure-internal cleanups to support the autosetup port of the TEA build.

FossilOrigin-Name: 244c2b75c10c68bc0499d60b707a925836a4b9d490813785587522109fc11fe2

3 months agoMinor configure script internal doc edits. No functional changes.
stephan [Fri, 4 Apr 2025 03:26:20 +0000 (03:26 +0000)] 
Minor configure script internal doc edits. No functional changes.

FossilOrigin-Name: 357563bc7c01a744d4038ed3ccc475260b819e98cf90a4270764f79c73d2497e

3 months agoMake the --static-cli-shell flag available in the autoconf build mode.
stephan [Fri, 4 Apr 2025 03:16:47 +0000 (03:16 +0000)] 
Make the --static-cli-shell flag available in the autoconf build mode.

FossilOrigin-Name: b78a474ecba6cae4f0e867a515c214fbfe229808145df1870315328d4e13d462

3 months agoOn HaikuOS, if --prefix is not explicitly provided then default it to /boot/home...
stephan [Fri, 4 Apr 2025 02:40:08 +0000 (02:40 +0000)] 
On HaikuOS, if --prefix is not explicitly provided then default it to /boot/home/config/non-packaged, based on an off-list discussion with HaikuOS user BrickViking.

FossilOrigin-Name: c4a558291175378f76d126b12417c6c1d8e6060c0ec1267a97d3cd11b4804439

3 months agoAdd the --static-cli-shell configure flag to the canonical build, which works like...
stephan [Thu, 3 Apr 2025 13:24:38 +0000 (13:24 +0000)] 
Add the --static-cli-shell configure flag to the canonical build, which works like --static-tclsqlite3 but applies to the CLI shell (statically linking it, which only works if all requisite libs are available in static form). It is not called --static-shell because that flag has a completely different legacy meaning in the autoconf build and this flight might eventually be added to that build, so would collide there.

FossilOrigin-Name: fd2c1638ecc38617f5de0380ad23f233d1159be0712ae2ca4cae5c99e841f1b1

3 months agoAdd the --static-tclsqlite3 configure flag (canonical build only) to build tclsqlite3...
stephan [Thu, 3 Apr 2025 00:46:34 +0000 (00:46 +0000)] 
Add the --static-tclsqlite3 configure flag (canonical build only) to build tclsqlite3 as a static binary. This will only work on systems which have static versions of all requisite libraries.

FossilOrigin-Name: 61836324369e3213841295911aed4f8439a4b2b0f24820c2cf45bb68a0e2cd04

3 months agoMinor cleanups to the --static-tclsqlite3 support. static-tclsqlite3
stephan [Thu, 3 Apr 2025 00:40:33 +0000 (00:40 +0000)] 
Minor cleanups to the --static-tclsqlite3 support.

FossilOrigin-Name: 06f1143870280d335daf4e7027fe8771e34415aa1234fe72c0c450c347b8146c

3 months agoAdd experimental --static-tclsqlite3 configure flag to build tclsqlite3 statically...
stephan [Wed, 2 Apr 2025 23:34:35 +0000 (23:34 +0000)] 
Add experimental --static-tclsqlite3 configure flag to build tclsqlite3 statically, which only works if static libtcl/etc. are available. Currently intended for docker builds via Alpine Linux.

FossilOrigin-Name: bef3c8b1b9fd188ee9f941f93bac4567795fea51cee0830abf1ebc1999e1604f

3 months agoFix harmless compiler warnings in the memstat.c extension. No changes to
drh [Wed, 2 Apr 2025 12:41:16 +0000 (12:41 +0000)] 
Fix harmless compiler warnings in the memstat.c extension.  No changes to
the core.

FossilOrigin-Name: 9e903953ba986df98435da40e94fdb645f6f72279552cba63ef50cec1fe3b486

3 months agoRemove some stray debug output from proj.tcl.
stephan [Wed, 2 Apr 2025 11:21:09 +0000 (11:21 +0000)] 
Remove some stray debug output from proj.tcl.

FossilOrigin-Name: 5fc7150a2045a19966570b86843f180c2f8ff1f4688616ac161f071de0e765ec

3 months agoIncrease the size of a variable in FTS3 to help static analyzers
drh [Wed, 2 Apr 2025 10:42:47 +0000 (10:42 +0000)] 
Increase the size of a variable in FTS3 to help static analyzers
see that there are no integer overflow problems.

FossilOrigin-Name: a921a4682fba23e1e223c2e3ecebd22ec59321552bcc563c29ce501bfe70fa4e

3 months agoThe json-blob-overwrite optimization seeks to prevent unnecessary I/O and
drh [Tue, 1 Apr 2025 16:32:31 +0000 (16:32 +0000)] 
The json-blob-overwrite optimization seeks to prevent unnecessary I/O and
data movement when making small changes to the middle of a large JSONB.

FossilOrigin-Name: 4a3d7b04216fff605629902b7de08fd45eb0a89e7e1b0bb7c5ba82cddbc030cc

3 months agoFix a typo accidently added to the prior check-in. json-opt
drh [Tue, 1 Apr 2025 16:26:51 +0000 (16:26 +0000)] 
Fix a typo accidently added to the prior check-in.

FossilOrigin-Name: fb2f283038f9329b6f791d92d6f943269f24f1a0efd5859165b63f517ed52ddb

3 months agoThis is an experimental optimization that attempts to keep a JSONB value
drh [Tue, 1 Apr 2025 15:17:01 +0000 (15:17 +0000)] 
This is an experimental optimization that attempts to keep a JSONB value
the same size (same number of bytes) after doing a replace of an elements
with a slightly smaller element, by denormalizing the size field.  This
can perhaps avoid unnecessary page updates and memmove() operations when
making small changes in the middle of a large JSONB value.

FossilOrigin-Name: b5de9584b7f49586c5387d8a74af5e41dba50f1817a54257bf9da00deb695f72

3 months agoFix a harmless typo in a code comment.
drh [Mon, 31 Mar 2025 23:18:06 +0000 (23:18 +0000)] 
Fix a harmless typo in a code comment.

FossilOrigin-Name: dd251377bd1a8e95a4a0179c50595f290b08ea93659f4906f88f5a9dff534aa1

3 months agoEnsure that the compilation of extensions get the same CFLAGS as the core lib. Move...
stephan [Mon, 31 Mar 2025 13:08:29 +0000 (13:08 +0000)] 
Ensure that the compilation of extensions get the same CFLAGS as the core lib. Move the feature flags enabled by --dev out of TARGET_DEBUG and into OPT_FEATURE_FLAGS (for consistency). Rename the make-internal gcov-related flags to be more descriptive. At the end of the configure script, if SQLITE_DEBUG is active then emit a note reminding the builder that performance will suffer.

FossilOrigin-Name: e64c6a3856b839e4e8c0a1cb1713b0d2f1d3cb9b915dd215b0d3cb229502d539

3 months agoEnsure that extension sources also inherit the debugging-related flags from --debug...
stephan [Mon, 31 Mar 2025 10:54:09 +0000 (10:54 +0000)] 
Ensure that extension sources also inherit the debugging-related flags from --debug or --dev.

FossilOrigin-Name: 3e96b772a46638bc25e036de053d620ded3350871ee10e06fd6fe51429934b0d

3 months agoCorrect the ordering of the configure script's handling of the --dev and --debug...
stephan [Mon, 31 Mar 2025 10:29:06 +0000 (10:29 +0000)] 
Correct the ordering of the configure script's handling of the --dev and --debug flags so that --dev's forcing of --debug get picked up early enough.

FossilOrigin-Name: e48189ed33fa9d02b23c18255c7b4c6cab2a6d4b62f7c1edbb0a58ab329735fc

3 months agoThe --dev option on ./configure implies --debug and adds -DSQLITE_DEBUG.
drh [Mon, 31 Mar 2025 09:53:20 +0000 (09:53 +0000)] 
The --dev option on ./configure implies --debug and adds -DSQLITE_DEBUG.

FossilOrigin-Name: 67dbd9ff0f1e69e429cf3afaf19b84e8e95fc75035ac90cd0ae78d0d002980f8

3 months agoMinor shell-internal doc addition. No functional changes.
stephan [Sat, 29 Mar 2025 11:50:25 +0000 (11:50 +0000)] 
Minor shell-internal doc addition. No functional changes.

FossilOrigin-Name: 01b99c8a2819469568f369479c097cc8e3ed1f2478958460755b283dc7d11706

3 months agoCorrect two tests in shell1.test which were broken by the addition of new output...
stephan [Fri, 28 Mar 2025 16:31:54 +0000 (16:31 +0000)] 
Correct two tests in shell1.test which were broken by the addition of new output in [0f11087b8475].

FossilOrigin-Name: 909dd0a02a967baef46c3efdca42a0ab4e15003e34ce7e9af82fce5f17213d7b

3 months agoCLI shell: make (.output off) an alias for (.output /dev/null) or (.output nul),...
stephan [Fri, 28 Mar 2025 15:36:49 +0000 (15:36 +0000)] 
CLI shell: make (.output off) an alias for (.output /dev/null) or (.output nul), depending on the platform. Discussed in [forum:633979ce307f1cc6|forum post 633979ce307f1cc6].

FossilOrigin-Name: 0f11087b84753576425823e10a7eeff45af02f3c0135dee72dec5019c8127500

3 months agoConfigure/make doc tweaks. No functional changes.
stephan [Fri, 28 Mar 2025 14:32:01 +0000 (14:32 +0000)] 
Configure/make doc tweaks. No functional changes.

FossilOrigin-Name: dbcc03bd7a727f4643f18a814bb9fd9071c0355f98dd064286240f2af361ee7f

3 months agoMerge cygwin and tclsqlite fixes into trunk.
drh [Thu, 27 Mar 2025 23:29:25 +0000 (23:29 +0000)] 
Merge cygwin and tclsqlite fixes into trunk.

FossilOrigin-Name: 121f4d97f9a855131859d342bc2ade5f8c34ba7732029ae156d02cec7cb6dd85

3 months agoAdd an explicit db close to fix a file-is-opened failure in session1.test in cygwin.
stephan [Thu, 27 Mar 2025 18:42:51 +0000 (18:42 +0000)] 
Add an explicit db close to fix a file-is-opened failure in session1.test in cygwin.

FossilOrigin-Name: c6e4e1cf2b70d2e603ea3faabd9cb5fbd9f5497672574283ace8c62984dfbb97

3 months agoRearrange #includes in FTS3 to avoid a harmless compiler warning.
drh [Thu, 27 Mar 2025 18:22:11 +0000 (18:22 +0000)] 
Rearrange #includes in FTS3 to avoid a harmless compiler warning.

FossilOrigin-Name: c5206cee83a4f1e59bfceda35cdfa528f9b4611eaf306da863ae83e9f93cdeb7

3 months agoFix for forum-post [/forum/forumpost/b5fde3596c|b5fde3596c]. Also fix encoding issue... tclsqlite-db-copy-fix
jan.nijtmans [Thu, 27 Mar 2025 17:30:49 +0000 (17:30 +0000)] 
Fix for forum-post [/forum/forumpost/b5fde3596c|b5fde3596c]. Also fix encoding issue for non-ASCII characters.
Also includes a fix from Stephan Beal, about a missing <stdint.h> include.

FossilOrigin-Name: e60198001e12f85a5d6504ce72226dfceb8666fe5ec649237fa23ae20e8aa32d

3 months agoshell1.test: == => eq
jan.nijtmans [Thu, 27 Mar 2025 17:25:38 +0000 (17:25 +0000)] 
shell1.test: == => eq

FossilOrigin-Name: 99fdd19193056259d84768f46519328c300976b102f1b1e0b815720df01b28d0

3 months agoMore ==/!= => eq/ne fixes
jan.nijtmans [Thu, 27 Mar 2025 14:37:07 +0000 (14:37 +0000)] 
More ==/!= => eq/ne fixes

FossilOrigin-Name: 2aa6c4fa6c9c47c7a8548ac3493bfb9ed4e4dec1b6dc4f3599a0373086b3e917

3 months agoIn Tcl, always use eq/ne for comparing strings, not ==/!=
jan.nijtmans [Thu, 27 Mar 2025 14:32:57 +0000 (14:32 +0000)] 
In Tcl, always use eq/ne for comparing strings, not ==/!=

FossilOrigin-Name: f96a5346e3e890adfdc94a682688c2c15893e50fbaf2a26e5ef39cda8b331ee4

3 months agoMerge trunk. Some additional test-fixes for Cygwin
jan.nijtmans [Thu, 27 Mar 2025 14:13:12 +0000 (14:13 +0000)] 
Merge trunk. Some additional test-fixes for Cygwin

FossilOrigin-Name: b36adadfa202fb8951149561471c3e01085d31e1837c99806f308f234cd24a8e

3 months agoFix an off-by-one bug in the ".dbtotxt" command from the shell that results
drh [Thu, 27 Mar 2025 10:59:18 +0000 (10:59 +0000)] 
Fix an off-by-one bug in the ".dbtotxt" command from the shell that results
in incorrect output.

FossilOrigin-Name: 2345094e879c5538bfea005785ce0848e6d565a49bcb48b323c258d00ccbe9b8

3 months agoReduce the delay caused by anti-virus retries in Windows when attempting to
drh [Wed, 26 Mar 2025 22:23:22 +0000 (22:23 +0000)] 
Reduce the delay caused by anti-virus retries in Windows when attempting to
open a database file with insufficient permission.

FossilOrigin-Name: d25c8a6222d4e3f20c137b1490572ad491d9c404ff12947d5867c3e00fcb615c

3 months agoOn winOpen(), redo the read-only test on every retry attempt. Just winopen-retry
drh [Wed, 26 Mar 2025 17:05:29 +0000 (17:05 +0000)] 
On winOpen(), redo the read-only test on every retry attempt.  Just
don't retry the winAccess() call.

FossilOrigin-Name: ccdd67ad9a508530ccfcec582410768c24bca4eb8b05939577fb99a50dd44b15

3 months agoFurther attempted improvements at fast-fail for an inaccessible
drh [Wed, 26 Mar 2025 15:51:05 +0000 (15:51 +0000)] 
Further attempted improvements at fast-fail for an inaccessible
database file.

FossilOrigin-Name: cdeb21a312d4f1a9e3009a0baf0af33857c172f7bc22bca047dcd46a03e9c964

3 months agoAttempt to reduce the amount of retry time when trying to open
drh [Wed, 26 Mar 2025 14:45:15 +0000 (14:45 +0000)] 
Attempt to reduce the amount of retry time when trying to open
an inaccessible database file on Windows.  See
[forum:/forumpost/e7991420f54dca50|forum thread e7991420f5]

FossilOrigin-Name: 986e45912cde7cb8e6db8ba7a9364aef7187a23032be64ef6cd573163f56676d

3 months agoMerge trunk into cygwin-fixes branch. Add .fossil-settings/binary-glob to squelch...
stephan [Wed, 26 Mar 2025 00:02:15 +0000 (00:02 +0000)] 
Merge trunk into cygwin-fixes branch. Add .fossil-settings/binary-glob to squelch warnings about *.db files on Cygwin.

FossilOrigin-Name: a8328b921c5504eceacade417e16e713999eff63978caf3418fd79501590b1cb

3 months agoConfigure script internal cleanups. Factor out the superfluous proj-lshift_ and use...
stephan [Tue, 25 Mar 2025 01:32:16 +0000 (01:32 +0000)] 
Configure script internal cleanups. Factor out the superfluous proj-lshift_ and use lassign instead. Add -ro flag to proj-file-write.

FossilOrigin-Name: 1f98fc07fdf06d699ffbf1521b0b5e937a582017e4325bd994b488e06becbecc

3 months agoClarify and reduce redundancy in an assert() in walChecksumBytes().
drh [Mon, 24 Mar 2025 23:08:40 +0000 (23:08 +0000)] 
Clarify and reduce redundancy in an assert() in walChecksumBytes().

FossilOrigin-Name: 3c53abf5e6df446d569040042363265737aa10fc8aaa20b31c587100c557c5e7

3 months agoTest that the sqlite3changeset_apply() function is properly appling indirect changes.
dan [Mon, 24 Mar 2025 19:58:13 +0000 (19:58 +0000)] 
Test that the sqlite3changeset_apply() function is properly appling indirect changes.

FossilOrigin-Name: 1dadea3a79c3edd110b0b32b07287744300958fed31f2da11901a42b16f86669

3 months agoAdd test cases to session1.test.
dan [Mon, 24 Mar 2025 11:13:18 +0000 (11:13 +0000)] 
Add test cases to session1.test.

FossilOrigin-Name: dda9d7cf319e74de7703bda1eb77e3e7aa7459d6fa1508cc1d62cdfc7985c368

3 months agoCorrect a --force flag which should be -force in a TCL file delete call. Some TCL...
stephan [Sun, 23 Mar 2025 23:04:48 +0000 (23:04 +0000)] 
Correct a --force flag which should be -force in a TCL file delete call. Some TCL versions (like the one on my system) accepts either but others don't. Problem reported in [forum:c02224d862|forum post c02224d862].

FossilOrigin-Name: 172f4e4772d90f4737eddb43d97a566a6e3b92702c61e23391e43134737cc838

3 months agoRemove tool/tclConfigShToAutoDef.sh, as that functionality was moved into autosetup...
stephan [Sun, 23 Mar 2025 22:49:00 +0000 (22:49 +0000)] 
Remove tool/tclConfigShToAutoDef.sh, as that functionality was moved into autosetup/proj.tcl so that it can be reused in, e.g., autoconf/tea.

FossilOrigin-Name: c9c5a15d4d8141aae68d6643869f74879ae053cb86538b805058099af2cec16b

3 months agoInternal configure refactoring to support an ongoing conversion of ./autoconf/tea...
stephan [Sun, 23 Mar 2025 21:38:28 +0000 (21:38 +0000)] 
Internal configure refactoring to support an ongoing conversion of ./autoconf/tea to autosetup.

FossilOrigin-Name: e1d483e342670092c3579f2f0975e49a0c74516ae34103a63b4cde156bf5e92b

3 months agoFix the generate_series() enhancement from check-in [d50b784807333c54]
drh [Sat, 22 Mar 2025 22:55:33 +0000 (22:55 +0000)] 
Fix the generate_series() enhancement from check-in [d50b784807333c54]
so that it works even if the number that "value" is being compared against
is a non-integer floating point number.  Bug reported by
[forum:/forumpost/0d5d63257e3ff4f6|forum post 0d5d63257].

FossilOrigin-Name: c113e31b818d16770bec1edc980f6833dfb27c4d74178e66a778fbb5671c3a13

3 months agoReplace use of autosetup/lib/*.auto for sqlite-custom-... features to avoid the possi...
stephan [Sat, 22 Mar 2025 19:07:54 +0000 (19:07 +0000)] 
Replace use of autosetup/lib/*.auto for sqlite-custom-... features to avoid the possibility of multiple files being loaded (in an unpredictable order) for that purpose. Instead look for autosetup/sqlite-custom.tcl and source it if it exists. The intent is that sqlite-custom.tcl only ever be added in vendor-specific branches and never in the trunk.

FossilOrigin-Name: f3c0071284fbe1c0a8c3fe73792a79f9df6be983e5c9bd1a7e2fe71ba7b2d400

3 months agoIn the post-configure validation, ensure than no more than one autosetup/lib/*.auto...
stephan [Sat, 22 Mar 2025 18:41:48 +0000 (18:41 +0000)] 
In the post-configure validation, ensure than no more than one autosetup/lib/*.auto file is found, for reasons explained in the validation's error message.

FossilOrigin-Name: 50bbd69a684988a1df4c9c7616b76ae62bc4eb755cde18616de58aa0880fd4a7

3 months agoSlight corrections to the new docs in autosetup/README.md.
stephan [Sat, 22 Mar 2025 17:56:20 +0000 (17:56 +0000)] 
Slight corrections to the new docs in autosetup/README.md.

FossilOrigin-Name: 55029e41e03d9b61b8a53f86d7f69afe71459846f3a1a1723f6934e0d37ca77f

3 months agoDocument the new configuration customization approach and extend it to enable sqlite...
stephan [Sat, 22 Mar 2025 17:28:29 +0000 (17:28 +0000)] 
Document the new configuration customization approach and extend it to enable sqlite-custom-flags to return an empty string to denote that it does not require any new flags (it may still customize flag default values in such cases).

FossilOrigin-Name: b0c7800b0106e90cb7bf7e5d9f48d21f9b058eff6e42339a1621d713ab2dd03c

3 months agoTeach mkautoconfamal.sh to avoid copying autosetup/local.tcl and autosetup/*.auto...
stephan [Sat, 22 Mar 2025 17:00:32 +0000 (17:00 +0000)] 
Teach mkautoconfamal.sh to avoid copying autosetup/local.tcl and autosetup/*.auto except for autosetup/lib/CURRENT-BRANCH-NAME.auto (if any), the intent being to use lib/CURRENT-BRANCH-NAME.auto for branch-specific configuration customizations.

FossilOrigin-Name: dfe24f13c446de5fdd736ed52fec0fca4637b4151ba008de7a598a2fc9398816

3 months agoAdd a mechanism to the configure script to allow certain client-specific builds to...
stephan [Sat, 22 Mar 2025 16:14:34 +0000 (16:14 +0000)] 
Add a mechanism to the configure script to allow certain client-specific builds to extend or override the configure options without having to edit sqlite-config.tcl, the goal being to reduce merge conflicts in those builds when updating sqlite-config.tcl from the canonical copy.

FossilOrigin-Name: bafab4ee5545c6cf6eafc5e352a7f25dfcbc7e58d4cc9064d05658c39de2af0d

3 months agoConfigure script internal cleanups and re-orgs. No functional changes.
stephan [Sat, 22 Mar 2025 12:43:22 +0000 (12:43 +0000)] 
Configure script internal cleanups and re-orgs. No functional changes.

FossilOrigin-Name: f619e40fb05d3e09dca2ad9d9bbf38c66b4b93dd3d4e7c2071db28e671ee6a9c

3 months agoIn the autoconf bundle, do not strip binaries during installation, for parity with...
stephan [Sat, 22 Mar 2025 12:15:13 +0000 (12:15 +0000)] 
In the autoconf bundle, do not strip binaries during installation, for parity with the canonical build and the legacy build. Discussed in [forum:9a67df63eda9925c|forum post 9a67df63eda9925c]. A potential TODO here is to add a configure flag which either enables or disables stripping.

FossilOrigin-Name: 6d2e57bd34c562a9cd618c178c3f92b869bf5420907057b8d2438b16a7f91d46

3 months agoSlightly simplify proj-current-proc-name.
stephan [Fri, 21 Mar 2025 22:14:30 +0000 (22:14 +0000)] 
Slightly simplify proj-current-proc-name.

FossilOrigin-Name: 6a0ca9f2360d29272d7be97fe9f516c3ac88864f3e729ba65da1ef6211908775

3 months agoFix a multi-arg expr call in proj-current-proc-name (must be single-arg for portability).
stephan [Fri, 21 Mar 2025 21:13:44 +0000 (21:13 +0000)] 
Fix a multi-arg expr call in proj-current-proc-name (must be single-arg for portability).

FossilOrigin-Name: 914768f3f5d63a891e1cd578afc676960376fc28ee0fa452fcd32cec0ea5cdaf

3 months agoTeach the CLI that VT100-escape codes that do things like change font
drh [Fri, 21 Mar 2025 18:15:13 +0000 (18:15 +0000)] 
Teach the CLI that VT100-escape codes that do things like change font
colors have zero-width for the purpose of laying out the columns of a
table.

FossilOrigin-Name: 2d0a8a6c38981552748ff5fc2eeba86590e0f116abac260a7fc9318de0a0dbda

3 months agoFlesh out the new proc-debug and its infrastructure a bit.
stephan [Fri, 21 Mar 2025 16:49:32 +0000 (16:49 +0000)] 
Flesh out the new proc-debug and its infrastructure a bit.

FossilOrigin-Name: ba7f1ff0d7d1d3fb79fc298d99fd27b65f639fb1691a1a9cdc9c006b8ff41212

3 months agoProxy configure's msg-debug with proc-debug, which works the same except that it...
stephan [Fri, 21 Mar 2025 16:06:16 +0000 (16:06 +0000)] 
Proxy configure's msg-debug with proc-debug, which works the same except that it prepends the name of the calling proc to the debug message. No functional changes.

FossilOrigin-Name: f0298c773d3490ad3a5b53d2ceeff1bd90e1a7bb5deeba2d24f681ec1bc10510

3 months agoTeach the configure script to be able find a default installation of libreadline...
stephan [Thu, 20 Mar 2025 13:41:08 +0000 (13:41 +0000)] 
Teach the configure script to be able find a default installation of libreadline on Haiku OS.

FossilOrigin-Name: 260e9884118172ef76457a34042ace301f20abab4ced172f6b6135010c446a68

3 months agoFix a problem in the sqlite_dbpage() table-valued function when it is
drh [Thu, 20 Mar 2025 11:47:39 +0000 (11:47 +0000)] 
Fix a problem in the sqlite_dbpage() table-valued function when it is
trying to truncate a file in locking-mode=EXCLUSIVE and the file was
obtained via sqlite3_deserialize().  Problem found by dbsqlfuzz.

FossilOrigin-Name: 346cf9794c6ce82ac32f7ccabc67240309306626709951593720abd198b103e3

3 months agoCorrect part of [505d9e49f7] and [7126a51ed8] to get sessioninvert tests working...
stephan [Wed, 19 Mar 2025 15:21:21 +0000 (15:21 +0000)] 
Correct part of [505d9e49f7] and [7126a51ed8] to get sessioninvert tests working on cygwin.

FossilOrigin-Name: 83c34decbe336c76062e6b1bfe4c2e8f786841a4b6efa001747e786e872c8c71

3 months agoCorrect part of [04075517] which changed the implicit return value of a test function.
stephan [Wed, 19 Mar 2025 14:57:32 +0000 (14:57 +0000)] 
Correct part of [04075517] which changed the implicit return value of a test function.

FossilOrigin-Name: 505d9e49f7af619eda9e46e7ed19c4446c64628233528e1ab3f70264e1640ace

3 months agoAdd some explicit db close calls to work around a process-reaping timing problem...
stephan [Wed, 19 Mar 2025 14:52:39 +0000 (14:52 +0000)] 
Add some explicit db close calls to work around a process-reaping timing problem on cygwin builds.

FossilOrigin-Name: 7126a51ed8a1b90b7f4cf3f1c13f7a1d560ff7a3ae73897ce8d9194df40356ed

3 months agoTest script patches from Jan Nijtmans: always use -DUSE_TCL_STUBS in buildtclext...
stephan [Wed, 19 Mar 2025 13:49:34 +0000 (13:49 +0000)] 
Test script patches from Jan Nijtmans: always use -DUSE_TCL_STUBS in buildtclext.tcl and improvements in how TRG is populated in testrunner.tcl.

FossilOrigin-Name: aa192203aa1aa188866fe00a5d40dc7b7c72b4f38b06da8708ed0a6c8b8638a6

3 months agoMerge trunk into the cygwin-fixes branch for the shell test improvements on Windows...
stephan [Wed, 19 Mar 2025 13:13:12 +0000 (13:13 +0000)] 
Merge trunk into the cygwin-fixes branch for the shell test improvements on Windows. An MSC build's make test now has zero failures.

FossilOrigin-Name: 2de4efe10c2591192edca3833fc9e2fae10ebc925fb556f5b53ad483b491b5b3

3 months agoAvoid running test cases involving ANSI control characters or Unicode on Windows...
stephan [Wed, 19 Mar 2025 11:53:46 +0000 (11:53 +0000)] 
Avoid running test cases involving ANSI control characters or Unicode on Windows in a slave interpreter, as that combination does not work.

FossilOrigin-Name: c7fd71c77f1716c9c85d0f41a07ebd7c96f2e9d5e4c1392fefa1fb53f3cbb746

3 months agoMerge trunk into the cygwin-fixes branch.
stephan [Wed, 19 Mar 2025 10:14:46 +0000 (10:14 +0000)] 
Merge trunk into the cygwin-fixes branch.

FossilOrigin-Name: 34eadd374b3c0a8c9e1f5f4a1c60fda8f16b1c56213b8c4047f96390c676b695

3 months agoChange the generate_series() table-valued function so that its rowid is just an
drh [Tue, 18 Mar 2025 20:15:16 +0000 (20:15 +0000)] 
Change the generate_series() table-valued function so that its rowid is just an
alias for its value.  This allows it to be used as the RHS operand of a
RIGHT JOIN.  This fixes the issue raised by
[forum:/forumpost/1e17219c88|forum post 1e17219c88].

FossilOrigin-Name: 77db4d85e70fbf358ae2321c2601966666bdb4d971d7c113ce30a3e541458ee8

3 months agoFix a problem that could occur when the RHS of an IN operator was a compound SELECT...
dan [Tue, 18 Mar 2025 19:21:04 +0000 (19:21 +0000)] 
Fix a problem that could occur when the RHS of an IN operator was a compound SELECT featuring an ORDER BY on a subquery that was flattened into one of the component SELECTs introduced by [baa83b460c677c21]. Forum post [/forumpost/1e17219c88].

FossilOrigin-Name: 7101ccd5331e36fd1a539f540e79ce0ce159be76ec422e1d9436eec6f3908c6e

3 months agoInternal doc touchups in ext/wasm/mkwasmbuilds.c. No functional changes.
stephan [Tue, 18 Mar 2025 13:52:53 +0000 (13:52 +0000)] 
Internal doc touchups in ext/wasm/mkwasmbuilds.c. No functional changes.

FossilOrigin-Name: 47d34260e74912eeae704bff7c4314b893af86ee66dd96a1bc6f450d3e290702

3 months agoVery slight simplification of the run-fuzzcheck rules.
stephan [Tue, 18 Mar 2025 12:31:09 +0000 (12:31 +0000)] 
Very slight simplification of the run-fuzzcheck rules.

FossilOrigin-Name: c858a39fad30c46aec6a1f81b2d4e56c18ecf7f5cb6d2fe4a32c4b3bb1a6ed64

3 months agoGeneral updates to autosetup/README.md.
stephan [Tue, 18 Mar 2025 11:36:15 +0000 (11:36 +0000)] 
General updates to autosetup/README.md.

FossilOrigin-Name: be8ad5cf579662c54b7e7bc492d8ca03b1f9032c5dad9a6b20590ca1ac00840b

3 months agoUpdate the docs in tool/mkccode.tcl to reflect that it's more generic than it was...
stephan [Tue, 18 Mar 2025 10:28:56 +0000 (10:28 +0000)] 
Update the docs in tool/mkccode.tcl to reflect that it's more generic than it was when the docs were written. Change the shebang line to use /bin/env tclsh instead of a hard-coded tclsh path.

FossilOrigin-Name: 9300f7f42dfd143f77fd51aa9e080099540854d36b6997ab1a16be7d77f78d8e

3 months agoPrevent integer overflow when parsing NEAR queries in FTS5.
drh [Mon, 17 Mar 2025 15:13:47 +0000 (15:13 +0000)] 
Prevent integer overflow when parsing NEAR queries in FTS5.

FossilOrigin-Name: 1a5283d7dab210badb8a33eac29f44dc8c1c210ffb5ef84f43e348170aa406a6

3 months agoAdd support for the --with-wasi-sdk configure flag to the autoconf build.
stephan [Mon, 17 Mar 2025 14:59:55 +0000 (14:59 +0000)] 
Add support for the --with-wasi-sdk configure flag to the autoconf build.

FossilOrigin-Name: 44880fa3f0748604ef50b942c28390e041138759efea1d076dfcaa1da48970cb

3 months agoFix a long-standing filename digest computation bug in the OPFS SAHPool VFS which...
stephan [Sun, 16 Mar 2025 14:05:42 +0000 (14:05 +0000)] 
Fix a long-standing filename digest computation bug in the OPFS SAHPool VFS which caused all VFS-stored filenames to have a digest value of 0. See [/forumpost/042d53c928382021] and for full details.

FossilOrigin-Name: 493cbe74504e8eb1ca8f2edf49fdab6bebc7fe36ffab06932a4b8c5a4eea86cd

3 months agoAdd --asan-fsanitize=... configure flag to the canonical build to optionally set...
stephan [Sun, 16 Mar 2025 13:09:21 +0000 (13:09 +0000)] 
Add --asan-fsanitize=... configure flag to the canonical build to optionally set -fsantize flags for the fuzzcheck-asan tool. Teach proj-check-fsanitiz to fail for flags which the compiler emits any warning for, for reasons described in its comments.

FossilOrigin-Name: 013730e9b92af39cb7fd2871df9b4bc81b8990f918892bd79370704421672da0

3 months agoConfigure-internal doc cleanups. No functional changes.
stephan [Sun, 16 Mar 2025 12:27:21 +0000 (12:27 +0000)] 
Configure-internal doc cleanups. No functional changes.

FossilOrigin-Name: be3a2e631100b711996b9524a54fc604966513a62d83fc916270a6226da7adab

3 months agoConsolidate some much-duplicated run-fuzzcheck recipe code in main.mk.
stephan [Sun, 16 Mar 2025 11:24:32 +0000 (11:24 +0000)] 
Consolidate some much-duplicated run-fuzzcheck recipe code in main.mk.

FossilOrigin-Name: c0d9b9fad3a2f23941927f1be2abded3bde2f2b04f7a5f3cc0a54a978020ebaa

3 months agoRework the run-fuzzcheck makefile target so that it better exploit parallelism.
drh [Sun, 16 Mar 2025 00:13:29 +0000 (00:13 +0000)] 
Rework the run-fuzzcheck makefile target so that it better exploit parallelism.
Test case "<tt>make -j16 run-fuzzcheck FUZZDB=20250222.db</tt>"
went from 596 seconds down to 107 seconds.

FossilOrigin-Name: 18bda13e197e4b4ec7464b3e70012f71edc05f73d8b14bb48bad452f81c7e185

3 months agoEnhance the fuzzcheck testing tool with new command-line options:
drh [Sat, 15 Mar 2025 23:42:32 +0000 (23:42 +0000)] 
Enhance the fuzzcheck testing tool with new command-line options:
--brief, and --slice M N.

FossilOrigin-Name: e64132723db0c4f2b9a58932a93beb1671e42006eebc1aeaa8f320e717043051

3 months agoMake use of the C99 flexible array feature, when available, so that
drh [Sat, 15 Mar 2025 19:55:19 +0000 (19:55 +0000)] 
Make use of the C99 flexible array feature, when available, so that
the -fsanitize=bounds-strict option can be used, when available.
[forum:/forumpost/311dbf9a1cadfae6|Forum thread 311dbf9a1c].

FossilOrigin-Name: d4307a0d43f42e96ec06ad2c1d8d0f5c8ecae759bae8231b1998633089809f49

3 months agoWork around compilers that do not understand flexible arrays, in the flex-array
drh [Sat, 15 Mar 2025 19:00:46 +0000 (19:00 +0000)] 
Work around compilers that do not understand flexible arrays, in the
recovery extension and in the fuzzcheck test module.

FossilOrigin-Name: f101c46cf83e532fd33034abccba496bf395ef10c161af003211614d6581d5eb

3 months agoFix alignment problems on Linux with -m32 and on Mac PPC.
drh [Sat, 15 Mar 2025 18:26:27 +0000 (18:26 +0000)] 
Fix alignment problems on Linux with -m32 and on Mac PPC.

FossilOrigin-Name: 8a91aeca60548d5cd19add128cf65b9c3815c9103b1ef8ff6bc02711b6d709de

3 months agoSpeed up parsing of very long fts3 query expressions.
dan [Sat, 15 Mar 2025 16:58:39 +0000 (16:58 +0000)] 
Speed up parsing of very long fts3 query expressions.

FossilOrigin-Name: 2dd5b6895a3b23c2b9cbf0c1c1e802faf8f2b41ef60819eea25d609755266e64

3 months agoConfigure-internal build cleanups (no functional changes). Add EXTRA_SRC to the deps...
stephan [Sat, 15 Mar 2025 15:19:42 +0000 (15:19 +0000)] 
Configure-internal build cleanups (no functional changes). Add EXTRA_SRC to the deps of sqlite3.c.

FossilOrigin-Name: 8afb8bbce8654d6f76207fb136e79dc52b6724a71eae82a4c098690a68eb75a1

3 months ago-fsanitize is a CFLAG, not LDFLAG, so rename some vars accordingly and simplify the...
stephan [Sat, 15 Mar 2025 13:50:07 +0000 (13:50 +0000)] 
-fsanitize is a CFLAG, not LDFLAG, so rename some vars accordingly and simplify the feature check to not run the linker.

FossilOrigin-Name: 44f2c64ec16f4720dc538be30410863c4138ea4ce41c94521bd7980535261735

3 months agoFor fuzzcheck-asan, dynamically determine the list of -fsanitize flags to use based...
stephan [Sat, 15 Mar 2025 13:36:01 +0000 (13:36 +0000)] 
For fuzzcheck-asan, dynamically determine the list of -fsanitize flags to use based on configure-time feature tests.

FossilOrigin-Name: b70f9cc81516e57e73960bed4b4d2abdcf3dab0ad4a400ca1aed49365c25231e