PERFORCE change 123944 for review

Gabor Kovesdan gabor at FreeBSD.org
Mon Jul 23 08:08:57 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123944

Change 123944 by gabor at 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


More information about the p4-projects mailing list