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
@@ -52,14 +52,15 @@ else
|
||||
echo " $PKG_COUNT packages"
|
||||
fi
|
||||
for pkg in alpine-base postmarketos-ui-sxmo-de-dwm webkit2gtk-4.1 libwpe \
|
||||
sudo imv-x11 fcitx5-gtk3 mesa-utils sfeed; do
|
||||
sudo imv-x11 fcitx5-gtk3 mesa-utils sfeed yabasic yabasic-doc; do
|
||||
if ! grep -Fxq "$pkg" "$PKGS_FILE"; then
|
||||
fail "missing critical package: $pkg"
|
||||
fi
|
||||
done
|
||||
# Pure X11 and Rust-free top-level package set.
|
||||
for pkg in sudo-rs postmarketos-base-sudo-rs libwpebackend-fdo imv-wayland \
|
||||
xwayland sxmo-utils-wayland wofi grim slurp; do
|
||||
xwayland sxmo-utils-wayland wofi grim slurp \
|
||||
gcc g++ musl-dev make janet janet-dev jpm; do
|
||||
if grep -Fxq "$pkg" "$PKGS_FILE"; then
|
||||
fail "forbidden Rust/Wayland package in package list: $pkg"
|
||||
fi
|
||||
@@ -72,7 +73,7 @@ if [ ! -f "$PRUNE_FILE" ]; then
|
||||
else
|
||||
PRUNE_COUNT="$(grep -v '^[[:space:]]*#' "$PRUNE_FILE" | grep -cv '^[[:space:]]*$' || true)"
|
||||
echo " $PRUNE_COUNT prune entries"
|
||||
for pkg in sudo-rs libwpebackend-fdo imv-wayland; do
|
||||
for pkg in sudo-rs libwpebackend-fdo imv-wayland gcc janet; do
|
||||
if ! grep -Fxq "$pkg" "$PRUNE_FILE"; then
|
||||
fail "missing prune entry: $pkg"
|
||||
fi
|
||||
@@ -87,6 +88,21 @@ if [ ! -x "$BASE_DIR/scripts/prune-rootfs-packages.sh" ]; then
|
||||
fail "missing or non-executable scripts/prune-rootfs-packages.sh"
|
||||
fi
|
||||
|
||||
echo "[check] Yabasic FFI runtime..."
|
||||
for artifact in \
|
||||
"$BASE_DIR/prebuilt/sxmo-x11/usr/lib/libneoui.so" \
|
||||
"$BASE_DIR/prebuilt/sxmo-x11/usr/include/neoui.h" \
|
||||
"$BASE_DIR/overlay/rootfs/usr/lib/neoui.yab" \
|
||||
"$BASE_DIR/overlay/rootfs/usr/lib/neonet.yab" \
|
||||
"$BASE_DIR/overlay/rootfs/home/user/Projects/neoui.yab" \
|
||||
"$BASE_DIR/overlay/rootfs/home/user/Projects/neonet.yab"; do
|
||||
# The /usr/lib/*.yab entries are absolute symlinks into the target rootfs,
|
||||
# so a dangling link on the build host is expected and still valid.
|
||||
if [ ! -e "$artifact" ] && [ ! -L "$artifact" ]; then
|
||||
fail "missing Yabasic FFI artifact: ${artifact#"$BASE_DIR/"}"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "[check] Image residue guard..."
|
||||
if ! grep -q 'strip_build_residue' "$BASE_DIR/rebuild-image.sh" || \
|
||||
! grep -q 'apk cache/log still present' "$BASE_DIR/rebuild-image.sh"; then
|
||||
|
||||
Reference in new issue
Block a user