Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2007 08:08:57 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 123944 for review
Message-ID:  <200707230808.l6N88vht012731@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707230808.l6N88vht012731>