From owner-p4-projects@FreeBSD.ORG Mon Jul 23 08:08:57 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8E9EB16A41F; Mon, 23 Jul 2007 08:08:57 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6502A16A417 for ; Mon, 23 Jul 2007 08:08:57 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5026C13C461 for ; Mon, 23 Jul 2007 08:08:57 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6N88vSN012734 for ; Mon, 23 Jul 2007 08:08:57 GMT (envelope-from gabor@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6N88vht012731 for perforce@freebsd.org; Mon, 23 Jul 2007 08:08:57 GMT (envelope-from gabor@freebsd.org) Date: Mon, 23 Jul 2007 08:08:57 GMT Message-Id: <200707230808.l6N88vht012731@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gabor@freebsd.org using -f From: Gabor Kovesdan To: Perforce Change Reviews Cc: Subject: PERFORCE change 123944 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 08:08:57 -0000 http://perforce.freebsd.org/chv.cgi?CH=123944 Change 123944 by gabor@gabor_server on 2007/07/23 08:08:17 - Preparing for a patch submission, add WITH_EXPERIMENTAL_DESTDIR. In this way, we can do the revert of the old DESTDIR and give a way to users to test the existing code, but it will warn them about the incomplete status. Affected files ... .. //depot/projects/soc2006/gabor_destdir/Mk/bsd.destdir.mk#21 edit Differences ... ==== //depot/projects/soc2006/gabor_destdir/Mk/bsd.destdir.mk#21 (text+ko) ==== @@ -67,6 +67,7 @@ PORTSDIR_TMP_REL= ${PORTSDIR_TMP:S,^${DESTDIR},,} BUILDDIR= ${.CURDIR:S,^${PORTSDIR},,:S,^,${PORTSDIR_TMP_REL},} +.if defined(WITH_EXPERIMENTAL_DESTDIR) do-chroot: ${ECHO_CMD} "===> Nullmounting ports tree into ${DESTDIR}..."; \ ${MOUNT_NULLFS} ${PORTSDIR} ${DESTDIR}${PORTSDIR_TMP_REL}; \ @@ -84,6 +85,13 @@ ${CHROOT} ${DESTDIR} ${SH} -c "(cd ${BUILDDIR}; ${SETENV} -i ${DESTDIR_ENV} ${MAKE} ${.TARGETS})"; \ ${UMOUNT} ${DESTDIR}${PORTSDIR_TMP_REL}; \ ${RMDIR} ${DESTDIR}${PORTSDIR_TMP_REL} +.else +do-chroot: + @${ECHO_CMD} "===> DESTDIR is experimental, set WITH_EXPERIMENTAL_DESTDIR"; \ + ${ECHO_CMD} "===> if you want to use it."; \ + ${FALSE} +.endif + .endif .endif