From 1ce7dfc21bd2aba8fa2a1ef894f6f016a87ca3ef Mon Sep 17 00:00:00 2001 From: lotherk Date: Tue, 10 Nov 2026 01:14:19 +0000 Subject: [PATCH] tools/vm-pkgbuild: remove stage makevars unconditionally The -f/-s test did not catch the file the VM had; rm -f the glob instead (log ...-9.log still failed with 'Zero byte read from file'). --- tools/vm-pkgbuild.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/vm-pkgbuild.sh b/tools/vm-pkgbuild.sh index 14fe35fe6f..614c83222e 100755 --- a/tools/vm-pkgbuild.sh +++ b/tools/vm-pkgbuild.sh @@ -82,11 +82,9 @@ build) # 2.72 would take C23, where CDE's `int f();' is `int f(void)' [ "$p" = wm/cde ] && extra=FORCE_C_STD=gnu11 # A zero-byte .stage-*_makevars.mk from an interrupted install makes - # bmake stop ("Zero byte read from file"); drop it. + # bmake stop ("Zero byte read from file"); drop it unconditionally. work=$WORK/$p/work - for f in "$work"/.stage-*_makevars.mk; do - [ -f "$f" ] && [ ! -s "$f" ] && rm -f "$f" - done + rm -f "$work"/.stage-*_makevars.mk 2>/dev/null || true (cd $PKGSRC/$p && $PREFIX/bin/bmake $extra package-install) done ;;