From: stephan Date: Fri, 29 Aug 2025 11:09:20 +0000 (+0000) Subject: Fix the mksqlite3h.tcl SQLITE_SCM_... changes to work from out-of-tree builds. Proble... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a00b9b99bad2dc1a5e29bc843443c85104cabb23;p=thirdparty%2Fsqlite.git Fix the mksqlite3h.tcl SQLITE_SCM_... changes to work from out-of-tree builds. Problem reported in [forum:812f8d6ff4|forum post 812f8d6ff4]. FossilOrigin-Name: 127f0ab16370fe02b4456669bf60e45ce8c96c4e24b2db3080eaf376d77e0df8 --- diff --git a/manifest b/manifest index 30e92a945d..65fa2c0586 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Remove\ssome\scommented-out\sdebugging\slines\sand\sfix\sa\sdoc\stypo.\sNo\scode\schanges. -D 2025-08-28T17:10:44.990 +C Fix\sthe\smksqlite3h.tcl\sSQLITE_SCM_...\schanges\sto\swork\sfrom\sout-of-tree\sbuilds.\sProblem\sreported\sin\s[forum:812f8d6ff4|forum\spost\s812f8d6ff4]. +D 2025-08-29T11:09:20.468 F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea @@ -2127,7 +2127,7 @@ F tool/mkshellc.tcl bab0a72a68384181a5706712dfdf6815f6526446d4e8aacace2de5e80cda F tool/mksourceid.c 36aa8020014aed0836fd13c51d6dc9219b0df1761d6b5f58ff5b616211b079b9 F tool/mksqlite3c-noext.tcl 351c55256213154cabb051a3c870ef9f4487de905015141ae50dc7578a901b84 F tool/mksqlite3c.tcl f11b63445c4840509248bd4aa151a81aea25d5415fef71943c8d436eba4f3b3c -F tool/mksqlite3h.tcl 60a6627bb55047c128ca9e656a42484f8ac242b5c1641c4ba467db04cf3208f8 +F tool/mksqlite3h.tcl 33e06bb4a7022b5e9777b8b7c37f95e7d7836b52b6c25365e130f02a92f4d886 F tool/mksqlite3internalh.tcl 46ef6ed6ccd3c36e23051109dd25085d8edef3887635cea25afa81c4adf4d4db F tool/mksrczip.tcl 81efd9974dbb36005383f2cd655520057a2ae5aa85ac2441a80c7c28f803ac52 F tool/mktoolzip.tcl c9f388b2b0751982aef29a0c1d80f7959dbe38065ebb4421c39844e92622b086 @@ -2171,8 +2171,9 @@ F tool/version-info.c 3b36468a90faf1bbd59c65fd0eb66522d9f941eedd364fabccd7227350 F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7 F tool/warnings.sh 1ad0169b022b280bcaaf94a7fa231591be96b514230ab5c98fbf15cd7df842dd F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f -P db6b6240ad465f865dd2ca8fa0cdfba8b5315c45041b91b76efade6427c213e1 -R 30f05b801af105c8b7fd4203003dd3e7 +P af32cb3e30ee527a89768b98d8646e2b25d3fb642e61e805187bb3e4613b0960 +Q +db6b6240ad465f865dd2ca8fa0cdfba8b5315c45041b91b76efade6427c213e1 +R 6d95926bb311c1c2ec82766b3b32321e U stephan -Z 67b72ec39ef69c16fffae7d94305af3e +Z 3f3f7771c0985977c1701acee107ed7f # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.tags b/manifest.tags new file mode 100644 index 0000000000..bec971799f --- /dev/null +++ b/manifest.tags @@ -0,0 +1,2 @@ +branch trunk +tag trunk diff --git a/manifest.uuid b/manifest.uuid index 0c167a4085..23d060f427 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -af32cb3e30ee527a89768b98d8646e2b25d3fb642e61e805187bb3e4613b0960 +127f0ab16370fe02b4456669bf60e45ce8c96c4e24b2db3080eaf376d77e0df8 diff --git a/tool/mksqlite3h.tcl b/tool/mksqlite3h.tcl index 48d4c2248e..5d4ccf8057 100644 --- a/tool/mksqlite3h.tcl +++ b/tool/mksqlite3h.tcl @@ -98,10 +98,11 @@ if {![file exists $mksourceid] && [file exists ${mksourceid}.exe]} { exec $mksourceid manifest > $tmpfile set zSourceId [file-content $tmpfile] file delete -force $tmpfile +cd $PWD # Collect SQLITE_SCM_TAGS and SQLITE_SCM_DATETIME -set zVerTime [lindex [lindex [split [file-content manifest] "\n"] 1] 1]Z; # D-card -if {![file exists manifest.tags]} { +set zVerTime [lindex [lindex [split [file-content $TOP/manifest] "\n"] 1] 1]Z; # D-card +if {![file exists $TOP/manifest.tags]} { puts stderr "WARNING: building sqlite3.h without manifest.tags, which is generated by the SCM." puts stderr "This means that we cannot record the tag/branch info. We will continue with " puts stderr "a placeholder value. To remedy this, run the following command:\n" @@ -111,7 +112,7 @@ if {![file exists manifest.tags]} { set zTags "unknown" } else { # Read the list of branch/tags from manifest.tags - set content [file-content manifest.tags]; + set content [file-content $TOP/manifest.tags]; set zTags {} foreach {x tag} [lassign $content - zBranch] { if {$tag eq $zBranch} continue @@ -119,8 +120,6 @@ if {![file exists manifest.tags]} { } } -cd $PWD - # Set up patterns for recognizing API declarations. # set varpattern {^[a-zA-Z][a-zA-Z_0-9 *]+sqlite3_[_a-zA-Z0-9]+(\[|;| =)}