]> git.ipfire.org Git - thirdparty/sqlite.git/log
thirdparty/sqlite.git
10 months agoAdd missing CFLAGS.intree_includes to T.compile.tcl to fix build of tclsqlite3.
stephan [Fri, 8 Nov 2024 08:01:56 +0000 (08:01 +0000)] 
Add missing CFLAGS.intree_includes to T.compile.tcl to fix build of tclsqlite3.

FossilOrigin-Name: bb3c6dc126896528328bb9f51a28a1d46d4549e687c93c16f2d164230c6b1684

10 months agoMore closely emulate the legacy build's handling of LDFLAGS, permitting them to be...
stephan [Fri, 8 Nov 2024 07:37:12 +0000 (07:37 +0000)] 
More closely emulate the legacy build's handling of LDFLAGS, permitting them to be passed to configure but not to make. We cannot 100% enforce that because main.mk is not filtered by the configure script, so we instead add a level of indirection to make passing of LDFLAGS=... to make a no-op.

FossilOrigin-Name: d1af9f31831dc99a808b916df4d414943f5d56796c8342411ee4a57abfde85e2

10 months agoSupport clients passing in LDFLAGS to configure/make, but in a more limited form...
stephan [Fri, 8 Nov 2024 06:22:15 +0000 (06:22 +0000)] 
Support clients passing in LDFLAGS to configure/make, but in a more limited form than the legacy build it (i.e. only to select targets rather than all targets). Rename make-side internal uses of CFLAGS to CFLAGS.env for consistency with the new LDFLAGS.env. See discussion in [forum:5fcbea40f3|forum thread 5fcbea40f3].

FossilOrigin-Name: a5e07e8063ad50f2cf46b6be568717adc9604bd6dbf926a526de43bda2996ad0

10 months agoDisable setting of the SONAME (enabled by [2a2419ef742]), as it's not clear whether...
stephan [Fri, 8 Nov 2024 05:26:26 +0000 (05:26 +0000)] 
Disable setting of the SONAME (enabled by [2a2419ef742]), as it's not clear whether blindly setting the SONAME, which now differs from its historical value, will cause more grief than it solves. Add a (disabled) experiment which permits setting (or not) the SONAME to the legacy or current values. This change is up for further change as experimentation proves whether we truly need/want the SONAME. See discussion in/around [forum:0c6fc6f46b2cb3|forum post 0c6fc6f46b2cb3].

FossilOrigin-Name: d931456805e7d5c3379ca68b97a0a1d4ab1eb80c5e90c169cf43fc8239247d25

10 months agoFix an OOB write that could occur in fts3 when dealing with corrupt database records.
dan [Thu, 7 Nov 2024 17:34:53 +0000 (17:34 +0000)] 
Fix an OOB write that could occur in fts3 when dealing with corrupt database records.

FossilOrigin-Name: 108863ec7998e0a35569e3c6534b538f00d4ef87fdb316bd6a4a9a7a272bba47

10 months agoExtend the set of --flags which get cleared/unset when using --with-wasi-sdk.
stephan [Thu, 7 Nov 2024 16:59:15 +0000 (16:59 +0000)] 
Extend the set of --flags which get cleared/unset when using --with-wasi-sdk.

FossilOrigin-Name: 2a2419ef742c9f37c32be04d417337c1fa22503305d2df154fa38b2b69eae943

10 months agoDoc touchups in the line-editing feature check code.
stephan [Thu, 7 Nov 2024 15:23:54 +0000 (15:23 +0000)] 
Doc touchups in the line-editing feature check code.

FossilOrigin-Name: bb5656bdc905947df205432e108ca6724393061a27028e23bf35b4bf48505d4f

10 months agotcl configuration: --with-tcl=prefix is equivalent to passing the --prefix dir to...
stephan [Thu, 7 Nov 2024 15:04:15 +0000 (15:04 +0000)] 
tcl configuration: --with-tcl=prefix is equivalent to passing the --prefix dir to it. If --with-tcl or --enable-tcl are explicitly passed in and tclConfig.sh is not found, fail fatally. When TCL is either explicitly disabled or default search for it fails non-fatally, be more explicit about which components are not available.

FossilOrigin-Name: c5389d39a90047683e80ae9081d5d10aaa95da00dfc8a133b4a1a6949a11620d

10 months agoFurther improvements to the ".mode json" output in the CLI.
drh [Thu, 7 Nov 2024 12:03:53 +0000 (12:03 +0000)] 
Further improvements to the ".mode json" output in the CLI.

FossilOrigin-Name: 6201b5707f8c895028f9c08cb4f83d33a16a91bf04ed3830ac51aa763d6b7205

10 months agoAutosetup doc touchups.
stephan [Thu, 7 Nov 2024 10:07:20 +0000 (10:07 +0000)] 
Autosetup doc touchups.

FossilOrigin-Name: 574515290058ddfaf39a4221fa0f7a99222c4b040dd455348550816b18492c20

10 months agoExtend the list of "truthy" config values to include "true". Related doc updates.
stephan [Thu, 7 Nov 2024 09:36:01 +0000 (09:36 +0000)] 
Extend the list of "truthy" config values to include "true". Related doc updates.

FossilOrigin-Name: 4455718e485a31100ce3eb4ac5aeb7437c667d7994c6d2abfb38ad8bd1976d6e

10 months agoAdd some internal docs to auto.def explaining certain passages.
stephan [Thu, 7 Nov 2024 08:57:38 +0000 (08:57 +0000)] 
Add some internal docs to auto.def explaining certain passages.

FossilOrigin-Name: 4749967e1b85675580eda2e92f4463c022e3ff929390a8f5b59f614f3975e158

10 months agoDocument the purpose of a global auto.def var added in [0d558318172d].
stephan [Thu, 7 Nov 2024 08:29:58 +0000 (08:29 +0000)] 
Document the purpose of a global auto.def var added in [0d558318172d].

FossilOrigin-Name: f5b6604716826b2057e969a8c0d099325b22eac42f1da65ec367671fc6625639

10 months agoWhen --with-linenoise refers to the msteveb flavor and jimsh is the TCL used for...
stephan [Thu, 7 Nov 2024 07:31:25 +0000 (07:31 +0000)] 
When --with-linenoise refers to the msteveb flavor and jimsh is the TCL used for code generation, enable linenoise in jimsh. Remove some dead auto.def code.

FossilOrigin-Name: 0d558318172dddc8d5c5842625ddf09866ae09cac9cf28731be44db86b5e0fb1

10 months agoAdd mention of file-isexec in autosetup/README.md.
stephan [Thu, 7 Nov 2024 06:02:05 +0000 (06:02 +0000)] 
Add mention of file-isexec in autosetup/README.md.

FossilOrigin-Name: f469356749b62b3ce4161b40ed105d60867a366a389efa583fe9607a13426803

10 months agoChange several 'file exists' checks for tclsh to file-isexec because that checks...
stephan [Thu, 7 Nov 2024 06:00:14 +0000 (06:00 +0000)] 
Change several 'file exists' checks for tclsh to file-isexec because that checks for .exe extensions on Windows.

FossilOrigin-Name: 052a1b4d7cb43b7f65028c41e9a7a17b533c834d8f620fbc7bc0adddb1fdb843

10 months agoFor platforms where tclsh is found but tclConfig.sh is not, set HAVE_TCL to 0. We...
stephan [Thu, 7 Nov 2024 05:26:09 +0000 (05:26 +0000)] 
For platforms where tclsh is found but tclConfig.sh is not, set HAVE_TCL to 0. We can't build the TCL components on those. Problem reported in [forum:5106aee3a8|forum post 5106aee3a8].

FossilOrigin-Name: 04d2576b2e516fc5f5ba719d6bb01d25fd3b06b1c2d26acbec32bcdd65e9a01c

10 months agoFix an FTS3 corruption test case that depends on the specific pseudo-random
drh [Wed, 6 Nov 2024 19:19:49 +0000 (19:19 +0000)] 
Fix an FTS3 corruption test case that depends on the specific pseudo-random
byte sequence generated by sqlite3_randomness(), which is different on
big-endian platforms than it is on little-endian platforms.

FossilOrigin-Name: 6216bfcb74273b7893735e265d3f04d1362fa625cd60cebccb866ce7d6c50e01

11 months agoRe-phrase some (#if !SQLITE_CORE) to (#ifndef SQLITE_CORE), as discussed in forum...
stephan [Wed, 6 Nov 2024 12:58:31 +0000 (12:58 +0000)] 
Re-phrase some (#if !SQLITE_CORE) to (#ifndef SQLITE_CORE), as discussed in forum:cea40371c5e34b09 | for post cea40371c5e34b09].

FossilOrigin-Name: 5495b12569c318d5020b4b5a625a392ef8e777b81c0200624fbbc2a6b5eddef9

11 months agoElaborate on how autosetup selects a tclsh to use.
stephan [Wed, 6 Nov 2024 12:13:04 +0000 (12:13 +0000)] 
Elaborate on how autosetup selects a tclsh to use.

FossilOrigin-Name: d3887895a33742fb1fc97235cf897d295b237a9fb5a84031826f9c1018106f18

11 months agoFix typo in the LICENSE.md file.
drh [Wed, 6 Nov 2024 10:09:21 +0000 (10:09 +0000)] 
Fix typo in the LICENSE.md file.

FossilOrigin-Name: 0588cc5c2fad980aa67402f4fe959a499d711ff23903a521af1b1abc4586c802

11 months agoMinor doc tweaks.
stephan [Wed, 6 Nov 2024 08:29:47 +0000 (08:29 +0000)] 
Minor doc tweaks.

FossilOrigin-Name: 2919a61bd4f8cb4f53462d4807cbc04ac5f71dd437cd693538754cf3f17d00cc

11 months agoWhen constructing the auto-reconfigure commands, only quote args which look like...
stephan [Wed, 6 Nov 2024 07:20:20 +0000 (07:20 +0000)] 
When constructing the auto-reconfigure commands, only quote args which look like they need it. Minor doc updates.

FossilOrigin-Name: d4fbd34f7a4b0e6179cb06114d148fbc5d30b8dc8db0b764f4347dd50ff591ba

11 months agoMinor doc tweaks and typo fixes.
stephan [Wed, 6 Nov 2024 06:44:35 +0000 (06:44 +0000)] 
Minor doc tweaks and typo fixes.

FossilOrigin-Name: 406d9122b75990722ab79fdf42d4528d670645d8f778ca0b5a2a35fa1dc106c4

11 months agoSplit the motivation of the makefile var naming convention into its doc own section.
stephan [Wed, 6 Nov 2024 06:06:43 +0000 (06:06 +0000)] 
Split the motivation of the makefile var naming convention into its doc own section.

FossilOrigin-Name: bf42b93cc7a4f8de2308fa4e5a798a62797bc95d95e4b0bd06035c74413fa828

11 months agoAdd a section to autosetup/README.md describing the motivations for the more glaring...
stephan [Wed, 6 Nov 2024 05:54:27 +0000 (05:54 +0000)] 
Add a section to autosetup/README.md describing the motivations for the more glaring design decisions.

FossilOrigin-Name: c0940a822a63bff74585bd37401eca92f74ddf9fe95748d2474039ee9b2bd9b6

11 months agoAdd autosetup/README.md - maintenance-related docs for SQLite developers (e.g. how...
stephan [Wed, 6 Nov 2024 04:38:05 +0000 (04:38 +0000)] 
Add autosetup/README.md - maintenance-related docs for SQLite developers (e.g. how to update autosetup). Start marking up the proj.tcl APIs with autosetup's doc markup so that they appear in the ./configure --reference output.

FossilOrigin-Name: aa6213767f0d7e63c753e33aadb95cbeb8e522c22f2fe1bbfa4df66bea6e3380

11 months agoEnhance the --with-emsdk flag to use a default value of 'auto', meaning to search...
stephan [Wed, 6 Nov 2024 02:59:59 +0000 (02:59 +0000)] 
Enhance the --with-emsdk flag to use a default value of 'auto', meaning to search the environment for it, and to fail fatally if --with-emsdk is explicitly provided but the SDK is not found.

FossilOrigin-Name: 9724b747caa926bca09653ea6ac3c0f7869824c9a476eb81f03e1a6763552da1

11 months agoImprove the ".mode json" output of the CLI so that it encodes U+007f using
drh [Tue, 5 Nov 2024 23:26:31 +0000 (23:26 +0000)] 
Improve the ".mode json" output of the CLI so that it encodes U+007f using
an escape sequence.

FossilOrigin-Name: 8b58cf9bbd3090c60f1ee7468cdeeb0b0fa4560d1e51a5fd0bef43692d10fe04

11 months agoHave the xBestIndex method of the generate_series virtual table ignore contraints...
dan [Tue, 5 Nov 2024 18:25:32 +0000 (18:25 +0000)] 
Have the xBestIndex method of the generate_series virtual table ignore contraints on the "value" column with usable=0.

FossilOrigin-Name: f5113a2ef84831ad2da723fa7e29e0d575e74e10585741ff51db8c2e37332cd2

11 months agoWork around a TCL {list-quoting} quirk when escaped/deferred var derefs are passed...
stephan [Tue, 5 Nov 2024 13:34:30 +0000 (13:34 +0000)] 
Work around a TCL {list-quoting} quirk when escaped/deferred var derefs are passed in as values to the autotools-conventional --XYZdir flags (as seen in a downstream package build script).

FossilOrigin-Name: 6adfca7e85648584740c8a127b95bd46aaad45fa2d162bd44622bb47debbcbcb

11 months agoRemove the --enable-rbu flag from the configure script, per /chat discussion, because...
stephan [Tue, 5 Nov 2024 13:03:58 +0000 (13:03 +0000)] 
Remove the --enable-rbu flag from the configure script, per /chat discussion, because it's a highly niche feature not in active use.

FossilOrigin-Name: 77db0cd736746873d4ed3dbf0e9a43a3e15ab49961fccee20417e01f88de8664

11 months agoEnsure that the one-line running status output from testrunner.tcl does not
drh [Tue, 5 Nov 2024 11:59:45 +0000 (11:59 +0000)] 
Ensure that the one-line running status output from testrunner.tcl does not
exceed the 80-char line width of a standard terminal.

FossilOrigin-Name: 1eae0f9ed3c4530d117a8efc4adaf0b2cc422083f0407830a1a6d2a5b970fa1a

11 months agoauto.def: remove an extraneous global var, some dead tcl/makefile code/comments,...
stephan [Tue, 5 Nov 2024 09:49:53 +0000 (09:49 +0000)] 
auto.def: remove an extraneous global var, some dead tcl/makefile code/comments, and some extraneous output. Rename an internal-use proc. Disable the ext/wasm cleanup in the top-level (dist)clean because the noise from gmake is irritating.

FossilOrigin-Name: ee9eb8b157c93b33a8ac201c31169cdd1d2cf2f21da92f7a6a418a41e5a50b7b

11 months agoEnhance the rpath configure check to honor --exec-prefix=... Remove some debugging...
stephan [Tue, 5 Nov 2024 08:21:47 +0000 (08:21 +0000)] 
Enhance the rpath configure check to honor --exec-prefix=... Remove some debugging code and move other debugging code around.

FossilOrigin-Name: a8c1a82b56412a4277a3c9bf2b256d3bd22bd8aca9096b8d08fcc0bf7d9364cb

11 months agoRoll back [47e50fa84dacf83c] for consistency with the legacy build. sqlite3.pc is...
stephan [Tue, 5 Nov 2024 08:14:27 +0000 (08:14 +0000)] 
Roll back [47e50fa84dacf83c] for consistency with the legacy build. sqlite3.pc is now generated equivalently to prior versions.

FossilOrigin-Name: af79d11e389b4772a401f6c2cbde42de95287addf7077ad4db55d39cc504f9fe

11 months agoAdd the --enable-rbu configure flag and building of the commented-out rbu binary.
stephan [Tue, 5 Nov 2024 07:55:33 +0000 (07:55 +0000)] 
Add the --enable-rbu configure flag and building of the commented-out rbu binary.

FossilOrigin-Name: 6c6fa3adfee6ec2c57dc76461e7c97416b4fad45772ce367d223cc67e66049f6

11 months agoRemove some dead makefile code.
stephan [Tue, 5 Nov 2024 07:29:25 +0000 (07:29 +0000)] 
Remove some dead makefile code.

FossilOrigin-Name: b69ce89d22c4f3a2ba176f2b4b39fd430da4e253a484a1e61ec7beff3c7522a1

11 months agoChange a (#define HAVE_FCHMOD) to (#define HAVE_FCHMOD 1) per user request in [forum...
stephan [Tue, 5 Nov 2024 02:38:32 +0000 (02:38 +0000)] 
Change a (#define HAVE_FCHMOD) to (#define HAVE_FCHMOD 1) per user request in [forum:24cf6020c6|forum post 24cf6020c6]. There's no semantic change for this tree, but this is consistent with how auto-config tools would define it and the empty #define interferes with some downstream code.

FossilOrigin-Name: 9c46d84f3bf2f5876211b498104067d32a4000979fad1345deb1000c23716d75

11 months agosqlite3_stdio.c now uses sqlite3_malloc()/sqlite3_free() instead of malloc()/free...
stephan [Tue, 5 Nov 2024 02:14:23 +0000 (02:14 +0000)] 
sqlite3_stdio.c now uses sqlite3_malloc()/sqlite3_free() instead of malloc()/free(). Reported in [forum:6b6cb3ddc8a89b55|forum post 6b6cb3dd].

FossilOrigin-Name: 1982471da14648594d616233be947e343611e7e3d6be7ae6b20d739e544675ea

11 months agoFix the percentile extension so that works as an independent extension.
drh [Mon, 4 Nov 2024 20:16:30 +0000 (20:16 +0000)] 
Fix the percentile extension so that works as an independent extension.
[forum:/forumpost/ab25469a350e0488|Forum post ab25469a350e0488]

FossilOrigin-Name: 27b829c34463d141125d31b59dd65275b88200e3edb1f8238979e02d0fc3614e

11 months agoFix harmless compiler warnings.
drh [Mon, 4 Nov 2024 19:18:19 +0000 (19:18 +0000)] 
Fix harmless compiler warnings.

FossilOrigin-Name: bc93e17924f732468282c5e7a483811d27af573a47aec8ba806f4fe3c5919893

11 months agoEnsure that the database encoding is detected before the code generator gets
drh [Mon, 4 Nov 2024 19:08:53 +0000 (19:08 +0000)] 
Ensure that the database encoding is detected before the code generator gets
too far down into byte-code generation and execution, but not so early that
it interferes with initialization.
[forum:/forumpost/bc75a4d20b756044|Forum thread bc75a4d20b756044].

FossilOrigin-Name: af7173a10ec6a4ab465207c1ee20393e8b5f06604c0f3b2fdc19e52c2fc013d5

11 months agoAvoid loading the entire record into memory for an sqlite3_preupdate_old() call that...
dan [Mon, 4 Nov 2024 16:59:02 +0000 (16:59 +0000)] 
Avoid loading the entire record into memory for an sqlite3_preupdate_old() call that retrieves an IPK value.

FossilOrigin-Name: 7f4de43733200beeb3ff0a70d51bbc68f5331895698ea95a82741cfd7bb66834

11 months agoFix two mismatched uses of malloc() and sqlite3_free() in sqlite3_stdio.c, as reporte...
stephan [Mon, 4 Nov 2024 13:57:20 +0000 (13:57 +0000)] 
Fix two mismatched uses of malloc() and sqlite3_free() in sqlite3_stdio.c, as reported in [forum:7dd7c70038 | forum post 7dd7c70038].

FossilOrigin-Name: af0a345b3b287f82b54249cfa574ef3ce52305a6452058aac98cd473c361919e

11 months agoFix typo of --libexec ==> --libexecdir, discovered via audit of a downstream build...
stephan [Mon, 4 Nov 2024 12:11:20 +0000 (12:11 +0000)] 
Fix typo of --libexec ==> --libexecdir, discovered via audit of a downstream build script. Unrelated doc touchups.

FossilOrigin-Name: a60e5d76d06ae0568fbc6e068a7012c77778607cd60da92a1b84ff8f33049a93

11 months agoEnsure that the ext/wasm fiddle build undefines certain shell feature flags which...
stephan [Mon, 4 Nov 2024 10:16:15 +0000 (10:16 +0000)] 
Ensure that the ext/wasm fiddle build undefines certain shell feature flags which it cannot use but might be inherited from the top-level makefile.

FossilOrigin-Name: 99bb5d9b68edc3c5439f0776bce74532dd0131894c31dc8227d084e926c4638c

11 months agoWhen installing the shared lib, re-activate the accommodation of legacy-style .so...
stephan [Mon, 4 Nov 2024 08:29:02 +0000 (08:29 +0000)] 
When installing the shared lib, re-activate the accommodation of legacy-style .so links (removed in [80584e165e4]) based on two reports that not having those will cause all clients linked against the legacy naming convention to fail to dynamically link (which would preclude an update of a system-level libsqlite3 package). Set up the infrastructure needed for adding an SONAME to the library but do not yet activate it. See discussion in/around [forum:046133a7da|forum post 046133a7da].

FossilOrigin-Name: 1586eaceb1716fbeafc4af691d0f80206cd5390388b099d4939e6be5d3eb975b

11 months agoMinor internal doc additions.
stephan [Mon, 4 Nov 2024 06:38:44 +0000 (06:38 +0000)] 
Minor internal doc additions.

FossilOrigin-Name: 9edc8582c97f40f546699e6d1fb075773d5476df81b6c3f8900d1f2716549295

11 months agoLatest upstream autosetup to get handling of (==ignoring) autotools' x-includes and...
stephan [Mon, 4 Nov 2024 05:27:21 +0000 (05:27 +0000)] 
Latest upstream autosetup to get handling of (==ignoring) autotools' x-includes and x-libraries flags and stop leakage of some autosetup-init-level vars into auto.def's global scope.

FossilOrigin-Name: 307349bf91df2935efeaeb5617f43c2223aa7523e55034fb532cc4386a29d74c

11 months agoLatest upstream jimsh0.c, which accounts for the problem patched locally by [29b94495...
stephan [Mon, 4 Nov 2024 04:12:02 +0000 (04:12 +0000)] 
Latest upstream jimsh0.c, which accounts for the problem patched locally by [29b944959568].

FossilOrigin-Name: c7a5b7d2dbfd5c44980f7e9d7efc1e8c7882f192b14f534537745d0a0125909f

11 months agoMinor doc correction and proj.tcl-internal API renaming.
stephan [Mon, 4 Nov 2024 03:43:07 +0000 (03:43 +0000)] 
Minor doc correction and proj.tcl-internal API renaming.

FossilOrigin-Name: c8b24c590ef318e687ab76cd1a5d6c8fed84389e3ebbe544aa8b15759324958a

11 months agoMove the .default-CFLAGS handling into a utility function, rename the corresponding...
stephan [Sun, 3 Nov 2024 21:32:24 +0000 (21:32 +0000)] 
Move the .default-CFLAGS handling into a utility function, rename the corresponding file to .env-VAR, and apply that lookup to a couple more places.

FossilOrigin-Name: f01b61f21d105706e78eb1e3e7971e9ccb7a68250f8cda96ce285f0fd6b2f7f2

11 months agoFix a CFLAGS.jimsh typo in Makefile.in. Change default jimsh flags to include -O1...
stephan [Sun, 3 Nov 2024 20:15:38 +0000 (20:15 +0000)] 
Fix a CFLAGS.jimsh typo in Makefile.in. Change default jimsh flags to include -O1, which slows down its build but speeds up its runtime considerably.

FossilOrigin-Name: a912c169152623f261fb5469a49f00aca1d8a273d8f7187744de12a26aede7cf

11 months agoIf any autotools-conventional dir names are explicitly overridden via ./configure...
stephan [Sun, 3 Nov 2024 19:42:41 +0000 (19:42 +0000)] 
If any autotools-conventional dir names are explicitly overridden via ./configure --dirname=X then export those names as-is to the makefile, otherwise derive them from $prefix. This is, at least in part, a compromise to provide package maintainers a way to specify a libdir which will be incorporated into the -rpath link flag (which we can only determine at configure-time).

FossilOrigin-Name: 832abe8a8a347718e47f73a1f9be1fb084a1c28cac6b1c70f6c9a9cabeb0fb53

11 months agoWorkaround for a compiler-specific jimsh compilation error reported in [forum:18e420d...
stephan [Sun, 3 Nov 2024 18:30:45 +0000 (18:30 +0000)] 
Workaround for a compiler-specific jimsh compilation error reported in [forum:18e420d0b1404d63|forum post 18e420d0]. Reported upstream as [https://github.com/msteveb/jimtcl/issues/322|ticket #322].

FossilOrigin-Name: 29b94495956802d0eedcd669e45308c56278e43aab62bd7c3bb7153b47c9d4c0

11 months agoMinor doc updates. Remove two outdated todos.
stephan [Sun, 3 Nov 2024 07:45:56 +0000 (07:45 +0000)] 
Minor doc updates. Remove two outdated todos.

FossilOrigin-Name: ad19237845b7791dd90fa4b3586f39f6ab700462e826baf53d4cde7f7fa06449

11 months agoFix another T.exe typo and remove an outdated TODO.
stephan [Sun, 3 Nov 2024 05:33:45 +0000 (05:33 +0000)] 
Fix another T.exe typo and remove an outdated TODO.

FossilOrigin-Name: 02208e6bfa7b791b958d45ad25eaac3a16d3e9f6ab203b9fc760c67785525395

11 months agoFix T.exe typos in main.mk which break installation on platforms where that value...
stephan [Sun, 3 Nov 2024 01:31:34 +0000 (01:31 +0000)] 
Fix T.exe typos in main.mk which break installation on platforms where that value is not empty. Also some unrelated doc tweaks.

FossilOrigin-Name: ab97ff44e66fd3639adbae4e0cc387fbcd09fbd5cd90ec3df7294c3e7b3a446e

11 months agoAn experiment in hybridizing overriding of autotools-conventional XYZdir vars, the... autosetup-dir-overrides
stephan [Sat, 2 Nov 2024 05:50:22 +0000 (05:50 +0000)] 
An experiment in hybridizing overriding of autotools-conventional XYZdir vars, the goal being to be able to provide both overrriding of them at configure-time and make-time with sensible semantics. Based on notes from [forum:00d12a41f7|forum post 00d12a41f7].

FossilOrigin-Name: cc259bf5f176bf89b6effedfc716d19d2437fc761c20870d1c69205d4bcee12b

11 months agoAdd autotools-compatible overridable dir name vars for the various installation targe...
stephan [Sat, 2 Nov 2024 03:34:04 +0000 (03:34 +0000)] 
Add autotools-compatible overridable dir name vars for the various installation targets, calculated at make-time instead of exported at configure-time for reasons explained at length in the accompanying comments.

FossilOrigin-Name: 24aba7ee58f3048d70ff0c2b2cda26bc04bfb46b3055d25d62ab5ff97b106be2

11 months agoWhen configuring with --with-wasi-sdk, ensure that we use that SDK's 'ar' tool instea...
stephan [Fri, 1 Nov 2024 01:56:27 +0000 (01:56 +0000)] 
When configuring with --with-wasi-sdk, ensure that we use that SDK's 'ar' tool instead of whatever is in the PATH. When pushing/popping the define var scope for the jimsh compatility check, include more defines per consultation with autosetup's creator.

FossilOrigin-Name: 2dcc465a7090811ddbc210673f37b4c3a4439c501874abefd403efe1e98f5b17

11 months agoIn testrunner.tcl, only show the ETC on the status line if it will fit within
drh [Thu, 31 Oct 2024 18:29:55 +0000 (18:29 +0000)] 
In testrunner.tcl, only show the ETC on the status line if it will fit within
the 80-character line limit.

FossilOrigin-Name: 45a3213d23f4691732ba2eb54d440355ce5757aad4cec8eb92f53b4bd7e7f5cd

11 months agoFix the clean-autosetup target in Makefile.in so that it does not fail even
drh [Thu, 31 Oct 2024 17:38:30 +0000 (17:38 +0000)] 
Fix the clean-autosetup target in Makefile.in so that it does not fail even
in cases where gmake is unavailable.

FossilOrigin-Name: 207ca21bd7060a163da60b432f61ffaad8bedb6c0d59f090f9c5addb5b56d82d

11 months agoExtra defenses against UAF when failing to allocate a transient cursor. No
drh [Thu, 31 Oct 2024 17:23:40 +0000 (17:23 +0000)] 
Extra defenses against UAF when failing to allocate a transient cursor.  No
known path to a UAF currently exists.  This change just helps with the static
analysis to prove it.

FossilOrigin-Name: bae05811116dae0d05bcc001655416d0316ca1c16cbde2bd49f691c832261b89

11 months agoWhen building a shared library on Mac, one must specify the original *.o
drh [Thu, 31 Oct 2024 11:53:18 +0000 (11:53 +0000)] 
When building a shared library on Mac, one must specify the original *.o
files that go into that library.  It does not work to specify a prior shared
library containing a subset of the files to be included.

FossilOrigin-Name: 5adc7d5dabbd9e2b18b3e13ab4e6463bfa8b5c1d604c94c8e67e6b812873ed30

11 months agoOmit unnecessary bold text in ./configure output.
drh [Thu, 31 Oct 2024 11:21:35 +0000 (11:21 +0000)] 
Omit unnecessary bold text in ./configure output.

FossilOrigin-Name: d1368dc12b05e9828cb86a608771b666914c0e027ac4c42dea0042b0345d8b22

11 months agoImproved differentiation between antirez and msteveb linenoise.
drh [Thu, 31 Oct 2024 11:19:22 +0000 (11:19 +0000)] 
Improved differentiation between antirez and msteveb linenoise.

FossilOrigin-Name: cfb4bfcf1498b3740d210c24a71be343e8e0f262f3d9bddd45a673011307068c

11 months agoAdd a missing 'close' call to proj-file-content-list.
stephan [Thu, 31 Oct 2024 09:25:58 +0000 (09:25 +0000)] 
Add a missing 'close' call to proj-file-content-list.

FossilOrigin-Name: 005702f334e7c51d83fc1b142ab90fa6867c4c2e75c8a3d2a17e07669b47fb23

11 months agoAdd -trim flag to proj-file-content.
stephan [Thu, 31 Oct 2024 08:12:48 +0000 (08:12 +0000)] 
Add -trim flag to proj-file-content.

FossilOrigin-Name: babf66f5c7074c24ca8ae898cd850964e99cef41fd1395a0d6c582cab75ae3bf

11 months agoRemove some proj-assert checks which are not valid on OpenBSD. Ensure that queued...
stephan [Thu, 31 Oct 2024 08:03:35 +0000 (08:03 +0000)] 
Remove some proj-assert checks which are not valid on OpenBSD. Ensure that queued up notices about TCL warnings are displayed before leaving sqlite-check-tcl.

FossilOrigin-Name: 3447308f3f66046ffedd502161757211bef0384d7a735ff675c06c04fbc22655

11 months agoWhen reading in .default-CFLAGS, trim it.
stephan [Thu, 31 Oct 2024 07:30:53 +0000 (07:30 +0000)] 
When reading in .default-CFLAGS, trim it.

FossilOrigin-Name: a62a5171ace53b79feda93701f90d6d6f88eb5542bd35ac76f962745c58588b0

11 months agoAdd the .POSIX special target to the main makefiles to hint to the make impl that...
stephan [Thu, 31 Oct 2024 07:20:22 +0000 (07:20 +0000)] 
Add the .POSIX special target to the main makefiles to hint to the make impl that it should behave POSIXly-correct. Fix the default file extension for static libs in main.mk.

FossilOrigin-Name: 2c615d3a3206536f12c0723b8997bda9ab61f95a468f77697856213b46c0135e

11 months agoAdd more deps to T.tcl.env.sh so that it gets rebuilt if configure is run with a...
stephan [Thu, 31 Oct 2024 07:01:31 +0000 (07:01 +0000)] 
Add more deps to T.tcl.env.sh so that it gets rebuilt if configure is run with a different --with-tcl value. Remove all references to the superfluous XYZdir makefile vars conventionally set by the autotools (they're just noise in this build).

FossilOrigin-Name: 831665101e9c62cf49c173cb11705033eb9135a6a6965718285d81113ee5ba4c

11 months agoIf a file named .default-CFLAGS exists in the build dir, use its contents as the...
stephan [Thu, 31 Oct 2024 06:52:09 +0000 (06:52 +0000)] 
If a file named .default-CFLAGS exists in the build dir, use its contents as the default value of the CFLAGS unless it's overridden by being passed in or in the environment.

FossilOrigin-Name: 731d333c224e70190dadd214de1970ea541a3d716d1d7ff2c0ef6c63b8be9b13

11 months agoWhen --with-wasi-sdk is active, temporarily swap CC and CC_FOR_BUILD for purposes...
stephan [Thu, 31 Oct 2024 06:38:30 +0000 (06:38 +0000)] 
When --with-wasi-sdk is active, temporarily swap CC and CC_FOR_BUILD for purposes of looking for APIs required by B.cc.

FossilOrigin-Name: 435f2ee818d7181551c6860b6bc4db97f82d76b58fd82765a6cf49e2d02ff18c

11 months agoChange default CFLAGS to {-g -O2} to match the legacy build.
stephan [Thu, 31 Oct 2024 05:47:56 +0000 (05:47 +0000)] 
Change default CFLAGS to {-g -O2} to match the legacy build.

FossilOrigin-Name: 511774942903277b3d38f28336599667df20f94a8de79746b6c236b827b7ffc6

11 months agoFix a corner case in automatic TCLLIBDIR detection: if the $auto_path list is not...
stephan [Thu, 31 Oct 2024 01:51:00 +0000 (01:51 +0000)] 
Fix a corner case in automatic TCLLIBDIR detection: if the $auto_path list is not empty but none of them refer to an existing dir, the last dir in that list would have been accepted as the TCLLIBDIR. It will now error out instead.

FossilOrigin-Name: 1d2ecae1304d9f677bd50eaae6bd9cb25cb75c611d88a30839f5287a7a97d7d5

11 months agoReimplement how the TCL-related environment vars are made available to make recipes...
stephan [Thu, 31 Oct 2024 00:56:05 +0000 (00:56 +0000)] 
Reimplement how the TCL-related environment vars are made available to make recipes which need them, reducing the console noise and consolidating it with the has_tclconfig flag file. It now uses a generated shell snippet which it sources, rather than inlining all of that shell code.

FossilOrigin-Name: 0cdfd142e11824d41ebb6c6e508933e04ac6f6dc0dc375cc5b0032f56eb7f423

11 months agoMinor cleanups to the linenoise flavor detection test.
stephan [Wed, 30 Oct 2024 23:10:38 +0000 (23:10 +0000)] 
Minor cleanups to the linenoise flavor detection test.

FossilOrigin-Name: 3be32de1626f940e256076df76388e7633de57f340aac937f6a48d3585b96ca4

11 months agoMove the linenoise flavor check from auto.def to proj.tcl for re-use in downstream...
stephan [Wed, 30 Oct 2024 22:49:40 +0000 (22:49 +0000)] 
Move the linenoise flavor check from auto.def to proj.tcl for re-use in downstream projects.

FossilOrigin-Name: 84e503dc1e3672fe7787fb747ed70ca14ad181a743925bd1658c40baaa8a27cd

11 months agoExpand [c0048e4482e9] to determine the linenoise API flavor via a compile test rather...
stephan [Wed, 30 Oct 2024 22:41:12 +0000 (22:41 +0000)] 
Expand [c0048e4482e9] to determine the linenoise API flavor via a compile test rather than guessing based on the filename.

FossilOrigin-Name: dbf0079190d98ec1760cc3b55aa0116c9f85f215586bd864c5d6cede5a034fa5

11 months agoproj.tcl/main.mk doc updates. No functional changes.
stephan [Wed, 30 Oct 2024 22:09:49 +0000 (22:09 +0000)] 
proj.tcl/main.mk doc updates. No functional changes.

FossilOrigin-Name: e06574c6b4b666ef26f0fa06e6d60e5d896caaf1b1ca27f5369f5b7650d12b9b

11 months agoAdjust Makefile.in to honor the CC environment variable. Add the
drh [Wed, 30 Oct 2024 19:13:07 +0000 (19:13 +0000)] 
Adjust Makefile.in to honor the CC environment variable.  Add the
"show-variables" target to main.mk, for debugging.

FossilOrigin-Name: e5f1a01f9f574a64e464c66c1b88f76aeea83f0bbe697c53bb63d3592d93e55e

11 months agoFix the CLI so that it can use either the canonical Antirez linenoise
drh [Wed, 30 Oct 2024 14:03:56 +0000 (14:03 +0000)] 
Fix the CLI so that it can use either the canonical Antirez linenoise
(with HAVE_LINENOISE=1) or Steve Bennett's enhanced linenoise that works
on the Win32 console as well as on Unix (with HAVE_LINENOISE=2).  The
./configure script detects which one to use and sets HAVE_LINENOISE accordingly.

FossilOrigin-Name: c0048e4482e9cb9662637899922af9609e7c8fb002a37b71e6181074df7a0dd1

11 months agoClean up and add docs to the TCL vetting steps. Make warning and error messages bold...
stephan [Wed, 30 Oct 2024 05:07:18 +0000 (05:07 +0000)] 
Clean up and add docs to the TCL vetting steps. Make warning and error messages bold if stdout isatty.

FossilOrigin-Name: 47157dcf9ec6b52b37578bcd5dc5ace8c36e62c8ca2625c94252c15db784b115

11 months agoRemove accommodation of the legacy-named shared libraries from the installation rules...
stephan [Wed, 30 Oct 2024 04:07:16 +0000 (04:07 +0000)] 
Remove accommodation of the legacy-named shared libraries from the installation rules, per discussion. Rename install-includes to install-headers. Quote installation target dir names "just in case".

FossilOrigin-Name: 80584e165e4652e76cc3188befcee814f168298486743940bcf46696043686a0

11 months agoGeneric makefile cleanups.
stephan [Wed, 30 Oct 2024 03:51:21 +0000 (03:51 +0000)] 
Generic makefile cleanups.

FossilOrigin-Name: 6f86ff2e8c190e83c15dab532660a2a0c359621d1fcce4e6852e56ac6b7f71e3

11 months agoRe-enable exporting of TCLLIBDIR at configure-time so that clients can override it...
stephan [Wed, 30 Oct 2024 02:06:41 +0000 (02:06 +0000)] 
Re-enable exporting of TCLLIBDIR at configure-time so that clients can override it once there rather than having to override it on an arbitrary number of make invocations (which they can still do, but now need not). Based on feedback in [forum:38f6988e57b738e5|forum post 38f6988e57b].

FossilOrigin-Name: ee6e15f12ee55fd13cf31317d876e6ba03a7ae1fb9056f0013106948d81b31d9

11 months agoWhen calculating the TCLLIBDIR in main.mk, allow the user to override it using an...
stephan [Wed, 30 Oct 2024 01:47:48 +0000 (01:47 +0000)] 
When calculating the TCLLIBDIR in main.mk, allow the user to override it using an environment var or make var assignment, per feedback in [forum:38f6988e57b738e5|forum post 38f6988e57b].

FossilOrigin-Name: 838633182c3f9f9c4c1a23384ed025777c25427d9c4c1f1a47f1630cf4038ca5

11 months agoSplit the core-most CFLAGS, which should not be overridable (like -fPIC), into CFLAGS...
stephan [Tue, 29 Oct 2024 23:42:24 +0000 (23:42 +0000)] 
Split the core-most CFLAGS, which should not be overridable (like -fPIC), into CFLAGS.core, so that went CFLAGS=... is passed on in a make invocation the -fPIC flag is not lost (as reported in [forum:39f8c54391d38c72 | forum post 39f8c543]).

FossilOrigin-Name: f5899d22c6c2e65383d7e1ca43da740d3a56fb87daa204a642ce1dc963a98de2

11 months agoTry to detect if --with-readline-cflags is passed a non-cflags value, e.g. readline...
stephan [Tue, 29 Oct 2024 23:19:29 +0000 (23:19 +0000)] 
Try to detect if --with-readline-cflags is passed a non-cflags value, e.g. readline/readline.h, and fail loudly if it is. The legacy configure accepted that formulation but silently did nothing useful with it and that formulation now causes the auto-completion test to fail, as reported in [forum:f13b8e8f38402367 | forum post f13b8e8f38402367].

FossilOrigin-Name: c97f34d064c1fc1e6860761a417aaab2a79bd3871bcd1dad1d0d3b6f4b692a1e

11 months agoGeneral auto.def cleanups and docs.
stephan [Tue, 29 Oct 2024 20:27:36 +0000 (20:27 +0000)] 
General auto.def cleanups and docs.

FossilOrigin-Name: e2f41c2540d8ff7686bfe22336598896de9083d139fc5a291c0f19896b9c1d20

11 months agoReformulate the readline completion signature compatibility test so that -Wunused...
stephan [Tue, 29 Oct 2024 19:03:22 +0000 (19:03 +0000)] 
Reformulate the readline completion signature compatibility test so that -Wunused-variable in the CFLAGS does not cause it to fail. Problem reported via email.

FossilOrigin-Name: 3891669a3fdd71f7095cf464f6e4e2b870d6c23e79b9f796b1125b2040f05519

11 months agoRename an almost-name-colliding auto.def function. Fix a refactoring-induced change...
stephan [Tue, 29 Oct 2024 18:50:25 +0000 (18:50 +0000)] 
Rename an almost-name-colliding auto.def function. Fix a refactoring-induced change which broke implicit lookup of tclConfig.sh. Add msg-debug proc to enable toggling of developer-level debug messages via a configure argument.

FossilOrigin-Name: 265ba15df1e64a50722118ac6d84667b0abd35fe8f4db28facf7788c50ac6cde

11 months agoRemove some extraneous configure output.
stephan [Tue, 29 Oct 2024 17:55:12 +0000 (17:55 +0000)] 
Remove some extraneous configure output.

FossilOrigin-Name: 2234569edb15bb8b229e1b785aea08dd515798419ffe39c50f8399ce984258ac

11 months agoFix a typo in LICENSE.md
drh [Tue, 29 Oct 2024 14:22:12 +0000 (14:22 +0000)] 
Fix a typo in LICENSE.md

FossilOrigin-Name: decc60034849c232a05c8eb93ff0c6a5d6a48336d960771ed096d89633a9d0e2

11 months agoWhen either --readline or --editline are explicitly provided but the corresponding...
stephan [Tue, 29 Oct 2024 08:42:06 +0000 (08:42 +0000)] 
When either --readline or --editline are explicitly provided but the corresponding feature is not found, fail fatally. If not explicitly requested, simply disable that feature if the lib is not found.

FossilOrigin-Name: 1d24a29c6ef05185950ba5c45f2a60a92f12a8e5c57026b599f716c9f2f6cf84

11 months agoMinor --help text tweak.
stephan [Tue, 29 Oct 2024 08:18:45 +0000 (08:18 +0000)] 
Minor --help text tweak.

FossilOrigin-Name: 80ac10ed8d0ee9eaf83a6c43608098c631f5f9535c8b125da5bfe2d6a4d23bec

11 months agoAdd proj-assert proc and add a couple of asserts to the editline/readline checks.
stephan [Tue, 29 Oct 2024 08:14:34 +0000 (08:14 +0000)] 
Add proj-assert proc and add a couple of asserts to the editline/readline checks.

FossilOrigin-Name: db9870caa806c902cae033a96fec48db1b2d78b96b124e568479c5326e006c9b