summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorRoger Pau Monné <royger@FreeBSD.org>2018-08-08 07:58:29 +0000
committerRoger Pau Monné <royger@FreeBSD.org>2018-08-08 07:58:29 +0000
commitd0f408fab940b35805b886a8b9a6cdfd1b32ef5b (patch)
treece1f8ad60c1f0316867519f2e487443b210f5a77 /Makefile.inc1
parent550ddd16edafab3c528960de991b4e370939d647 (diff)
downloadsrc-test2-d0f408fab940b35805b886a8b9a6cdfd1b32ef5b.tar.gz
src-test2-d0f408fab940b35805b886a8b9a6cdfd1b32ef5b.zip
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
Notes
Notes: svn path=/head/; revision=337452
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc17
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index f724337a0a01..42d1dccb7c16 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -830,6 +830,13 @@ IMAKE+= __MAKE_SHELL=${INSTALLTMP}/sh
.else
IMAKEENV+= PATH=${TMPPATH}:${INSTALLTMP}
.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)
INSTALLFLAGS+= -N ${.CURDIR}/etc
MTREEFLAGS+= -N ${.CURDIR}/etc