Drop the on-device GCC suite and Janet runtime, keep Yabasic FFI intact
- Remove gcc, g++, musl-dev, make, janet, janet-dev and jpm from scripts/rootfs-packages.txt and add them to the prune denylist; 14 packages and 143.86 MiB disappear, with no runtime callers in the overlay. - Verify the Yabasic chain by running the real armv7 binaries under qemu-arm in a chroot of the rebuilt rootfs: yabasic 2.92.1, basic print, import neonet (libffi -> libcurl.so.4) and import neoui (libffi -> libneoui.so) all work. - Guard yabasic/yabasic-doc as critical, forbid compiler/Janet packages, and check the NeoUI/NeoNet FFI artifacts in check-rebuild.sh. - Update README.md, MANUAL.md, AGENTS.md and SDK.md; replace the on-device compile examples with cross-compilation guidance and add SDK.md section 7, an inventory of paramount versus removable scripting runtimes. - Rebuild images/bananarchy-nokia-argon.img (1.66 GiB, down from 1.84 GiB) and confirm via debugfs that the compiler/Janet binaries are gone while yabasic, libneoui.so, neoui.yab, neonet.yab and libcurl are present.
This commit is contained in:
1 parent
dc2b6f6364
commit
2da4c86923
8 files changed
+96
-17
No files matched your search
@@ -60,5 +60,6 @@ All cross-compilation scripts run inside rootless Docker (`alpine:3.24` `armv7`
|
||||
- **Artifact sources**: `prebuilt/` is the single source of truth for compiled artifacts and `scripts/rootfs-packages.txt` for the `armv7` package set. Never edit `overlay/rootfs/` copies of binaries by hand; run `./scripts/sync-prebuilt-overlay.sh` after changing `prebuilt/`.
|
||||
- **Package hygiene**: keep `scripts/rootfs-packages.txt` free of Rust-based top-level packages (use C `sudo`, never `sudo-rs`) and Wayland-purpose packages; `libwpe` and the `wayland-libs-*` shared libraries stay because GTK3/WebKitGTK link them directly, but no Wayland compositor, backend, or viewer is shipped. `scripts/check-rebuild.sh` enforces this.
|
||||
- **Image residue**: `rebuild-image.sh` strips `/var/cache/apk`, all `apk.log*` files, and unused gettext locale trees before `mke2fs` and aborts the build if any apk cache/log remains; never add an `apk` call after that guard.
|
||||
- **No on-device compiler**: `scripts/rootfs-packages.txt` ships no `gcc`/`g++`/`musl-dev`/`make` and no Janet runtime (`janet`, `janet-dev`, `jpm`); cross-compile native code with `scripts/build-*.sh`. On-device development uses the Yabasic FFI SDK (`neoui.yab` / `neonet.yab`), which requires `yabasic`, `libffi`, `libneoui.so`, and `libcurl.so.4` — never remove those. `scripts/check-rebuild.sh` guards both sides.
|
||||
- **Local agent config**: `.bantam.cfg` is a local, gitignored credential file. Never read, edit, commit, or unignore it; `scripts/check-rebuild.sh` verifies that its ignore rule stays in place.
|
||||
- **Sentence case**: always use sentence case in subheadings and list items across all documentation files (`README.md`, `MANUAL.md`, `SDK.md`, `CHANGELOG.md`, `AGENTS.md`).
|
||||
Reference in new issue
Block a user