Skip to content
pi-c Artifact [c93ff123f0]
Login

Artifact [c93ff123f0]

Artifact c93ff123f08dc285d72de685e7a23eaceecb2ae166968d58fb336d5c2d9ab9f7:


# Vendoring

pic's dependencies are vendored and compiled in, each pinned file by file (`vendor/*/SHA256SUMS`):
SQLite with libfossil, zlib and BearSSL. The binary links only libc, libm and pthread.

## libfossil and SQLite

Re-vendor on every libfossil cut:

```sh
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](filc.md), 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, from `tools/ca-bundle.sh`.
- `src/model_catalog.inc`: the built-in model catalog snapshot, from `tools/model-catalog.sh`.