]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
11 months agoHave --enable-editline fail rather than emit a warning which would easily be overlook...
stephan [Mon, 28 Oct 2024 02:11:51 +0000 (02:11 +0000)] 
Have --enable-editline fail rather than emit a warning which would easily be overlooked by automated builds. The error message explains a potential workaround for activating libedit.

FossilOrigin-Name: 2bd1b9557a1619adcaf5aa6dc5d5d0972e8416dafc9f36621b409192be95223d

11 months agoDocs and small code cleanups in hwaci-common.tcl.
stephan [Mon, 28 Oct 2024 01:13:00 +0000 (01:13 +0000)] 
Docs and small code cleanups in hwaci-common.tcl.

FossilOrigin-Name: 1353d4b600ae2849d2591b3fba0cad71289ee996334222a6886dc01cd4be5c07

11 months agoAdd --with-icu-config flag to use the icu-config binary to find the required ldflags...
stephan [Mon, 28 Oct 2024 00:56:31 +0000 (00:56 +0000)] 
Add --with-icu-config flag to use the icu-config binary to find the required ldflags for linking the ICU libraries.

FossilOrigin-Name: 64f33bb125102b3fec3901f4b56098429509ec0b6ce6e6b88af2393c344ac864

11 months agoExpand the 'make help' target and clean up some overly-noisy configure output.
stephan [Sun, 27 Oct 2024 22:34:07 +0000 (22:34 +0000)] 
Expand the 'make help' target and clean up some overly-noisy configure output.

FossilOrigin-Name: c895766ed31f55c02f05d357333e9cf45e82ec5af4d8b0491270e4fda7a57d42

11 months agoRe-order the auto.def flags logical groups. Add some discrete bold formatting to...
stephan [Sun, 27 Oct 2024 22:18:33 +0000 (22:18 +0000)] 
Re-order the auto.def flags logical groups. Add some discrete bold formatting to select configure output. Remove some dead code. Account for behavior misunderstanding of user-notice. Add the start of a 'make help' target. General cosmetic cleanups.

FossilOrigin-Name: ab95ee33dfe56bd3b223f978626e6014414881c30443a2b88c782de724c39ae1

11 months agoGeneric cleanups in auto.def and hwaci-common.tcl.
stephan [Sun, 27 Oct 2024 20:46:09 +0000 (20:46 +0000)] 
Generic cleanups in auto.def and hwaci-common.tcl.

FossilOrigin-Name: 428e542452bac99d48950f1f62b65b4e235636540b946151747e2d5b59dbfd99

11 months agoDoc additions and minor cleanups in the --flag alias handling.
stephan [Sun, 27 Oct 2024 20:14:49 +0000 (20:14 +0000)] 
Doc additions and minor cleanups in the --flag alias handling.

FossilOrigin-Name: 37a1da038195365cd7eb866b3aa749ad8060a656ac38063520fdb70cf0a0e5f1

11 months agoRename --with-readline-lib/inc to --with-readline-ldflags/cflags, for clarity, but...
stephan [Sun, 27 Oct 2024 20:04:23 +0000 (20:04 +0000)] 
Rename --with-readline-lib/inc to --with-readline-ldflags/cflags, for clarity, but retain the older names as aliases using autosetup's "hidden alias" feature. Rename the newly-added --with-icu-lib to --with-icu-ldflags (with no backwards compatibility).

FossilOrigin-Name: e50a03f9f2a40a5e65f874ffff234a7b397ce4ebdc7b360d4e6ade7575577c38

11 months agoWhen ICU is enabled, ensure that the CLI shell build enables its feature flag and...
stephan [Sun, 27 Oct 2024 19:26:54 +0000 (19:26 +0000)] 
When ICU is enabled, ensure that the CLI shell build enables its feature flag and include LDFLAGS_ICU in sqlite3.pc.

FossilOrigin-Name: abec913c00564ee5453075f45b1a6680e92ee1b1e61e3b19e4cf74e46785d3bf

11 months agoWhen readline is enabled, attempt to determine whether the completion API is compatib...
stephan [Sun, 27 Oct 2024 18:46:11 +0000 (18:46 +0000)] 
When readline is enabled, attempt to determine whether the completion API is compatible and, if it's not, disable it in the shell app.

FossilOrigin-Name: 4564dbe4ac0040803b5d139c9fff22a60a45b4769d80ad7c824456cc6b9f1722

11 months agoFix build errors in fts5_tcl.c on Mac.
drh [Sun, 27 Oct 2024 16:12:58 +0000 (16:12 +0000)] 
Fix build errors in fts5_tcl.c on Mac.

FossilOrigin-Name: 133fff8bd79d46f74eeeee677a929b611f3af79cbc492864211e61e2a35846e9

11 months agoFix test code added by [ba358d26].
dan [Sun, 27 Oct 2024 15:58:28 +0000 (15:58 +0000)] 
Fix test code added by [ba358d26].

FossilOrigin-Name: b7da7980d33e2f2d5d0a4384a43eff39e1a2de4f53b8b4074eea48598a35b9d7

11 months agoImprovements to the PATTERN option of the "testrunner.tcl joblist" command.
drh [Sun, 27 Oct 2024 10:48:06 +0000 (10:48 +0000)] 
Improvements to the PATTERN option of the "testrunner.tcl joblist" command.
The pattern match is case insensitive and applies to the state and displaytype
in addition to displayname.

FossilOrigin-Name: 63a8f60f98115d4ee6e40de3ae775770aba76e19df6ddde68bccb7967b0200dc

11 months agoHelp systems still using Tcl8.6 to compile tclsqlite.c by changing a
drh [Sun, 27 Oct 2024 10:33:47 +0000 (10:33 +0000)] 
Help systems still using Tcl8.6 to compile tclsqlite.c by changing a
typedef into a #define.

FossilOrigin-Name: 82ab8ff399aafa3a1faec9c85e9d6bdd26636f28f3ea22287999a868bb78db57

11 months agoRemove some incorrect code comments.
stephan [Sun, 27 Oct 2024 09:28:35 +0000 (09:28 +0000)] 
Remove some incorrect code comments.

FossilOrigin-Name: 6dfda7f5799f5a2448d3bd57fe9422de100bd8f4f9e53e97f73eeb85c3707b0f

11 months agoRe-add the --disable-static flag to (mostly) disable static lib build. Some component...
stephan [Sun, 27 Oct 2024 08:52:20 +0000 (08:52 +0000)] 
Re-add the --disable-static flag to (mostly) disable static lib build. Some components require the static lib and will trump this preference if they are activated.

FossilOrigin-Name: e296cd11a2bd87bffc9c661baea6539c0258b5e9cf3e9bc516f07c758b3e5939

11 months agoGeneric auto.def cleanups.
stephan [Sun, 27 Oct 2024 08:29:18 +0000 (08:29 +0000)] 
Generic auto.def cleanups.

FossilOrigin-Name: 19a5377e608e7ab8fb5733a87ab02a6a69511570c3829e2c1befecc582a6f8ee

11 months agoEnsure that --disable-tcl is honored. Move LDFLAGS.icu from the CLI shell target...
stephan [Sun, 27 Oct 2024 08:10:56 +0000 (08:10 +0000)] 
Ensure that --disable-tcl is honored. Move LDFLAGS.icu from the CLI shell target to LDFLAGS.libsqlite3.

FossilOrigin-Name: 39ce3f6350d811f27e5104e3dd01de2b04ce2a36edcbefd08596b8ca6c6226ff

11 months agoconfigure: add --with-icu-lib=LDFLAGS and --enable-icu-collations. Fix auto-reconfigu...
stephan [Sun, 27 Oct 2024 07:06:03 +0000 (07:06 +0000)] 
configure: add --with-icu-lib=LDFLAGS and --enable-icu-collations. Fix auto-reconfigure when flags contain spaces.

FossilOrigin-Name: 2a881a2e1b7355c7733c3a41a82290ba6f3983232a9ec378d9a1b62ee4109f54

11 months agoMakefile.in: include CPPFLAGS in the CFLAGS, as the legacy Makefile.in did, because...
stephan [Sun, 27 Oct 2024 06:03:27 +0000 (06:03 +0000)] 
Makefile.in: include CPPFLAGS in the CFLAGS, as the legacy Makefile.in did, because some downstream scripts rely on that. Remove a duplicated TCLLIBDIR assignment.

FossilOrigin-Name: 8e352f4199e048030113e0cc359eaadb6d29bc4b3dd7a0442d7500f7c3847e50

11 months agoconfigure: document why --enable-editline does not work and emit a warning with a...
stephan [Sun, 27 Oct 2024 05:28:52 +0000 (05:28 +0000)] 
configure: document why --enable-editline does not work and emit a warning with a potential alternative/workaround if it's used. Various cosmetic cleanups.

FossilOrigin-Name: ccb8f16f8a5c500b683800672aa4bc87d2f109e87ebdabf6c54d5b6dc69718f7

11 months agoBring the automated readline detection up to parity with the legacy configure script.
stephan [Sun, 27 Oct 2024 04:27:47 +0000 (04:27 +0000)] 
Bring the automated readline detection up to parity with the legacy configure script.

FossilOrigin-Name: 2ddeb7a8f55735cc7f2cf95cbbb0b20c563ced87db1429816fcfb0ee89e751f0

11 months agoRename --with-readline-ldflags/cflags to --with-readline-lib/inc because it turns...
stephan [Sun, 27 Oct 2024 02:27:07 +0000 (02:27 +0000)] 
Rename --with-readline-ldflags/cflags to --with-readline-lib/inc because it turns out that ldflags/cflags have (when passed an explicit value) the same semantics the legacy lib/inc flags. Still to-fix is that the no-flag-given readline search behavior differs, and is much more limited, from the legacy configure behavior.

FossilOrigin-Name: 8f6897b92c6a059f1c658ccce5bdc9ff3d29b41eec8298c6d46c7aeabace1d89

11 months agoCorrect sqlite3.pc to represent the library, not the CLI shell. Remove the half-baked...
stephan [Sun, 27 Oct 2024 02:08:38 +0000 (02:08 +0000)] 
Correct sqlite3.pc to represent the library, not the CLI shell. Remove the half-baked an unused READLINE_H config define. Internal tcl doc fixes.

FossilOrigin-Name: c8c70353bbdcee20487766f5f03f1638a1c35022bb5f1249141b86d561f1b613

11 months agoGet --with-linenoise=DIR configure flag working.
stephan [Sat, 26 Oct 2024 21:51:04 +0000 (21:51 +0000)] 
Get --with-linenoise=DIR configure flag working.

FossilOrigin-Name: 66ce47e5de21c607d2ef1f1e6e639f3c6da132ff3db582e12bd174f7d89d8150

11 months agoRemove the install-lib makefile dep from install-tcl, as it breaks non-root-user...
stephan [Sat, 26 Oct 2024 19:16:18 +0000 (19:16 +0000)] 
Remove the install-lib makefile dep from install-tcl, as it breaks non-root-user invocations of 'make install-tcl' when the --prefix is left at its default and --with-tcl is explicitly provided.

FossilOrigin-Name: e7eabfb61f72dc396fab9d0671642f8150cde23aea965c5e77ac3d9ad11c749f

11 months agoconfigure flag --disable-readline now trumps --with-readline-...
stephan [Sat, 26 Oct 2024 18:34:39 +0000 (18:34 +0000)] 
configure flag --disable-readline now trumps --with-readline-...

FossilOrigin-Name: b66076e51bc1601864973be0f3f2b702b51139ed3818f17433fbaa8351119ad6

11 months agoAdd new configure --with-readline-ldflags/cflags/header flags as brute-force method...
stephan [Sat, 26 Oct 2024 18:17:17 +0000 (18:17 +0000)] 
Add new configure --with-readline-ldflags/cflags/header flags as brute-force method for clients to tell configure how to compile and link against readline.

FossilOrigin-Name: eaa3a8053eb0935bc47abc1001ff101d79b3f181ac7ea51d3e567cb59ae4c7b3

11 months agoAdd test case for fts5 trigram tokenizer.
dan [Sat, 26 Oct 2024 18:09:13 +0000 (18:09 +0000)] 
Add test case for fts5 trigram tokenizer.

FossilOrigin-Name: ba358d265b7ee360d62b5219faaa1010ea90dac4e20cc7adc3ebd46161a65f94

11 months agoIn Makefile.msc, build jimsh0.exe locally, not in the source directory.
drh [Sat, 26 Oct 2024 17:47:19 +0000 (17:47 +0000)] 
In Makefile.msc, build jimsh0.exe locally, not in the source directory.

FossilOrigin-Name: 1b9eb4564bc38cbc6a51ed1c4508f1ba45459630cfda8765c243c9aa0fc7d763

11 months agoRemove LDFLAGS_ZLIB from sqlite3.pc.in because -lsqlite3 already includes that.
stephan [Sat, 26 Oct 2024 16:04:36 +0000 (16:04 +0000)] 
Remove LDFLAGS_ZLIB from sqlite3.pc.in because -lsqlite3 already includes that.

FossilOrigin-Name: 47e50fa84dacf83c2aca62140413c7eeba934e57289a6f6e6fff3ce24448d90a

11 months agoPatch bundle accumulated via /chat: add missing --enable/disable-shared flag to confi...
stephan [Sat, 26 Oct 2024 16:03:04 +0000 (16:03 +0000)] 
Patch bundle accumulated via /chat: add missing --enable/disable-shared flag to configure script and update testrunner.tcl for other configure script flag changes.

FossilOrigin-Name: 32fc9c3f62601684b4ded783a79ebf817d093588c87ece02b449c3542881b65a

11 months agoFix a bug in the computation of LDFLAGS.libsqlite3 introduced by [63218898ed0a6d46].
drh [Sat, 26 Oct 2024 11:18:29 +0000 (11:18 +0000)] 
Fix a bug in the computation of LDFLAGS.libsqlite3 introduced by [63218898ed0a6d46].

FossilOrigin-Name: 58373d523cece0b39a29edcccecf93cfdc7ac68f9f12130ee8e487675d3f6a4d

11 months agoAdd missing B.exe extension to src-verify, as reported in the forum.
stephan [Sat, 26 Oct 2024 04:31:04 +0000 (04:31 +0000)] 
Add missing B.exe extension to src-verify, as reported in the forum.

FossilOrigin-Name: 2801fb6507fc98730449168f3cf49495690e634c004c7074b4d45a0bd7513d41

11 months agoDoc typo fix.
stephan [Sat, 26 Oct 2024 03:30:18 +0000 (03:30 +0000)] 
Doc typo fix.

FossilOrigin-Name: da50e85d9a2020f4c59a72d6ae775fa32c275f0d5086c3caf9b13ab0a937fe1f

11 months agoRephrase 'older' as 'legacy' in the docs from [0a50e33051] and [2b2ca7dec18d].
stephan [Sat, 26 Oct 2024 03:22:44 +0000 (03:22 +0000)] 
Rephrase 'older' as 'legacy' in the docs from [0a50e33051] and [2b2ca7dec18d].

FossilOrigin-Name: d212cc36824acd490a0afd8bc393159612075438b9f3fab992deec9d78d8a366

11 months agoExpand the libtool-style link support from [0a50e33051] such that if INSTALL_SO_086_L...
stephan [Sat, 26 Oct 2024 03:19:29 +0000 (03:19 +0000)] 
Expand the libtool-style link support from [0a50e33051] such that if INSTALL_SO_086_LINKS=1 is passed to 'make install' then the libtool-style names are always linked in, regardless of whether they already existed or not. In either case, we unconditionally remove libsqlite3.la because it cannot work with the newly-installed non-libtool .so file.

FossilOrigin-Name: 2b2ca7dec18d6b53ba7810a2ecf3937d98b5b08232d4f82d16fa2ad5f9fd83b2

11 months agoDisable generation of config.defines.json until/unless it proves interesting. Honor...
stephan [Sat, 26 Oct 2024 03:05:20 +0000 (03:05 +0000)] 
Disable generation of config.defines.json until/unless it proves interesting. Honor the --disable-largefile flag. When installing libsqlite3.so and an older-style libtool installation is found, re-link the libtool-generated files to the newly-installed ones to retain their historical names.

FossilOrigin-Name: 0a50e33051fbdd5b7b7f0ab7eb2b2561d259098075fa8847868017041d789484

11 months agoCorrect unresolved @LIBS@ placeholder in sqlite3.pc.in.
stephan [Fri, 25 Oct 2024 23:45:05 +0000 (23:45 +0000)] 
Correct unresolved @LIBS@ placeholder in sqlite3.pc.in.

FossilOrigin-Name: 63218898ed0a6d466a282f10819d51a7f480d8f12316b74ee8a3f402fcc4e927

11 months agoUse (cc-with {-includes stdint.h}) when checking for the various int types because...
stephan [Fri, 25 Oct 2024 23:25:49 +0000 (23:25 +0000)] 
Use (cc-with {-includes stdint.h}) when checking for the various int types because, despite it being C99, it turns out that we do indeed use it if it's available.

FossilOrigin-Name: 51a9278134b5b9093c92c7036cc91b823f30dd36f677f2335927854744225024

11 months agoWhen --with-tclsh=X is used, use X for all TCL purposes, including in-tree code gener...
stephan [Fri, 25 Oct 2024 23:13:12 +0000 (23:13 +0000)] 
When --with-tclsh=X is used, use X for all TCL purposes, including in-tree code generation, per developer request.

FossilOrigin-Name: 12498e55c0c689f43c78002fb850a58dda337feae51194b9cade7f5dff15e833

11 months agoFix BUILD_CFLAGS (for B.cc) to not inherent CFLAGS (which are only for T.cc).
stephan [Fri, 25 Oct 2024 23:04:50 +0000 (23:04 +0000)] 
Fix BUILD_CFLAGS (for B.cc) to not inherent CFLAGS (which are only for T.cc).

FossilOrigin-Name: ffdce13deb8a1fbce717da9ca44fd34409bedad4db805722100647372c06f4f5

11 months agoExperimentally: when ./configure CC=foo is used in a non-cross-compilation build...
stephan [Fri, 25 Oct 2024 23:03:33 +0000 (23:03 +0000)] 
Experimentally: when ./configure CC=foo is used in a non-cross-compilation build and CC_FOR_BUILD is not explicitly provided, force CC_FOR_BUILD to default to CC. This is debatable - see the code comments for the justification.

FossilOrigin-Name: a49bee68418f9e8c3813a60f76de265b8e6a98a15ab9b246aa42d9e9558a03eb

11 months agoRename VERSION_XYZ to the more conventional PACKAGE_VERSION and remove the unused...
stephan [Fri, 25 Oct 2024 22:44:58 +0000 (22:44 +0000)] 
Rename VERSION_XYZ to the more conventional PACKAGE_VERSION and remove the unused VERSION_XY.

FossilOrigin-Name: 2d2f6dfdebbaba181d0ac16b5b0fa63490fb4c4bdb5ee2e8bf70f06ec862a77f

11 months agoUpdate the compile-for-*.md documents.
drh [Fri, 25 Oct 2024 15:28:00 +0000 (15:28 +0000)] 
Update the compile-for-*.md documents.

FossilOrigin-Name: c4da7fa279274e5a6fe214b5c22f17bcf9b40299aeeab5bfbdae2ba0b2de6af0

11 months agoRework the configure+make system to use autosetup rather than autoconf.
drh [Fri, 25 Oct 2024 14:39:26 +0000 (14:39 +0000)] 
Rework the configure+make system to use autosetup rather than autoconf.
Autosetup runs faster and is easier to maintain, and it allows for common
targets (such as "sqlite3" and "sqlite3.c") to be built within having to
install "tclsh".

FossilOrigin-Name: d8c0e0184226bdae9785199d486200e49db7973d78502d09db7a7e34ab0af941

11 months agoRestore the amalgamation-tarball and snapshot-tarball targets, at least for autosetup
drh [Fri, 25 Oct 2024 14:36:23 +0000 (14:36 +0000)] 
Restore the amalgamation-tarball and snapshot-tarball targets, at least for
now.

FossilOrigin-Name: 1baf4b948854cb4f7c509395df4520a04c16c10cf9e4b67e73e26118636b3204

11 months agoMinor auto.def cleanups and doc addtions.
stephan [Fri, 25 Oct 2024 13:56:13 +0000 (13:56 +0000)] 
Minor auto.def cleanups and doc addtions.

FossilOrigin-Name: ea53aba82b1083bd59262e768b9331bfdc5c4ca6c4121b98aeedcbeb5af01b07

11 months agoNew jimsh0.c file for autosetup.
drh [Fri, 25 Oct 2024 12:22:29 +0000 (12:22 +0000)] 
New jimsh0.c file for autosetup.

FossilOrigin-Name: cfacf864119170365fb21a09d2cca5f2a16354837ef0c3c726b00a886ea8e7e2

11 months agoUpdate the LICENSE.md file to describe BSD-licensed code that is included
drh [Fri, 25 Oct 2024 12:06:40 +0000 (12:06 +0000)] 
Update the LICENSE.md file to describe BSD-licensed code that is included
in the repository as a convenience to developers but which is not itself
actually a part of SQLite.

FossilOrigin-Name: deb5994bb1c7295099939f9c88a97ecfe6d21087cfc9c98384e91993ce85f5e6

11 months agoEnsure that jimsh is built in the proper dir in an out-of-tree build and that jimsh0...
stephan [Fri, 25 Oct 2024 05:53:50 +0000 (05:53 +0000)] 
Ensure that jimsh is built in the proper dir in an out-of-tree build and that jimsh0 is cleaned up by distclean.

FossilOrigin-Name: e0286e258b17e7812387f5e661910ddd3c015bd5ac62dcbd7e02b69379dc9277

11 months agoRename config-defines.json to config.defines.json for consistent with other generated...
stephan [Fri, 25 Oct 2024 04:48:40 +0000 (04:48 +0000)] 
Rename config-defines.json to config.defines.json for consistent with other generated config.* files. Rename --defs-json-include-lowercase to the even less wieldy --defines-json-include-lowercase.

FossilOrigin-Name: 131a2a7ef87b65527d03b3c838de9d34eaca94992a973283ad6eeb296250db92

11 months agoAdd --defs-json-include-lowercase configure flag to cause config-defs.json to include...
stephan [Fri, 25 Oct 2024 04:39:14 +0000 (04:39 +0000)] 
Add --defs-json-include-lowercase configure flag to cause config-defs.json to include lower-case defines, which are primarily the various build-related system paths.

FossilOrigin-Name: 0f2555ea3c7c1950566182c8f5a4d98049461e9db305e892c8434ba3fbf3497a

11 months agoInternal cleanups and docs in hwaci-common.tcl.
stephan [Fri, 25 Oct 2024 04:16:36 +0000 (04:16 +0000)] 
Internal cleanups and docs in hwaci-common.tcl.

FossilOrigin-Name: 30699b57d21f70dd42ec61f5157859358c6be5e3e14bb2989f8874ceeda5dae6

11 months agoDocs related to the -array defs-dump option. Rename some internal-use hwaci-common...
stephan [Fri, 25 Oct 2024 03:56:09 +0000 (03:56 +0000)] 
Docs related to the -array defs-dump option. Rename some internal-use hwaci-common.tcl APIs after discovering that a - as a symbol suffix fails for var derefs (but works for procs calls).

FossilOrigin-Name: 0d5da3888e79166fec560554a921e2ef4290558e988144465f1ea7138ca263a3

11 months agoExperimentally add the -array formatting option to hwaci-dump-defs-json and emit...
stephan [Fri, 25 Oct 2024 03:35:01 +0000 (03:35 +0000)] 
Experimentally add the -array formatting option to hwaci-dump-defs-json and emit OPT_FEATURE_FLAGS/OPT_SHELL in both flat string and array forms.

FossilOrigin-Name: ce6bc4603c27952ca44ff55c81dd50a04b0f6ef8f198720ee0da3aff4c291449

11 months ago./configure now emits config-defs.json, a JSON-formatted counterpart of the DEFS...
stephan [Fri, 25 Oct 2024 03:18:11 +0000 (03:18 +0000)] 
./configure now emits config-defs.json, a JSON-formatted counterpart of the DEFS=... info which the pre-built autotools bundles emit.

FossilOrigin-Name: 800b083c3a55a990bd5b7fd587e24144b0084a394f9cf8160c3aa0a6880f8053

11 months agoThe "WITHOUT_JIMSH=1" option on the nmake command-line forces the use of
drh [Thu, 24 Oct 2024 19:56:42 +0000 (19:56 +0000)] 
The "WITHOUT_JIMSH=1" option on the nmake command-line forces the use of
standard TCL for building, instead of jimsh0.

FossilOrigin-Name: 9f861f66e238b62e04d640ee98bac86b9b532a55d62c92ae0154bd67ee01ec75

11 months agoBasic builds now appear to work using jimsh0 on Windows.
drh [Thu, 24 Oct 2024 19:17:25 +0000 (19:17 +0000)] 
Basic builds now appear to work using jimsh0 on Windows.

FossilOrigin-Name: d8f5193970401b763a94a1d0403bed4337c9fb1f087772b72fb46b9e0bde1c0d

11 months agoFix a bug in jimsh0.c for when it is compiled using MSVC.
drh [Thu, 24 Oct 2024 17:16:38 +0000 (17:16 +0000)] 
Fix a bug in jimsh0.c for when it is compiled using MSVC.

FossilOrigin-Name: f7def0be742fad9863f1eba11d0c2f1fa739ad1262e67d24380698e3948cedb7

11 months agoAdd missing ZERO_ARGUMENT_GENERATE_SERIES checks to ext/misc/series.c, as reported...
stephan [Thu, 24 Oct 2024 15:58:37 +0000 (15:58 +0000)] 
Add missing ZERO_ARGUMENT_GENERATE_SERIES checks to ext/misc/series.c, as reported via support mail.

FossilOrigin-Name: 5a8e3915eec06dbec7e32d1b87c6a6d5eb618d9d1d9bac13f6e1e7f22bbf8180

11 months agoFix the new tool/cp.tcl so that it works with older TCL versions, such as
drh [Thu, 24 Oct 2024 15:57:21 +0000 (15:57 +0000)] 
Fix the new tool/cp.tcl so that it works with older TCL versions, such as
jimtcl.

FossilOrigin-Name: 61f18c96183867fe9d0fb30b8b71c0253f40503e32c8a4202196fb6418f2f46e

11 months agoFix harmless compiler warnings. One of the warnings was code that
drh [Thu, 24 Oct 2024 15:36:29 +0000 (15:36 +0000)] 
Fix harmless compiler warnings.  One of the warnings was code that
deliberately committed memory errors to test the systems ability to cope.
But compilers don't allow that any more, so we'll have to leave that
capability untested.

FossilOrigin-Name: 7e7b3b2edbb580c9ac14f21e5caa8f2f6b171d9a7ce6cb336dc0c8db76da7e8c

11 months agoAdd the tool/cp.tcl script and use it to simplify Makefile.msc.
drh [Thu, 24 Oct 2024 15:14:55 +0000 (15:14 +0000)] 
Add the tool/cp.tcl script and use it to simplify Makefile.msc.

FossilOrigin-Name: b7db2146a89587075d268b524ffc83d147f1d9d3e428c6d72bb7f3b8717c7954

11 months agoBack out [bd66222721] because it causes conflicts with test runs, apparently due...
stephan [Thu, 24 Oct 2024 14:33:11 +0000 (14:33 +0000)] 
Back out [bd66222721] because it causes conflicts with test runs, apparently due to .o files being built with different flags. This means that the CLI shell currently does not honor --disable-amalgamation.

FossilOrigin-Name: b063317352e1360293787909cafe46dbfda68a75a89c6559bac69ad160d5ec43

11 months agoTweaks to help make jimsh0 usable to build using nmake. Does not quite work
drh [Thu, 24 Oct 2024 13:27:25 +0000 (13:27 +0000)] 
Tweaks to help make jimsh0 usable to build using nmake.  Does not quite work
yet, but getting closer.

FossilOrigin-Name: e911303b8d180897c256e5de6edaa6b99239f914b84de2d08b3410650cd52c6d

11 months agoMinor makefile tweaks to account for customizations via a custom hand-built makefile.
stephan [Thu, 24 Oct 2024 12:57:45 +0000 (12:57 +0000)] 
Minor makefile tweaks to account for customizations via a custom hand-built makefile.

FossilOrigin-Name: 7f92e820e675ea5d54284c534d44ec4f7f242b30920a5f84c020b93f2e7e969d

11 months agoFix jimsh0.c so that it compiles using MSVC: "cl jimsh0.c"
drh [Thu, 24 Oct 2024 12:18:53 +0000 (12:18 +0000)] 
Fix jimsh0.c so that it compiles using MSVC:  "cl jimsh0.c"

FossilOrigin-Name: f531825d4e16502ac8fa496fba51ea735232e2988aa9ddd0f232825f6ec2a9a2

11 months agoFix an inconsistency in the way SQLITE_CORE is used in fts3.c.
dan [Thu, 24 Oct 2024 12:06:04 +0000 (12:06 +0000)] 
Fix an inconsistency in the way SQLITE_CORE is used in fts3.c.

FossilOrigin-Name: d4816e534a22250bd18509b07edca205c7ad6a8b3ecbbf5336a517ac19f78f55

11 months agoFix the sqlite3(.EXE) build to honor --disable-amalgamation.
stephan [Thu, 24 Oct 2024 12:03:02 +0000 (12:03 +0000)] 
Fix the sqlite3(.EXE) build to honor --disable-amalgamation.

FossilOrigin-Name: bd66222721ad06e99c1b66a3a0fbde06532507aa067165f47fa5d6c41ba630e6

11 months agoMerge all the latest trunk enhancements into the autosetup branch.
drh [Thu, 24 Oct 2024 11:20:25 +0000 (11:20 +0000)] 
Merge all the latest trunk enhancements into the autosetup branch.

FossilOrigin-Name: d0554ac46866b5ad467b88de6fae06695fd81e7fdf38157702a395f7282cbe9d

11 months agoUpdate the version number for the TEA extension.
drh [Thu, 24 Oct 2024 11:11:31 +0000 (11:11 +0000)] 
Update the version number for the TEA extension.

FossilOrigin-Name: 56353bcffa1bad425b1645b09e7192aa418d6b989df5958e0a770226bfc2ce63

11 months agoVarious build cleanups centered around straightening out various uses of CFLAGS and...
stephan [Thu, 24 Oct 2024 07:31:39 +0000 (07:31 +0000)] 
Various build cleanups centered around straightening out various uses of CFLAGS and its cousins. Teach Makefile.linux-generic to figure out the TOP dir on its own (a GNU Make-ism, but it's a Linux-specific makefile).

FossilOrigin-Name: 58a0f7e79ce913b432dfd4db018e5a92efa8a6bd8a50bd78ab705ceac0322e9c

11 months agoMore potentially-controversial makefile symbol renaming. This is simply more readable...
stephan [Thu, 24 Oct 2024 05:33:30 +0000 (05:33 +0000)] 
More potentially-controversial makefile symbol renaming. This is simply more readable to my eyes.

FossilOrigin-Name: 6d4d1d5fefb82ec7458efc2e93c933d9dc415dfa06fa46ff4725c30fc920ca5a

11 months agoBump version number to 3.48.0 (in this branch only - in trunk, doing so requires...
stephan [Thu, 24 Oct 2024 05:03:20 +0000 (05:03 +0000)] 
Bump version number to 3.48.0 (in this branch only - in trunk, doing so requires a specific autoconf version) and rename the RELEASE and VERSION makefile symbols for clarity's sake.

FossilOrigin-Name: 4193d90f2158e25fe25f9bcf579ae38a6e0ab6c26f52cd07a777d67b87107632

11 months agoPotentially controversial/unconventional makefile symbol renamings and docs explainin...
stephan [Thu, 24 Oct 2024 04:56:44 +0000 (04:56 +0000)] 
Potentially controversial/unconventional makefile symbol renamings and docs explaining them.

FossilOrigin-Name: 7eceb7539dcce16104a93ad0ca1f755f23621751878cc4b01465e61333795b72

11 months agoGeneric build cleanups.
stephan [Thu, 24 Oct 2024 04:34:39 +0000 (04:34 +0000)] 
Generic build cleanups.

FossilOrigin-Name: be7b32a77f58ae3eb15cb828385035e63236b7e6c0669f90f2321f0509f0de1b

11 months agoGet Makefile.linux-generic (formerly Makefile.linux-gcc) working with jimsh in out...
stephan [Thu, 24 Oct 2024 03:50:40 +0000 (03:50 +0000)] 
Get Makefile.linux-generic (formerly Makefile.linux-gcc) working with jimsh in out-of-tree builds. Pass on -DHAVE_READLINE=1 to the sqlite3 shell if configure detects it.

FossilOrigin-Name: a555ff6dbc2ded5a9c65c8ef483f3197298848a580dda25ba0b721ba13167ad4

11 months agoGeneral make cleanups. Start adding a sanity-check mechanism to main.mk which does...
stephan [Thu, 24 Oct 2024 03:14:40 +0000 (03:14 +0000)] 
General make cleanups. Start adding a sanity-check mechanism to main.mk which does basic validation of the vars it expects to be set by the file which includes it. Get Makefile.linux-gcc working for the core-most rules.

FossilOrigin-Name: 85b2c73ccb85d7f5830a6fac692b380c5c79e7a54ee3fc6fc37343fa23816ef8

11 months agoRename some build vars for legibility. Fix hwaci-make-from-dot-in when the input...
stephan [Thu, 24 Oct 2024 01:26:50 +0000 (01:26 +0000)] 
Rename some build vars for legibility. Fix hwaci-make-from-dot-in when the input file list is multi-line.

FossilOrigin-Name: fdb584421578cae825365d457cd533721839e3503f3744c77832c5925815b537

11 months agoFix out-of-tree builds configured with --disable-amalgamation.
stephan [Thu, 24 Oct 2024 00:02:44 +0000 (00:02 +0000)] 
Fix out-of-tree builds configured with --disable-amalgamation.

FossilOrigin-Name: 182dac1c46f8ada2e1f3abd4959ac72f0ecfd451b41fbe699f5077f338ae7d62

11 months agoRemove unused configure check for clang-18.
stephan [Wed, 23 Oct 2024 17:40:07 +0000 (17:40 +0000)] 
Remove unused configure check for clang-18.

FossilOrigin-Name: d73ac7286aba8e8f9d1236dd06f6055bc3026879ff15efb151cc54175d02e315

11 months agoRemove three autotools files which are not needed in the autosetup port.
stephan [Wed, 23 Oct 2024 17:17:16 +0000 (17:17 +0000)] 
Remove three autotools files which are not needed in the autosetup port.

FossilOrigin-Name: fc20861443ea52a058f556fdf1ddf03a41c538e3b97ff663833e422a50e38d66

11 months agoFix a #define typo in jimsh0.c, eliminating the need to explicitly pass -DJIM_COMPAT...
stephan [Wed, 23 Oct 2024 16:59:12 +0000 (16:59 +0000)] 
Fix a #define typo in jimsh0.c, eliminating the need to explicitly pass -DJIM_COMPAT when building it. This fix has since made its way upstream.

FossilOrigin-Name: 9b105abf6fb6425d223ab9319f539b9d0cc2df488e0c23c5070853ba4778ebee

11 months agoAfter compiling jimsh, run sanity tests on it to ensure that it is built with -DJIM_C...
stephan [Wed, 23 Oct 2024 16:46:46 +0000 (16:46 +0000)] 
After compiling jimsh, run sanity tests on it to ensure that it is built with -DJIM_COMPAT and one of (-DHAVE_REALPATH, -DHAVE__FULLPATH).

FossilOrigin-Name: ea6a14a6e64c0ed2306b9b3048132659094259b95b49a9572f7178c26b28f93a

11 months agoWork around a minor JimTCL regexp incompatibility in tool/vdbe-compress.tcl. Summary...
stephan [Wed, 23 Oct 2024 16:03:51 +0000 (16:03 +0000)] 
Work around a minor JimTCL regexp incompatibility in tool/vdbe-compress.tcl. Summary: it thinks that backslash-escaped octal values are back-references, which it does not like.

FossilOrigin-Name: aeac23359bb681c0c86c55c83ab9c16973822f6bc4e1a11959102b062333e358

11 months agoRemove the configure-script VERSION check from tool/srctree-check.tcl, as it's not...
stephan [Wed, 23 Oct 2024 15:13:43 +0000 (15:13 +0000)] 
Remove the configure-script VERSION check from tool/srctree-check.tcl, as it's not relevant in the autosetup build.

FossilOrigin-Name: 6c5826d7522eade0f5682367637f45b0b64a7cced3cd7d643a30fb9ab0acd2a9

11 months agoAdd missing export of LDFLAGS_DLOPEN to Makefile.in.
stephan [Wed, 23 Oct 2024 15:05:08 +0000 (15:05 +0000)] 
Add missing export of LDFLAGS_DLOPEN to Makefile.in.

FossilOrigin-Name: d18af84bf76db16513791b43850c41dbb5a83c435b8d3e93afaa8c2920460ac7

11 months agoReorder conditions in sqlite3PagerDirectReadOk() for coverage.
drh [Wed, 23 Oct 2024 11:33:56 +0000 (11:33 +0000)] 
Reorder conditions in sqlite3PagerDirectReadOk() for coverage.

FossilOrigin-Name: da9124fee28c155c4d1cc0d3949eb7b588a7236c12883a010af7909ad8e534ef

11 months agoFix harmless compiler warnings in wherecode.c. One such warning was
drh [Wed, 23 Oct 2024 11:06:56 +0000 (11:06 +0000)] 
Fix harmless compiler warnings in wherecode.c.  One such warning was
identified by [forum:/forumpost/721675f007|forum post 721675f007] and the
other was found by tool/warnings.sh.

FossilOrigin-Name: 987b96aa636c1801f87d3e1c75d34d45c5b6f437bcc6d150298675447ed16b5d

11 months agoAdd two new #include statements to the composite "fts5.c" file that
drh [Wed, 23 Oct 2024 10:36:02 +0000 (10:36 +0000)] 
Add two new #include statements to the composite "fts5.c" file that
is constructed as part of the build process.  These #includes are no-ops
in the SQLite amalgamation (and are commented out automatically by the
amalgamation builder) but are needed if the FTS5 extension is built
separately, it seems.
[https://bugzilla.mozilla.org/show_bug.cgi?id=1926321#c3|Enhancement request].

FossilOrigin-Name: 1bf8daeb24142044e1b5d4b205317c42353004643fadb6b34f9ae6bfa4e3a6bc

11 months agoAnother fix for autosetup/autosetup-find-tclsh for the case where a tclsh is found...
stephan [Wed, 23 Oct 2024 02:36:50 +0000 (02:36 +0000)] 
Another fix for autosetup/autosetup-find-tclsh for the case where a tclsh is found on the system.

FossilOrigin-Name: 19d78fcef469a15487953ce2d227746ad83c0360fdc42cd4b6df6a2bc5ebb8ae

11 months agoLatest autosetup/autosetup-find-tclsh from [https://github.com/msteveb/autosetup...
stephan [Wed, 23 Oct 2024 02:22:57 +0000 (02:22 +0000)] 
Latest autosetup/autosetup-find-tclsh from [https://github.com/msteveb/autosetup/issues/67 | autosetup ticket #67].

FossilOrigin-Name: 0e33f6cd48cb844331e66bfcfd93f83671380edef70b1e6684c09a7d4671eb17

11 months agoReorder some auto.def code to avoid breaking --help.
stephan [Wed, 23 Oct 2024 02:17:46 +0000 (02:17 +0000)] 
Reorder some auto.def code to avoid breaking --help.

FossilOrigin-Name: 151d7dfc8da64932f624528ed55764df6408a578bddc741b3dbf2f14567a0d71

11 months agoMinor cleanups in the --with-wasi-sdk bits.
stephan [Wed, 23 Oct 2024 02:11:52 +0000 (02:11 +0000)] 
Minor cleanups in the --with-wasi-sdk bits.

FossilOrigin-Name: d952c17981073cb0158b392edd9b0818dfba2456ab9997d360af56774c9f4216

11 months agoGet auto.def handling the case that no tclsh is installed in a default location....
stephan [Wed, 23 Oct 2024 01:59:34 +0000 (01:59 +0000)] 
Get auto.def handling the case that no tclsh is installed in a default location.  If not, use jimsh if we can find realpath(), else bail out.

FossilOrigin-Name: 359741bc7624006014d73c4cf5cdd29fa38c33a446ed04b46032e5d3ca18d13c

11 months agoFix /dev/null and stderr redirection ordering in autosetup/autosetup-find-tclsh so...
stephan [Wed, 23 Oct 2024 01:33:15 +0000 (01:33 +0000)] 
Fix /dev/null and stderr redirection ordering in autosetup/autosetup-find-tclsh so that the extraneous strlcpy()/snprintf()/rand() warning output from ld on OpenBSD does not break detection of jimsh0.

FossilOrigin-Name: cd447e50d1b31e7539e4a8b5dc2a88c5a6a3814a28718b5829167b830dfd0edd

11 months agoUse pkg-config for readline detection, if available. Unrelated minor tcl cleanups.
stephan [Wed, 23 Oct 2024 01:18:16 +0000 (01:18 +0000)] 
Use pkg-config for readline detection, if available. Unrelated minor tcl cleanups.

FossilOrigin-Name: 3a41ac08a443f96c3f34432f5034d2d12f03913f2a1db19d9f133b365b39ad20

11 months agoChanges to EXPLAIN QUERY PLAN to identify covering index plan that use indexes on...
dan [Tue, 22 Oct 2024 20:16:41 +0000 (20:16 +0000)] 
Changes to EXPLAIN QUERY PLAN to identify covering index plan that use indexes on expressions.

FossilOrigin-Name: 29fb4919b6118b3b9ae411ec2ed5b59db7fae281909501c5fa238221ba635db5

11 months agoAdd the "halt" command to testrunner.tcl
drh [Tue, 22 Oct 2024 20:09:18 +0000 (20:09 +0000)] 
Add the "halt" command to testrunner.tcl

FossilOrigin-Name: 2cc25d5dbbc729f3b6deb8c6a45b975c535b4d20ad240e4ec0c85b3733a170ed