release: Emit warning if NO_ROOT used with pkg-stage

pkg-stage.sh (used by the disc1 build) does not currently support
METALOG output for NO_ROOT builds.  Emit a warning for this case.

PR:		283387
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49785
This commit is contained in:
Ed Maste 2025-04-11 12:03:10 -04:00
parent 992b18a9ec
commit 0164dc9851

View file

@ -320,6 +320,9 @@ packagesystem: ${DISTRIBUTIONS}
pkg-stage: dvd
# TODO: Support for -DNO_ROOT
.if !defined(NOPKG) || empty(NOPKG)
.if defined(NO_ROOT)
.warning pkg-stage does not yet support NO_ROOT.
.endif
env PORTSDIR=${PORTSDIR} REPOS_DIR=${.CURDIR}/pkg_repos/ \
sh ${.CURDIR}/scripts/pkg-stage.sh
mkdir -p ${.OBJDIR}/dvd/packages/repos/