From owner-p4-projects@FreeBSD.ORG Sun May 6 16:12:17 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0F60B16A404; Sun, 6 May 2007 16:12:17 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A7C0C16A400 for ; Sun, 6 May 2007 16:12:16 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9876113C46E for ; Sun, 6 May 2007 16:12:16 +0000 (UTC) (envelope-from gabor@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l46GCGm5040618 for ; Sun, 6 May 2007 16:12:16 GMT (envelope-from gabor@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l46GCG9K040615 for perforce@freebsd.org; Sun, 6 May 2007 16:12:16 GMT (envelope-from gabor@freebsd.org) Date: Sun, 6 May 2007 16:12:16 GMT Message-Id: <200705061612.l46GCG9K040615@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 119350 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: Sun, 06 May 2007 16:12:17 -0000 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