git: 0164dc98510a - main - release: Emit warning if NO_ROOT used with pkg-stage
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Apr 2025 01:02:30 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=0164dc98510a3e7089d1347b02fbf70120cfda3b
commit 0164dc98510a3e7089d1347b02fbf70120cfda3b
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-04-11 16:03:10 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-04-15 01:01:56 +0000
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
---
release/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/release/Makefile b/release/Makefile
index 44344c9ff20a..d908059d781b 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -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/