From owner-p4-projects@FreeBSD.ORG Tue Jul 24 21:34:35 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id CBB1816A418; Tue, 24 Jul 2007 21:34:34 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DF7216A41F for ; Tue, 24 Jul 2007 21:34:34 +0000 (UTC) (envelope-from sat@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7389913C46B for ; Tue, 24 Jul 2007 21:34:34 +0000 (UTC) (envelope-from sat@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6OLYYOE002333 for ; Tue, 24 Jul 2007 21:34:34 GMT (envelope-from sat@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6OLYX9r002315 for perforce@freebsd.org; Tue, 24 Jul 2007 21:34:33 GMT (envelope-from sat@freebsd.org) Date: Tue, 24 Jul 2007 21:34:33 GMT Message-Id: <200707242134.l6OLYX9r002315@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sat@freebsd.org using -f From: Andrew Pantyukhin To: Perforce Change Reviews Cc: Subject: PERFORCE change 124058 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: Tue, 24 Jul 2007 21:34:35 -0000 http://perforce.freebsd.org/chv.cgi?CH=124058 Change 124058 by sat@sat_amilo on 2007/07/24 21:33:52 The previous commit was actually a work-in-progress with some mounting code. This one brings a couple of tweaks. Affected files ... .. //depot/projects/soc2006/gabor_destdir/Mk/bsd.destdir.mk#25 edit Differences ... ==== //depot/projects/soc2006/gabor_destdir/Mk/bsd.destdir.mk#25 (text+ko) ==== @@ -61,8 +61,10 @@ # Processing DESTDIR_MOUNT_LIST into something more machine-readable # VAR:HOST_PATH:DEST_PATH -# If HOST_PATH is not a dir -DESTDIR_MOUNT_LIST?= PORTSDIR WRKDIR:/123 WRKSRC:/567:/789 ABC +# VAR -> VAR:${VAR}:TMP +# VAR:HOST_PATH -> VAR:HOST_PATH:TMP +DESTDIR_MOUNT_LIST?= +#DESTDIR_MOUNT_LIST?= PORTSDIR WRKDIR:/123 WRKSRC:/567:/789 ABC _DESTDIR_MOUNT_LIST= .for _entry in ${DESTDIR_MOUNT_LIST} __entry=${_entry} @@ -120,6 +122,7 @@ _full_dest_path=`realpath $${_destdir}/$${_dest_path}`; \ _mounted_entries_list=""; \ _created_mountpoints_list=""; \ + _var_path_list=""; \ _entry_was_created=0; \ _entry_should_mount=0; \ echo "$${_mount_var}:$${_host_path}:$${_full_dest_path}"; \ @@ -139,6 +142,7 @@ echo "Checking if already mounted"; \ if ${MOUNT}|grep -qs "^$${_host_path} on $${_full_dest_path} ("; then \ echo "$${_host_path} is already mounted on $${_full_dest_path}"; \ + _var_path_list="$${_var_path_list} $${_mount_var}=$${_dest_path}"; \ else \ echo "$${_host_path} is not mounted on $${_full_dest_path}"; \ _entry_should_mount=1; \ @@ -166,6 +170,7 @@ echo "$${_destdir_env}"; \ ${ECHO_CMD} "Things we mounted: $${_mounted_entries_list};" \ ${ECHO_CMD} "Things we created: $${_created_mountpoints_list};" \ + ${ECHO_CMD} "_var_path_list: $${_var_path_list};" \ ${ECHO_CMD} "===> Starting chrooted make in ${DESTDIR}..."; \ ${CHROOT} $${_destdir} ${SH} -c "(cd $${_builddir}; \ ${SETENV} -i ${DESTDIR_ENV} $${_destdir_env} ${MAKE} ${.TARGETS})"; \