Date: Sun, 6 May 2007 16:12:16 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 119350 for review Message-ID: <200705061612.l46GCG9K040615@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119350 Change 119350 by gabor@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705061612.l46GCG9K040615>