]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
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

11 months agoAdd the SQLITE_IOCAP_SUBPAGE_READ bit to the possible returns values
drh [Tue, 22 Oct 2024 19:33:20 +0000 (19:33 +0000)] 
Add the SQLITE_IOCAP_SUBPAGE_READ bit to the possible returns values
from xDeviceCharacteristics method of the system-IO abstract class.  The
direct-overflow-read optimization is disabled for any VFS that does not
set this bit.  The bit is set for standard VFSes.

FossilOrigin-Name: 6e7d498cda1d8fa76f3efac0ee0540dd8241db75e85b863097cab2ed530aabb0

11 months agoRename to SQLITE_IOCAP_SUBPAGE_READ. bypass-iocap
drh [Tue, 22 Oct 2024 18:26:03 +0000 (18:26 +0000)] 
Rename to SQLITE_IOCAP_SUBPAGE_READ.

FossilOrigin-Name: dd446ef1816f4e95ce29de0b3841dd0a6c983646fd2dd271c2db8f3263478164

11 months agoAdd the SQLITE_IOCAP_BYPASS device characteristic. Do not allow the
drh [Tue, 22 Oct 2024 18:00:26 +0000 (18:00 +0000)] 
Add the SQLITE_IOCAP_BYPASS device characteristic.  Do not allow the
SQLITE_DIRECT_OVERFLOW_READ optimization if that capability is missing.

FossilOrigin-Name: f50ae00ce9ff572e6bd5e2788602ba356383526ab7289622a32fbf52926c6df0

11 months agoMinor build docs and cleanups.
stephan [Tue, 22 Oct 2024 17:57:22 +0000 (17:57 +0000)] 
Minor build docs and cleanups.

FossilOrigin-Name: 0eb96ea2d153c0f7bd9743b759849c95b3e9f1e6e4a9cdb30c26aa2ca43c1e14

11 months agoDo not typedef Tcl_Size if it is already #defined.
drh [Tue, 22 Oct 2024 16:19:14 +0000 (16:19 +0000)] 
Do not typedef Tcl_Size if it is already #defined.

FossilOrigin-Name: 53491688cf622ca317b3ff56156e601c2bdfffc94e4fe471ca82d5ba1d9e875f

11 months agoMinor cleanups to how configure generates tool/emcc.sh.
stephan [Tue, 22 Oct 2024 13:02:48 +0000 (13:02 +0000)] 
Minor cleanups to how configure generates tool/emcc.sh.

FossilOrigin-Name: 4484b4623684b09df018f85d95a2b2894a13f38013902831be20a263db605001

11 months agoTeach ext/wasm/GNUmakefile to use tool/emcc.sh and fix a syntax error in tool/emcc...
stephan [Tue, 22 Oct 2024 12:56:00 +0000 (12:56 +0000)] 
Teach ext/wasm/GNUmakefile to use tool/emcc.sh and fix a syntax error in tool/emcc.sh.in. Work around a JimTCL incompatibility in tool/mkshellc.tcl.

FossilOrigin-Name: 24e0f6ecc67615a2a8c2df08aa47a782cf692fb1a5a59246eab83c0232e78edc

11 months agoFurther changes to sqlite3_rsync.c to work around Windows issues.
drh [Tue, 22 Oct 2024 10:29:13 +0000 (10:29 +0000)] 
Further changes to sqlite3_rsync.c to work around Windows issues.

FossilOrigin-Name: e2bd3219d9f7bab377ebcfa9a737ca59899c68dad1e3d1d16347bbfdd25652ee

11 months agoSet I/O mode to binary in Windows in sqlite3_rsync.
drh [Tue, 22 Oct 2024 09:43:27 +0000 (09:43 +0000)] 
Set I/O mode to binary in Windows in sqlite3_rsync.

FossilOrigin-Name: 67175287440cf363df01bed2464122c3b686a82ea82aeecd3f45fe90c359495c

11 months agoAfter discussing [4d4423df8d14] with Steve Bennett, do not prepend $prefix/bin to...
stephan [Tue, 22 Oct 2024 03:56:21 +0000 (03:56 +0000)] 
After discussing [4d4423df8d14] with Steve Bennett, do not prepend $prefix/bin to the search path for binaries, as that path is commonly used for cross-compiled targets and we want binaries which will run on the build host.

FossilOrigin-Name: f2008a7d797263de25eaed60d4b6bd5c87cdb917bb92cfc8700f91e6416d744c

11 months agoTouch configure-generated files at configure-time even if autosetup does not update...
stephan [Tue, 22 Oct 2024 03:33:11 +0000 (03:33 +0000)] 
Touch configure-generated files at configure-time even if autosetup does not update them because their contents would not be changed. Works around wonky deps causing too-frequent rebuilds.

FossilOrigin-Name: 339b48af1728f6acb4c3a02f84bd432466dcc728d3d01f9728e82f3c6aedb002

11 months agoRename hwaci-error to the more descriptive hwaci-fatal. Use autosetup's file-isexec...
stephan [Tue, 22 Oct 2024 03:12:11 +0000 (03:12 +0000)] 
Rename hwaci-error to the more descriptive hwaci-fatal. Use autosetup's file-isexec instead of [file executable] for portability. Remove the binary file lookup cache - unnecessary complexity. When searching for tools like tclsh, check under $prefix/bin before checking the $PATH. This seems like the right thing to do, but the fact that autosetup's file-search API's do not do that by default leaves some room for doubt about the wisdom of this change.

FossilOrigin-Name: 4d4423df8d14fb683bb89bebeac4b108a40847259a116fcb634b9e6594907026

11 months agoIn testrunner.tcl: Better estimates for ETC (Estimated Time to Completion).
drh [Mon, 21 Oct 2024 22:45:59 +0000 (22:45 +0000)] 
In testrunner.tcl:  Better estimates for ETC (Estimated Time to Completion).
Show the ETC even for the single-line status reports.

FossilOrigin-Name: 2a2f5f4e378338951cc2030ffbacd678e6a6eab142e39ee632c61be42345b092

11 months agoBring checksymbols target up to date and add a TODO based on a feature request from...
stephan [Mon, 21 Oct 2024 22:15:04 +0000 (22:15 +0000)] 
Bring checksymbols target up to date and add a TODO based on a feature request from the forum.

FossilOrigin-Name: c00a03256b3f06411f93e690f875e9bc59a750aeea3ecf84bf8c8bec7c08b8ae

11 months agoAdd sqlite3rebaser_... to the API symbols accepted by the 'checksymbols' makefile...
stephan [Mon, 21 Oct 2024 21:53:08 +0000 (21:53 +0000)] 
Add sqlite3rebaser_... to the API symbols accepted by the 'checksymbols' makefile target.

FossilOrigin-Name: 0284590f212b2d6ac6516e60350e924a1c29602e8ac8b997d0a5fa488a2dc9c1

11 months agoResolve two build FIXMEs.
stephan [Mon, 21 Oct 2024 21:32:58 +0000 (21:32 +0000)] 
Resolve two build FIXMEs.

FossilOrigin-Name: 4de51c165ca4d0ad66f5dd7aa16fc82c673c6791b65990339134fb26b858ec33

11 months agoGet most of the numerous misc tool binaries building.
stephan [Mon, 21 Oct 2024 21:22:18 +0000 (21:22 +0000)] 
Get most of the numerous misc tool binaries building.

FossilOrigin-Name: fa74cbb40c0f2e0135ac97fc4fa899b2ab7973f925f154e8e18c85661d60e17f

11 months agoSimplify how the targets which may or may not be enabled, depending on config flags...
stephan [Mon, 21 Oct 2024 20:12:03 +0000 (20:12 +0000)] 
Simplify how the targets which may or may not be enabled, depending on config flags, are formulated in main.mk.

FossilOrigin-Name: 7bea793ce46ab5c41b242c5e69b4f9bd8536a9b106e8c39f7ac002451d5db6ea

11 months agoMore build doc tweaks and get ./startup building.
stephan [Mon, 21 Oct 2024 19:51:32 +0000 (19:51 +0000)] 
More build doc tweaks and get ./startup building.

FossilOrigin-Name: cee285029c7225a2457062eb2b4ea7c6a17a3a5ba5fb776ebbb4ea8be62b9fff

11 months agoStart moving most Makefile.in docs over to main.mk. Fix compilation of tclsqlite.c.
stephan [Mon, 21 Oct 2024 17:50:55 +0000 (17:50 +0000)] 
Start moving most Makefile.in docs over to main.mk. Fix compilation of tclsqlite.c.

FossilOrigin-Name: 5b154e08ab5e8a8fd1ac1b28debd46824ef55b533a60ca5711c55b5a59a871cd

11 months agoVersion 3.47.0 version-3.47.0
drh [Mon, 21 Oct 2024 16:30:22 +0000 (16:30 +0000)] 
Version 3.47.0

FossilOrigin-Name: 03a9703e27c44437c39363d0baf82db4ebc94538a0f28411c85dda156f82636e

11 months agoAdd docs introducing how to define and use autosetup configure flags. Use -DJIM_COMPA...
stephan [Mon, 21 Oct 2024 16:06:49 +0000 (16:06 +0000)] 
Add docs introducing how to define and use autosetup configure flags. Use -DJIM_COMPAT when building jimsh to force its expr command to be syntax-compatible with canonical TCL.

FossilOrigin-Name: a6a275de3d975fdf7432d71a915b40426a976725ebd81a178b5e80d14cf3a2df

11 months agoAdd a case to testrunner.tcl so that mdevtest can run on openbsd.
dan [Mon, 21 Oct 2024 14:24:27 +0000 (14:24 +0000)] 
Add a case to testrunner.tcl so that mdevtest can run on openbsd.

FossilOrigin-Name: e904b37fb2621e6bd5e761f3ecb75adb34350f2d1d7b229e655e74bc6a2f5321

11 months agoMerge trunk into autosetup branch.
stephan [Mon, 21 Oct 2024 13:11:43 +0000 (13:11 +0000)] 
Merge trunk into autosetup branch.

FossilOrigin-Name: 347a50e66fa17bba997f6cbaa5bd693d029df488e54c24f7e4db47b65e84ce81

11 months agoAvoid using LIKE in sqlite3expert.c, in case "PRAGMA case_sensitive_like" has been...
dan [Mon, 21 Oct 2024 10:47:24 +0000 (10:47 +0000)] 
Avoid using LIKE in sqlite3expert.c, in case "PRAGMA case_sensitive_like" has been used or the "like" UDF replaced by something unexpected.

FossilOrigin-Name: 9f642b3dbc8febfacad97076030f44e9b40067e27222f2bcb84813c5765d3d2a

11 months agoFix another problem with ".expert" and virtual tables. [forum:/forumpost/49d6a19ec...
dan [Sun, 20 Oct 2024 07:19:38 +0000 (07:19 +0000)] 
Fix another problem with ".expert" and virtual tables. [forum:/forumpost/49d6a19ec|Forum post 49d6a19ec].

FossilOrigin-Name: 7a7162293c8fdb0078fe56948d697703539dd23273b2072990d4391c761e6ae2

11 months agoBuild doc touchups.
stephan [Sun, 20 Oct 2024 02:47:56 +0000 (02:47 +0000)] 
Build doc touchups.

FossilOrigin-Name: 109d441bf1bcdbc01d1f3f2aa145039539fc5aad02f91fc987a0c3702e21809d

11 months agoA possible fix for some as-yet-unused configure code which looks for a module loader.
stephan [Sun, 20 Oct 2024 02:35:25 +0000 (02:35 +0000)] 
A possible fix for some as-yet-unused configure code which looks for a module loader.

FossilOrigin-Name: c6c799a54b3fad2f8c2b73b0a88f64dda38736a283bbf4dd286ac9dd6d6bf153

11 months agoCosmetic tweaks to auto.def.
stephan [Sun, 20 Oct 2024 01:41:36 +0000 (01:41 +0000)] 
Cosmetic tweaks to auto.def.

FossilOrigin-Name: 476d2407e52ebf66e18f4f5f70c7c2a37bb4d253969c23e1e75d4cb0460a93e0

11 months agoMinor doc updates.
stephan [Sun, 20 Oct 2024 01:34:13 +0000 (01:34 +0000)] 
Minor doc updates.

FossilOrigin-Name: 6578a8d59e351182ee16a1f4e4b2c88a042a92dd8b32049947aa0436464b8588

11 months agoDo not check for Emscripten when doing a --with-wasi-sdk build.
stephan [Sun, 20 Oct 2024 01:14:54 +0000 (01:14 +0000)] 
Do not check for Emscripten when doing a --with-wasi-sdk build.

FossilOrigin-Name: 111cff2cf38886ccec11b45db8b891ec84e24d0b61d413b35fd474b51003e8f2

11 months agoGeneric build cleanups and reorgs.
stephan [Sun, 20 Oct 2024 01:09:51 +0000 (01:09 +0000)] 
Generic build cleanups and reorgs.

FossilOrigin-Name: 365a3d71cf9e0be11e7b3e90b6500142619102d8321c1d6f8111f37117a57929

11 months agoAdd sqlite3_rsync to the docs at the top of mktoolzip.tcl. No code changes.
stephan [Sat, 19 Oct 2024 22:45:50 +0000 (22:45 +0000)] 
Add sqlite3_rsync to the docs at the top of mktoolzip.tcl. No code changes.

FossilOrigin-Name: 10f5c4a2fce8a9ea9b1533cabbaf4ca8549e72950d5c460c0f4501a9fc50e3e8

11 months agoMore build cleanups and get it working with BSD make (which apparently does not suppo...
stephan [Sat, 19 Oct 2024 20:53:46 +0000 (20:53 +0000)] 
More build cleanups and get it working with BSD make (which apparently does not support $< and behaves slightly differently than gmake with X?=Y).

FossilOrigin-Name: dcf4fc78fb2813d37eb56c358009f1e5225f28a0c85c710c8127db330efaf319

11 months agoMove most of the makefile code into the static main.mk.
stephan [Sat, 19 Oct 2024 20:26:17 +0000 (20:26 +0000)] 
Move most of the makefile code into the static main.mk.

FossilOrigin-Name: 09905ed094f7102dbb4fc81b059452c50b48b0f3a2bd9736bed364b0639d89d7

11 months agoFactor out all autosetup-processed @if/@else blocks from Makefile.in in prep for...
stephan [Sat, 19 Oct 2024 18:31:47 +0000 (18:31 +0000)] 
Factor out all autosetup-processed @if/@else blocks from Makefile.in in prep for moving most of the makefile code into main.mk (which has, so far, been completely overlooked in this port but will now become the main basis for the static parts of the build). The idea is that all build configuration goes into a platform-dependent makefile which then includes main.mk.

FossilOrigin-Name: 707e0f5857d58ec8b457270f988126b1dd0f01b5a3445a43ff7b5429324b1b3d

11 months agoGeneric build cleanups.
stephan [Sat, 19 Oct 2024 16:58:17 +0000 (16:58 +0000)] 
Generic build cleanups.

FossilOrigin-Name: 510afccf02dc9c3e3b928c64c34d10bee66a2343ecec6e24c4770cb0f139cd65

11 months agoMerge trunk into autosetup branch.
stephan [Sat, 19 Oct 2024 13:51:23 +0000 (13:51 +0000)] 
Merge trunk into autosetup branch.

FossilOrigin-Name: 2923a8924c92f62d07cb130462a8e6f4662837bad1a02bda53e630b64c692f60

11 months agoGet tool-zip target, and its prerequisites, building.
stephan [Sat, 19 Oct 2024 13:44:16 +0000 (13:44 +0000)] 
Get tool-zip target, and its prerequisites, building.

FossilOrigin-Name: 38cc5db3a8f3079c9be18a9939dae9ba8f4411d4c2361369d697d32f536fc3a4

11 months agoAdd missing $(TEXE) suffixes in the tool-zip makefile target.
stephan [Sat, 19 Oct 2024 13:38:51 +0000 (13:38 +0000)] 
Add missing $(TEXE) suffixes in the tool-zip makefile target.

FossilOrigin-Name: 5a594dbcd533aa1e37acea1702db993672c3c0e621add9ea26a497c52037617f

11 months agoMove the #include of hwtime.h from the bottom of util.c to the top of
drh [Sat, 19 Oct 2024 13:20:34 +0000 (13:20 +0000)] 
Move the #include of hwtime.h from the bottom of util.c to the top of
vdbe.c so that it will be available when needed, even for non-amalgamation
builds.

FossilOrigin-Name: 5f23036a87f443c82fa7fd48fdac16a31128bb9288b71f97228c29bcfeb632fb