build: skip the database check for the distributeworld target

distributeworld is used to generate install media, so it makes no
sense to check the host database since the install media can be
generated from any box, regardless of the version of FreeBSD it's
running.

Sponsored by:		Citrix Systems R&D
Reviewed by:		ian, gjb
Differential revision:	https://reviews.freebsd.org/D16507
This commit is contained in:
royger 2018-08-08 07:58:29 +00:00
parent bd020f21eb
commit d182352391

View File

@ -830,6 +830,13 @@ IMAKE+= __MAKE_SHELL=${INSTALLTMP}/sh
.else .else
IMAKEENV+= PATH=${TMPPATH}:${INSTALLTMP} IMAKEENV+= PATH=${TMPPATH}:${INSTALLTMP}
.endif .endif
# When generating install media, do not allow user and group information from
# the build host to affect the contents of the distribution.
.if make(distributeworld)
DB_FROM_SRC= yes
.endif
.if defined(DB_FROM_SRC) .if defined(DB_FROM_SRC)
INSTALLFLAGS+= -N ${.CURDIR}/etc INSTALLFLAGS+= -N ${.CURDIR}/etc
MTREEFLAGS+= -N ${.CURDIR}/etc MTREEFLAGS+= -N ${.CURDIR}/etc