Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2023 19:52:28 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0e0c4f58370f - main - certctl: invoke with LOCALBASE set
Message-ID:  <202310201952.39KJqSdD021472@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/src/commit/?id=0e0c4f58370f25cdd824df06f38865b0d455a183

commit 0e0c4f58370f25cdd824df06f38865b0d455a183
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2023-10-16 22:35:40 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2023-10-20 19:52:10 +0000

    certctl: invoke with LOCALBASE set
    
    When invoking certctl as part of installworld, set LOCALBASE in the
    environment to match the build environment.  That ensures that LOCABASE
    is non-empty on systems without the user.localbase sysctl and avoids
    allowing a system configuration detail to leak into the build.  Users
    who wish to build targeting a non-standard LOCALBASE should ensure it is
    set in src.conf or similar.
    
    Reviewed by:    Mina Galić <freebsd@igalic.co>
    Differential Revision:  https://reviews.freebsd.org/D40530
---
 Makefile.inc1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 68549d91598d..512c4049fd76 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1489,6 +1489,7 @@ distributeworld installworld stageworld: _installcheck_world .PHONY
 .if !make(packageworld) && ${MK_CAROOT} != "no"
 	@if which openssl>/dev/null; then \
 		PATH=${TMPPATH:Q}:${PATH:Q} \
+		LOCALBASE=${LOCALBASE:Q} \
 		    sh ${SRCTOP}/usr.sbin/certctl/certctl.sh ${CERTCTLFLAGS} rehash; \
 	else \
 		echo "No openssl on the host, not rehashing certificates target -- /etc/ssl may not be populated."; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310201952.39KJqSdD021472>