diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2023-10-16 22:35:40 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2023-10-20 19:52:10 +0000 |
commit | 0e0c4f58370f25cdd824df06f38865b0d455a183 (patch) | |
tree | 35d5d25e6004e0c00e7df4a77d317d9ebd3ffd24 /Makefile.inc1 | |
parent | def6ee77dbc2ab7d4314002f01367e84e69b0a23 (diff) | |
download | src-0e0c4f58370f25cdd824df06f38865b0d455a183.tar.gz src-0e0c4f58370f25cdd824df06f38865b0d455a183.zip |
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
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 1 |
1 files changed, 1 insertions, 0 deletions
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."; \ |