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
@@ -46,13 +46,14 @@ if [ ! -f "$PKGS_FILE" ]; then
|
||||
fail "missing $PKGS_FILE"
|
||||
else
|
||||
PKG_COUNT="$(grep -v '^[[:space:]]*#' "$PKGS_FILE" | grep -cv '^[[:space:]]*$' || true)"
|
||||
if [ "$PKG_COUNT" -lt 80 ]; then
|
||||
if [ "$PKG_COUNT" -lt 70 ]; then
|
||||
fail "package list has only $PKG_COUNT entries"
|
||||
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 yabasic yabasic-doc; do
|
||||
sudo imv-x11 fcitx5-gtk3 mesa-utils sfeed yabasic yabasic-doc \
|
||||
curl bc ed rlwrap mandoc nano less frotz tcl; do
|
||||
if ! grep -Fxq "$pkg" "$PKGS_FILE"; then
|
||||
fail "missing critical package: $pkg"
|
||||
fi
|
||||
@@ -60,7 +61,9 @@ else
|
||||
# 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 \
|
||||
gcc g++ musl-dev make janet janet-dev jpm; do
|
||||
gcc g++ musl-dev make janet janet-dev jpm \
|
||||
perl perl-io-socket-ssl tcl-lib tcl-tls sqlite-tcl sqlite \
|
||||
lua5.4 lua5.4-dev lua5.5 lua5.5-dev; do
|
||||
if grep -Fxq "$pkg" "$PKGS_FILE"; then
|
||||
fail "forbidden Rust/Wayland package in package list: $pkg"
|
||||
fi
|
||||
@@ -73,12 +76,12 @@ 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 gcc janet; do
|
||||
for pkg in sudo-rs libwpebackend-fdo imv-wayland gcc janet perl lua5.5 sqlite; do
|
||||
if ! grep -Fxq "$pkg" "$PRUNE_FILE"; then
|
||||
fail "missing prune entry: $pkg"
|
||||
fi
|
||||
done
|
||||
for deny in '!imv-wayland' '!gstreamer-ptp-helper' '!libheif-rav1e'; do
|
||||
for deny in '!imv-wayland' '!gstreamer-ptp-helper' '!libheif-rav1e' '@so:libperl.so'; do
|
||||
if ! grep -Fxq "$deny" "$PRUNE_FILE"; then
|
||||
fail "missing negative world constraint: $deny"
|
||||
fi
|
||||
@@ -88,6 +91,12 @@ if [ ! -x "$BASE_DIR/scripts/prune-rootfs-packages.sh" ]; then
|
||||
fail "missing or non-executable scripts/prune-rootfs-packages.sh"
|
||||
fi
|
||||
|
||||
echo "[check] Lua symlink removal..."
|
||||
if grep -q 'lua5.5' "$BASE_DIR/rebuild-image.sh" || \
|
||||
grep -q 'lua5.5' "$BASE_DIR/scripts/bootstrap-rootfs-container.sh"; then
|
||||
fail "build scripts still create dangling lua/luac symlinks"
|
||||
fi
|
||||
|
||||
echo "[check] Yabasic FFI runtime..."
|
||||
for artifact in \
|
||||
"$BASE_DIR/prebuilt/sxmo-x11/usr/lib/libneoui.so" \
|
||||
|
||||
Reference in new issue
Block a user