pic's dependencies are vendored and compiled in, each pinned file by file (vendor/*/SHA256SUMS):
SQLite with libfossil, zlib, BearSSL, Nayuki's QR Code generator (vendor/qrcodegen, release
v1.8.0, for /remote-control) and Bellard's QuickJS (vendor/quickjs, release 2026-06-04, for the
codemode tool). Each ORIGIN says where its files came from; they are replaced, never edited. The
binary links only libc, libm and pthread.
QuickJS
The engine's files of a release tarball from bellard.org/quickjs, and nothing of quickjs-libc.c,
qjs.c or qjsc.c: a script gets no files, network, timers or OS calls. To update, unpack the new
release, copy the files ORIGIN lists over vendor/quickjs, rewrite ORIGIN (release, tarball and
its SHA-256) and SHA256SUMS, then run make test-pic and Fil-C. The Makefile builds it
as its own Makefile does, with -fwrapv, _GNU_SOURCE and CONFIG_VERSION from VERSION,
warnings off; tools/amalgamation.sh writes the two defines into the bundle's copies, and the
bundle's line carries -fwrapv. It adds about 950 KB to the release binary. It runs only in the
codemode worker, an exec of pic itself, never in the process that holds the journal
(codemode).
Under Fil-C (0.687) the release as vendored stops in JS_NewContext: QuickJS keeps a
context pointer and a 2-bit id in one integer (realm_and_id, the lazily made properties), and
Fil-C refuses to read through the pointer made back from it. musl (zig cc, static, aarch64) builds
and runs it unchanged.
libfossil and SQLite
Re-vendor on every libfossil cut:
sh tools/vendor-libfossil.sh [CUT_DIR] # default ~/libfossil-builds/current
It copies the amalgamations, SQLite's shell.c and the license into vendor/libfossil, refuses a cut
whose shell.c and sqlite3.c come from different SQLite check-ins, rewrites SHA256SUMS and the first
line of README.md, and prints what changed. It does not commit: run make test-pic and
Fil-C, then land the branch.
The tests use pic's own build/pic/sqlite3, built from the vendored shell.c, never the host's.
Other generated sources
src/ca_bundle.inc: the built-in CA roots, fromtools/ca-bundle.sh.src/model_catalog.inc: the built-in model catalog snapshot, fromtools/model-catalog.sh.