]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
DEBUG_FILES: Create the DEBUGFILEDIR if it doesn't exist on install.
authorbdrewery <bdrewery@FreeBSD.org>
Thu, 3 Mar 2016 18:08:58 +0000 (18:08 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Thu, 3 Mar 2016 18:08:58 +0000 (18:08 +0000)
commitba3c3259e5a2dd87950a3cfc443dbd7c37bb6cd1
tree16567a06cd3e3dcfc8b8ebed0795159b831e0ca2
parent0099e626eeeb0a9dda436a585e01583cd6bed416
DEBUG_FILES: Create the DEBUGFILEDIR if it doesn't exist on install.

Currently the base.txz distribution does not get the BSD.debug.dist mtree
extracted into it.  So if you start from that and then try to build a 3rd-party
application outside of buildworld it will by-default try installing the
debug files into a missing directory if they are being installed into /usr/lib.

Check for the existence before forcing the directory to be created rather than
the older way of running a shell command with test -d || mkdir -p always.

Reported by: HardenedBSD (https://github.com/HardenedBSD/secadm/issues/23)
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D5411
share/mk/bsd.lib.mk
share/mk/bsd.prog.mk