diff --git a/tools/build-stamp.sh b/tools/build-stamp.sh index 35584cd66a..c54515fdef 100755 --- a/tools/build-stamp.sh +++ b/tools/build-stamp.sh @@ -29,6 +29,7 @@ if [ -z "${BUILD_LOCK_HELD:-}" ] || [ ! -d "$BUILD_LOCK_HELD" ]; then fi OBJ=${OBJ:-$TOP/build/obj} +MACHINE=${MACHINE:-amd64} STAMP=$OBJ/.makronix-stamp # the scripts that decide what the sets hold (and this one); the rest of tools/ diff --git a/tools/userland.sh b/tools/userland.sh index 9eef6fd2a8..a6c651eb63 100755 --- a/tools/userland.sh +++ b/tools/userland.sh @@ -33,6 +33,12 @@ if [ -z "${BUILD_LOCK_HELD:-}" ] || [ ! -d "$BUILD_LOCK_HELD" ]; then fi export MAKRONIX_TOP=$TOP +# The root Makefile is run by the host's make(1) (bmake on Linux), which passes +# `.MAKE.LEVEL.ENV=MAKELEVEL' in MAKEFLAGS; the older bmake of pkgsrc +# (build/pkg/bin/bmake) stops on it: 'Cannot delete ".MAKE.LEVEL.ENV" as it is +# read-only' (measured 2026-11-22, make release step 2). Nothing below wants +# the parent's flags. +unset MAKEFLAGS MAKELEVEL MFLAGS ARCH=amd64 PKGSRC=$TOP/pkgsrc