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 <noreply@anthropic.com>
This commit is contained in:
1 parent
7be4eb53d8
commit
9692da9a43
1 file changed
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user