]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't change directory owner to root when building with -DNO_ROOT
authorAlex Richardson <arichardson@FreeBSD.org>
Fri, 29 Jun 2018 21:15:26 +0000 (21:15 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Fri, 29 Jun 2018 21:15:26 +0000 (21:15 +0000)
commit55a5b46aff84045feb84bad7afd8dffa34df33c5
treea2009d6c89edc3515b5fe231aafa39e9e5ad75f2
parent53ed3b32ae0487a5ea96e4eedbe8c2d8b44b471d
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