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').
This commit is contained in:
1 parent
af4e9802fe
commit
1ce7dfc21b
1 file changed
+2
-4
@@ -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
|
||||
;;
|
||||
|
||||
Reference in new issue
Block a user