From f731d1291bc5242ce17464163814af65aed0d73a Mon Sep 17 00:00:00 2001 From: lotherk Date: Sun, 22 Nov 2026 22:06:01 +0000 Subject: [PATCH] tools: userland.sh drops the parent make's MAKEFLAGS; build-stamp.sh defaults MACHINE Co-Authored-By: Claude Sonnet 5.5 --- tools/build-stamp.sh | 1 + tools/userland.sh | 6 ++++++ 2 files changed, 7 insertions(+) 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