From owner-soc-status@FreeBSD.ORG Tue May 29 16:12:33 2012 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2EEA1106564A; Tue, 29 May 2012 16:12:33 +0000 (UTC) (envelope-from scherfreebsd@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6773B8FC08; Tue, 29 May 2012 16:12:32 +0000 (UTC) Received: by bkvi18 with SMTP id i18so4241536bkv.13 for ; Tue, 29 May 2012 09:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:subject:date:message-id:cc:to:mime-version :x-mailer; bh=psfMGOE52dMnE9F8ix1KtA1d/Msj9rNMh64PrTFxY9Q=; b=F06joIeSA2MG8vJcqu5fMedG0dGkoarHUlMki/dXZJY48uBmhsXroOHcfK3FT9xhPJ iclc4tG2CTxLgayzbb8P0m9eF8YXJchwY89jQ11SiRevrXtCUXl3fg0cQriUjIo9P1k3 YU1RrC1KdU6U6QZ05itc0FBlNj1ku/7w+nZenkVBDF6Gtq9iAMYT3ErxRDK4Rwx2r3bu Jlbkqt+1MR/XDp55knpf68s8LKrLa6WrZaiVg3kikGAFDJXD448ZP8EDWnxDiqq2B8Gs sKSoC/3IyiXiBvjgcA0BIMUN/wmrNsKTXtp7KCOcTZlBJS6Mil72rGKrdRbFPdh8A0nC xelA== Received: by 10.204.136.195 with SMTP id s3mr6367241bkt.117.1338307951233; Tue, 29 May 2012 09:12:31 -0700 (PDT) Received: from [192.168.0.100] ([77.66.153.242]) by mx.google.com with ESMTPS id gm18sm18690716bkc.7.2012.05.29.09.12.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 May 2012 09:12:30 -0700 (PDT) Sender: Alexander Pronin From: Alexander Pronin Date: Tue, 29 May 2012 20:12:27 +0400 Message-Id: <614E0F2A-8B2D-46BC-9220-502E7E9483C5@FreeBSD.org> To: soc-status@FreeBSD.org Mime-Version: 1.0 (Apple Message framework v1278) X-Mailer: Apple Mail (2.1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Marcus von Appen Subject: [ Week report GSOC ] Parallelization in the ports collection X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 16:12:33 -0000 -r 236215 Log: [new_feature] directory locking targets Two directory locking targets (do-lock, do-unlock) are implemented in bsd.parallel.mk file. This targets provide atomic locking/unlocking technique to lock/unlock a directory specified by ${_parv_DIR_TO_LOCK} variable. Submitted by: Alexander Pronin A Mk/bsd.parallel.mk -r 236228 Log: [new_feature] ${PKG_DBDIR} and ${.CURDIR} specific lock/unlock [fixed] do-lock do-unlock targets are depricated It is possible to lock/unlock ${PKG_DBDIR} and ${.CURDIR} For loop generates directory specific variable: _parv_PKG_DBDIR_DO_LOCK - lockf command to lock ${PKG_DBDIR} _parv_.CURDIR_DO_LOCK - lockf command to lock ${.CURDIR} _parv_PKG_DBDIR_LOCK_SEQ, _parv_.CURDIR_LOCK_SEQ - sequences of commandes passed to ${SH} lockf command argument. e.g. lockf .lock_file ${SH} -c '_parv_PKG_DBDIR_LOCK_SEQ' _parv_PKG_DBDIR_DO_UNLOCK, _parv_.CURDIR_DO_UNLOCK - lockf = command to unlock directories. M Mk/bsd.parallel.mk -r 236308 Log: [new_feature] bsd.parallel.mk: default targets evaluation test. bsd.port.mk: includes bsd.parallel.mk. Enables locking/unlocking = ${.CURDIR} [fixed] bsd.parallel.mk: Changes of LOCK file mod. ps instead of pgrep. feedBack messages. bsd.parallel.mk: Is included in bsd.port.mk. Hence PKG_DBDIR is = unnecessary. include is unnecessary either. "ps" command is more appropriate for PID searching. .lock file mod is changed to 777. To allow open access. More clear feedback messages. ${_parv_IS_DEFAULT_TARGET} - trigers default targets, specified by _parv_DEFAULT_TARGETS. M bsd.port.mk =20 M bsd.parallel.mk -r 236583 Log: [new_feature] _parv_${_lock_dir}_LOCK_LOOP - main scripts to lock a = directory _parv_CHECK_LOCK - script to check if $${dir} is locked. [doc] Submitted by: Alexander Pronin M bsd.parallel.mk M bsd.port.mk -r 236587 Log: [new_feature] ${PKG_DBDIR} locking for port's registration phase. new debugging barrier variable (some king of readln() ) [fixed] WANT_PARALLEL_BUILD variable renamed to = _parv_WANT_PARALLEL_BUILD to suit parallel specific variables' names. Submitted by: Alexander Pronin M bsd.parallel.mk =20 M bsd.port.mk -r 236669 Log: [fixed] Trigger name changed to suit variable naming = _parv_WANT_PARALLEL_BUILD kill signal changed to USR1 make utility exit with 158 status on lock [new_feature] ${.CURDIR} locking behaviour for dependency build ${PKG_DBDIR} locking phases for XXX-depends and lib-depends = targets Blocking Parallel build/install support for port's dependencies in XXX-depends and lib-depends targets Submitted by: Alexander Pronin M bsd.port.mk =20 M bsd.parallel.mk=20=