PERFORCE change 119350 for review

Gabor Kovesdan gabor at FreeBSD.org
Sun May 6 16:12:17 UTC 2007


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

Change 119350 by gabor at gabor_server on 2007/05/06 16:11:17

	I would like to implement DESTDIR in such way as it is in this change.
	The chrooted process starts fine, but somehow the handling of the
	passed target does not work yet.

Affected files ...

.. //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#14 edit

Differences ...

==== //depot/projects/soc2006/gabor_destdir/Mk/bsd.port.mk#14 (text+ko) ====

@@ -1049,10 +1049,11 @@
 # DESTDIR section to start a chrooted process if incoked with DESTDIR set
 #
 
-.if defined(DESTDIR) && !empty(DESTDIR)
+.if defined(DESTDIR) && !empty(DESTDIR) && !defined(CHROOTED)
+_TARGET:=	${.TARGET}
 .BEGIN:
-	${ECHO_CMD} "===> DESTDIR support coming soon..."; \
-	${FALSE}
+	${ECHO_CMD} "===> Starting chrooted make in ${DESTDIR}..."; \
+	${CHROOT} ${DESTDIR} ${SH} -c "(cd ${.CURDIR}; ${MAKE} CHROOTED=YES ${_TARGET})"
 .else
 
 # Look for ${WRKSRC}/.../*.orig files, and (re-)create


More information about the p4-projects mailing list