From 9692da9a436c5d8c68518e208bbecbb98b2e9170 Mon Sep 17 00:00:00 2001 From: lotherk Date: Tue, 24 Nov 2026 08:34:27 +0000 Subject: [PATCH] makronix-set: pkg_delete -ff, pkgsrc marks pkg_install as preserved The native MacBook build got through every package (mcde-0.1.0, mcde-motif-2.3.8 built) and stopped here: 'pkg_install-20260227 ... marked as not for deletion'. The target's pkg_install comes from the distribution; the delete runs against the sysroot (-P $DESTDIR) only. Co-Authored-By: Claude Sonnet 5.5 --- tools/makronix-set.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/makronix-set.sh b/tools/makronix-set.sh index 02ca14479f..ca0fe0632c 100755 --- a/tools/makronix-set.sh +++ b/tools/makronix-set.sh @@ -151,6 +151,9 @@ done # and its files would be "extra files in DESTDIR" for checkflist: a package that # an earlier run installed (cups, cups-filters ... when userland.sh still put # every "fetch" package there, t0205) is removed with pkg_delete. +# -ff: pkgsrc's bootstrap marks pkg_install as preserved; the target gets its +# pkg_install from the distribution, so it is removed from the sysroot (-P) too +# (measured 2026-11-24, native MacBook build: "marked as not for deletion"). for d in "${DB}"/*/; do [ -f "${d}+CONTENTS" ] || continue q=${d%/}; q=${q##*/} @@ -160,7 +163,7 @@ for d in "${DB}"/*/; do # set above), and pkgsrc's ABI marker case "$q" in x11-links-*|osabi-*) continue ;; esac echo "makronix-set: $q is not in the set, removed from the sysroot" >&2 - "${TOP}/build/pkg/sbin/pkg_delete" -f -P "${DESTDIR}" -K /usr/pkg/pkgdb "$q" > "${TOP}/build/logs/pkg-delete-$q.log" 2>&1 || + "${TOP}/build/pkg/sbin/pkg_delete" -ff -P "${DESTDIR}" -K /usr/pkg/pkgdb "$q" > "${TOP}/build/logs/pkg-delete-$q.log" 2>&1 || { echo "makronix-set: could not remove $q (build/logs/pkg-delete-$q.log)" >&2; exit 1; } done