Remove the remaining optional scripting runtimes, pin the core tools
- Drop perl, perl-io-socket-ssl, tcl-lib, tcl-tls, sqlite-tcl, lua5.4, lua5.4-dev, lua5.5, lua5.5-dev and sqlite (CLI) from the package set and add them to the prune denylist: 13 packages / 49.45 MiB including dependents. sqlite-libs, tcl, and all paramount runtimes stay. - Promote curl to an explicit world entry and pin curl, bc, ed, rlwrap, mandoc, nano, less and frotz as core tools in check-rebuild.sh. - Remove the lua/luac symlink creation and the lua5.5 critical-binary check from the build scripts; apply-bananarchy-overlay.sh deletes stale links. - Drop four legacy pmbootstrap-era so: world constraints (@ entries in the prune list); so:libperl.so was pinning perl and blocking its removal. - Update README.md, MANUAL.md, AGENTS.md, SDK.md section 7 and CHANGELOG.md. - Rebuild images/bananarchy-nokia-argon.img (1.59 GiB, down from 1.66 GiB) and verify with qemu-arm that yabasic, neoui.yab, neonet.yab, curl, bc and ed still work while perl, lua, sqlite3, gcc and janet are gone.
This commit is contained in:
1 parent
2da4c86923
commit
8078f211e5
12 files changed
+81
-39
No files matched your search
@@ -679,9 +679,10 @@ r = neonet_cleanup()
|
||||
## 7. On-device scripting runtime inventory
|
||||
|
||||
Bananarchy no longer ships an on-device compiler (`gcc`, `g++`, `musl-dev`,
|
||||
`make`) or the Janet runtime (`janet`, `janet-dev`, `jpm`). Native code is
|
||||
cross-compiled with `scripts/build-*.sh`; on-device development goes through
|
||||
the Yabasic FFI SDK in sections 5 and 6.
|
||||
`make`), the Janet runtime (`janet`, `janet-dev`, `jpm`), Perl, Lua, the
|
||||
optional Tcl extensions, or the `sqlite3` CLI. Native code is cross-compiled
|
||||
with `scripts/build-*.sh`; on-device development goes through the Yabasic FFI
|
||||
SDK in sections 5 and 6. The core tools in section 7.3 are pinned.
|
||||
|
||||
### 7.1 Absolutely paramount (hard runtime dependencies)
|
||||
|
||||
@@ -697,17 +698,23 @@ the Yabasic FFI SDK in sections 5 and 6.
|
||||
| `gojq` | Hard dep of `postmarketos-base-ui-networkmanager`. |
|
||||
| `quickjs` | Hard dep of the `yt-dlp-ejs` chain pulled in by `sxmo-utils-common`. |
|
||||
|
||||
### 7.2 Removable without on-device regressions
|
||||
### 7.2 Removed in the lean build
|
||||
|
||||
| Packages | Approx. size | Notes |
|
||||
| --- | --- | --- |
|
||||
| `perl`, `perl-io-socket-ssl` | 31.8 MiB | `git` itself does not depend on Perl; only the optional `git svn` / `git send-email` helpers (`git-perl`, `perl-git`) would go. No overlay script invokes Perl. |
|
||||
| `tcl-lib`, `tcl-tls`, `sqlite-tcl` | 12.1 MiB | Optional Tcl extensions with no reverse dependencies and no usage; `tcl` itself must stay for `expect`. |
|
||||
| `lua5.4`, `lua5.4-dev`, `lua5.5`, `lua5.5-dev` | 3.0 MiB | No runtime callers; `mpv` uses `luajit`, not these. Removing them also requires dropping the `lua`/`luac` symlinks in `bootstrap-rootfs-container.sh` / `rebuild-image.sh` and the `lua5.5` critical-binary check. |
|
||||
| `sqlite` (CLI) | 1.3 MiB | `sqlite-libs` stays (hard dep of WebKitGTK and Python); only the interactive CLI is unused. |
|
||||
| `bc`, `ed`, `rlwrap` | 0.3 MiB | Interactive conveniences with no runtime callers. |
|
||||
| `frotz`, `mandoc`, `nano`, `less` | small | Documented user-facing tools, not runtimes; removable only with matching documentation changes. |
|
||||
| `perl`, `perl-io-socket-ssl` | 31.8 MiB | `git` itself does not depend on Perl; only the optional `git svn` / `git send-email` helpers (`git-perl`, `perl-git`) went away. No overlay script invokes Perl. |
|
||||
| `tcl-lib`, `tcl-tls`, `sqlite-tcl` | 12.1 MiB | Optional Tcl extensions with no reverse dependencies; `tcl` itself stays because `expect` (a hard dep of `sxmo-utils-common`) needs `libtcl8.6.so`. |
|
||||
| `lua5.4`, `lua5.4-dev`, `lua5.5`, `lua5.5-dev` | 3.0 MiB | No runtime callers; `mpv` uses `luajit`. The `lua` / `luac` symlinks and the `lua5.5` critical-binary check were removed from the build scripts. |
|
||||
| `sqlite` (CLI) | 1.3 MiB | `sqlite-libs` stays as a hard dep of WebKitGTK, Python, `libsoup3`, and `nss`. |
|
||||
|
||||
These are recommendations, not applied changes: the current package set still
|
||||
contains them so that the documented on-device scripting environment stays
|
||||
intact.
|
||||
Together with their dependents (`perl-mozilla-ca`, `perl-net-ssleay`,
|
||||
`lua5.5-libs`, and the install-if `git-perl` / `perl-git` helpers) this freed
|
||||
49.45 MiB across 13 packages.
|
||||
|
||||
### 7.3 Deliberately kept core tools
|
||||
|
||||
`curl`, `bc`, `ed`, `rlwrap`, `mandoc`, `nano`, `less`, and `frotz` are pinned in
|
||||
`scripts/rootfs-packages.txt` and asserted by `scripts/check-rebuild.sh`.
|
||||
`curl` was promoted from a transitive dependency of `sxmo-utils` to an explicit
|
||||
world entry so it cannot disappear if that dependency changes. `frotz` remains
|
||||
solely as the interactive-fiction game engine.
|
||||
Reference in new issue
Block a user