commit d6aa33f29ebcb155d5ac6e7c4ca944a3017d5140
parent 25b322c5659d3f7722a2b3c368abf2e9d7dc8506
Author: phoebos <ben@bvnf.space>
Date: Sat, 4 May 2024 23:35:45 +0100
more notes
Diffstat:
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/misc/notes.html b/misc/notes.html
@@ -18,6 +18,32 @@
<p>
<ul>
<li><code>pounce</code> should be signalled with <code>SIGUSR1</code> when you generate new TLS certificates, so that they are reloaded.</li>
+ <li>building <code>neomutt</code> with unbundled deps:</li>
+ <p>
+ cmake.deps/CMakeLists.txt has the URLs and hashes to download.
+ DESTDIR must not be set for build step because deps are installed to .deps/usr during build, and need to be used from there
+ </p>
+ <li>Static Tcl</li>
+ <p>
+ For the sake of use in CGI with sqlite3.
+ Download the Tcl sources:
+ <pre><code>curl -L https://downloads.sourceforge.net/sourceforge/tcl/tcl8.6.13-src.tar.gz | tar xz
+cd tcl*/unix
+./configure --disable-shared
+make</code></pre>
+ </p>
+ <p>
+ edit <code>#include "tcl.h"</code> to <code><tcl8.6/tcl.h></code>.<br/>
+ you want tclAppInit.c, libtcl*.a, pkgs/sqlite*/sqlite*.o <- <code>ar -rcs</code> this into an .a<br/>
+ edit Tcl_AppInit in tclAppInit.c to call Sqlite3_Init and add that function prototype:<br/>
+ <code>int Sqlite3_Init(Tcl_Interp *interp);</code>
+ </p>
+ <p>
+ compile:
+ <pre><code>cc -static tclAppInit.c libtcl*.a libsqlite*.a -I/usr/local/include -lz -lm -lpthread</code></pre>
+
+ when running, set the env TCL_LIBRARY to the directory containing init.tcl. If this is not loaded, sqlite3 will not be loaded.
+ </p>
</ul>
</p>
</body>