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
|
||||
|
||||
@@ -4,6 +4,9 @@
|
||||
# Keep this list synchronized with the packages used by the overlay and plugins.
|
||||
# Pure X11: no Wayland-purpose packages. sudo is the C implementation; the
|
||||
# Rust sudo-rs variant and its postmarketos-base-sudo-rs companion are excluded.
|
||||
# No on-device compiler or Janet runtime is shipped; native code is
|
||||
# cross-compiled with scripts/build-*.sh, and Yabasic FFI (neoui.yab /
|
||||
# neonet.yab) is the on-device SDK path.
|
||||
# scripts/rootfs-prune-packages.txt lists packages purged from existing rootfs
|
||||
# trees (Wayland-only components and retired packages).
|
||||
adwaita-icon-theme
|
||||
@@ -24,8 +27,6 @@ font-fira-code
|
||||
font-noto
|
||||
font-noto-emoji
|
||||
frotz
|
||||
g++
|
||||
gcc
|
||||
git
|
||||
gst-libav
|
||||
gst-plugins-bad
|
||||
@@ -38,9 +39,6 @@ imv-x11
|
||||
ip6tables
|
||||
iproute2
|
||||
iptables
|
||||
janet
|
||||
janet-dev
|
||||
jpm
|
||||
lang
|
||||
less
|
||||
libwpe
|
||||
@@ -53,11 +51,9 @@ lua5.4
|
||||
lua5.4-dev
|
||||
lua5.5
|
||||
lua5.5-dev
|
||||
make
|
||||
mandoc
|
||||
mesa-utils
|
||||
modemmanager
|
||||
musl-dev
|
||||
nano
|
||||
openssh
|
||||
openssh-server-pam
|
||||
|
||||
@@ -36,6 +36,16 @@ mesa-demos
|
||||
postmarketos-artwork-wallpapers
|
||||
ttyescape
|
||||
|
||||
# Retired on-device compiler toolchain and Janet runtime. Native code is
|
||||
# cross-compiled with scripts/build-*.sh; Yabasic FFI stays fully functional.
|
||||
gcc
|
||||
g++
|
||||
musl-dev
|
||||
make
|
||||
janet
|
||||
janet-dev
|
||||
jpm
|
||||
|
||||
# Negative world constraints for install_if packages. apk del removes these
|
||||
# constraints, so the pruner restores them and runs apk fix after every purge.
|
||||
!imv-wayland
|
||||
|
||||
Reference in new issue
Block a user