]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't change directory owner to root when building with -DNO_ROOT
authorarichardson <arichardson@FreeBSD.org>
Fri, 29 Jun 2018 21:15:26 +0000 (21:15 +0000)
committerarichardson <arichardson@FreeBSD.org>
Fri, 29 Jun 2018 21:15:26 +0000 (21:15 +0000)
commitee1309994f1f5ef9b02feeb5277f0b34d5d1594a
treea2009d6c89edc3515b5fe231aafa39e9e5ad75f2
parent16872cd908a48d8f16faac703fcfb492e7a5ac25
Don't change directory owner to root when building with -DNO_ROOT

Currently the mtree calls in Makefile.inc1 all change the directory owner
to match the spec file. However, we should not be doing this during
distributeworld if -DNO_ROOT is passed. Additionally, when creating the
WORLDTMP directory hierachy there is no need to change the owner to root so
we now always pass the -W flag when populating WORLDTMP.

This is also required for building FreeBSD on Linux/Mac since the required
groups/users will not exist there which is how I discovered this issue.

Reviewed By: emaste, bdrewery, imp
Approved By: brooks (mentor)
Differential Revision: https://reviews.freebsd.org/D14185
Makefile.inc1
Makefile.libcompat