Date: Thu, 30 Oct 2025 20:51:36 GMT From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 1f528e32f509 - stable/15 - pkg: Die if make -V BRANCH fails Message-ID: <202510302051.59UKpaep043946@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=1f528e32f5098c5aaca9bd2fb6473631c3831fbf commit 1f528e32f5098c5aaca9bd2fb6473631c3831fbf Author: Colin Percival <cperciva@FreeBSD.org> AuthorDate: 2025-10-30 20:46:12 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2025-10-30 20:51:31 +0000 pkg: Die if make -V BRANCH fails If build logic breaks such that we can't figure out which branch we're on, we should error out rather than shipping a default (and probably wrong) /etc/pkg/FreeBSD.conf Reviewed by: ivy MFC after: 5 minutes Suggested by: ivy Differential Revision: https://reviews.freebsd.org/D53487 (cherry picked from commit 0837b2ebd570ea092353aa3c46e374f7a1533a1d) --- usr.sbin/pkg/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/pkg/Makefile b/usr.sbin/pkg/Makefile index 0420065bb7eb..68b862826992 100644 --- a/usr.sbin/pkg/Makefile +++ b/usr.sbin/pkg/Makefile @@ -1,5 +1,6 @@ PACKAGE= pkg-bootstrap +.MAKEFLAGS: -W _BRANCH!= ${MAKE} -C ${SRCTOP}/release -V BRANCH BRANCH?= ${_BRANCH} .if ${BRANCH:MCURRENT} != ""home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510302051.59UKpaep043946>
