Update Bantam to upstream 0cd1a67 and rebuild the nokia-argon image
- Cross-compile bantam-cpp master (0cd1a67, "Send stable x-opencode-session header based on project_id") for armv7 and refresh prebuilt/, overlay/rootfs/, and the target rootfs; the new binary carries the x-opencode-session header. - Rebuild images/bananarchy-nokia-argon.img with the updated agent (1.84 GiB, down from 2.01 GiB) and verify the binary inside the ext4 image by hash. - Fix a prune regression seen in the rebuild log: apk install_if re-adds imv-wayland, gstreamer-ptp-helper and libheif-rav1e, so apk del alone leaves the Wayland viewer and two Rust helpers installed. Pin them with negative !pkg world constraints and run apk fix after each purge. - Verify the constraints in check-rebuild.sh and document the fix.
This commit is contained in:
1 parent
5d10b801ff
commit
dc2b6f6364
8 files changed
+57
-16
No files matched your search
+5
-1
@@ -11,9 +11,13 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Updated Bantam agent and install_if prune fix
|
||||
- Cross-compiled and installed the updated `bantam-cpp` upstream (`0cd1a67`, "Send stable x-opencode-session header based on project_id") into `prebuilt/bantam/`, `overlay/rootfs/`, and the target rootfs, then rebuilt `images/bananarchy-nokia-argon.img`.
|
||||
- Fixed a prune regression found during that rebuild: apk re-adds `install_if` packages (`imv-wayland`, `gstreamer-ptp-helper`, `libheif-rav1e`) on every transaction, so `apk del` alone could not remove the Wayland viewer or the two Rust helpers. `scripts/rootfs-prune-packages.txt` now pins them with negative `!pkg` world constraints, and `scripts/prune-rootfs-packages.sh` restores those constraints and runs `apk fix` after each purge. `scripts/check-rebuild.sh` verifies the constraints are present.
|
||||
|
||||
### Lean rootfs, Rust and Wayland removal, and dead code cleanup
|
||||
- Replaced the Rust `sudo-rs` (and its `postmarketos-base-sudo-rs` companion) with the C `sudo` implementation in `scripts/rootfs-packages.txt`; the APK index confirms `sudo` provides `sudo-virt` at priority 100 with the same `sudo`, `sudoedit`, and `visudo` commands, so `postmarketos-base`, `sxmo_power.sh`, `gs-warp-simple.sh`, and the overlay setuid handling are unchanged.
|
||||
- Added `scripts/prune-rootfs-packages.sh` with a `world` phase (before `apk add`, so apk atomically replaces `sudo-rs` with C `sudo` instead of failing on the `cmd:sudo` conflict) and a `purge` phase (after `apk add`, so `install_if` helpers are not re-added); verified in an `alpine:3.24` container against a real `armv7` pmOS rootfs.
|
||||
- Added `scripts/prune-rootfs-packages.sh` with a `world` phase (before `apk add`, so apk atomically replaces `sudo-rs` with C `sudo` instead of failing on the `cmd:sudo` conflict) and a `purge` phase (after `apk add`, so retired packages are removed after the transaction); verified in an `alpine:3.24` container against a real `armv7` pmOS rootfs.
|
||||
- Removed the Wayland-purpose `libwpebackend-fdo` from the runtime package set. `webarchy.so` and `libwebkit2gtk-4.1.so` have no `DT_NEEDED` on `libWPEBackend-fdo-1.0.so.1`, and `libwpe` only loads a backend after an explicit `wpe_loader_init` that WebKitGTK never performs; `libwpebackend-fdo-dev` stays in the ephemeral cross-build sysroot for `pkgconf`.
|
||||
- Added `imv-x11` alongside the `imv` wrapper so a clean bootstrap has a working X11 image viewer without pulling `imv-wayland`; the session unsets `WAYLAND_DISPLAY`, so the wrapper always takes the X11 branch.
|
||||
- Removed unused or superseded packages: `mesa-demos` (Wayland-linked demo binaries and `libdecor`), `postmarketos-artwork-wallpapers` (already deleted by the overlay, which ships its own wallpapers), `ttyescape` (with the disabled Rust `hkdm` daemon and `kbd` data), `clickclack` (virtual-keyboard feedback daemon unused with `SXMO_NO_VIRTUAL_KEYBOARD=1`, plus `sdl3`), and `font-twemoji` (fontconfig uses Noto Color Emoji). `glxinfo`, `eglinfo`, and `glxgears` remain via `mesa-utils`; `README.md` and `MANUAL.md` no longer advertise `glteapot` or `es2gears_x11`.
|
||||
|
||||
Reference in new issue
Block a user