Date: Sat, 4 Nov 2017 21:05:03 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r325405 - head/share/mk Message-ID: <201711042105.vA4L53it065068@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Sat Nov 4 21:05:03 2017 New Revision: 325405 URL: https://svnweb.freebsd.org/changeset/base/325405 Log: Add an assertion to avoid the 'rm -rf /etc' case from cleanobj fixed in r325404. Sponsored by: Dell EMC Isilon Modified: head/share/mk/bsd.obj.mk Modified: head/share/mk/bsd.obj.mk ============================================================================== --- head/share/mk/bsd.obj.mk Sat Nov 4 21:02:26 2017 (r325404) +++ head/share/mk/bsd.obj.mk Sat Nov 4 21:05:03 2017 (r325405) @@ -84,6 +84,10 @@ OBJTOP?= ${MAKEOBJDIR} CANONICALOBJDIR:=/usr/obj${.CURDIR} .endif +.if ${CANONICALOBJDIR} == /${RELDIR} || ${.OBJDIR} == /${RELDIR} +.error .OBJDIR incorrectly set to /${RELDIR} +.endif + OBJTOP?= ${.OBJDIR:S,${.CURDIR},,}${SRCTOP} #
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711042105.vA4L53it065068>