From owner-freebsd-ports@FreeBSD.ORG Tue May 22 14:39:10 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EC2E106564A; Tue, 22 May 2012 14:39:10 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id E814E8FC14; Tue, 22 May 2012 14:39:09 +0000 (UTC) Received: by ghbz22 with SMTP id z22so1002849ghb.13 for ; Tue, 22 May 2012 07:39:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yZFaKbmKYM6d5aqzoxrsFjajqJH409/SoRv9ZOOEHc8=; b=GRuJyPwsbv72GakrufyJB1MW/zvZQ4Rbd30Evcrx7mE8mbPttkstk54588tTQnQbrt DqlowZPdW2zPb7JVe/BCeIuPWlx4C0EOFaM/mBQtUdyxRdSNMl2BF+sUvha/QW/vygdy H7PIveFSPeQ8u1hxFEhyWem2bxy5wDiRQV39mFPtVczc8uTPtlPcpPNOr9iKA9fGKFFv Oh3L2jn4AjnI9ng50V81+cjh0rX71mKl6UVk72KVp0kFJKA03omcUgrbu0V4IC7LFFK/ rOFiqGFbdZE3COstTT7x84BdA6ury4xerHkG9gWX/ZBZE3Ld7pft9Cd/FtlV/Xwk+Cjr UFbQ== MIME-Version: 1.0 Received: by 10.60.13.134 with SMTP id h6mr22844214oec.11.1337697549139; Tue, 22 May 2012 07:39:09 -0700 (PDT) Received: by 10.76.153.72 with HTTP; Tue, 22 May 2012 07:39:09 -0700 (PDT) In-Reply-To: <30492E12-34D8-4F8B-B9DA-92166F3586E1@FreeBSD.org> References: <30492E12-34D8-4F8B-B9DA-92166F3586E1@FreeBSD.org> Date: Tue, 22 May 2012 07:39:09 -0700 Message-ID: From: Garrett Cooper To: Alexander Pronin Content-Type: text/plain; charset=ISO-8859-1 Cc: Marcus von Appen , freebsd-ports@freebsd.org Subject: Re: [ GSOC ] Project: Parallelization in the ports collection X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 14:39:10 -0000 On Sun, May 20, 2012 at 11:12 PM, Alexander Pronin wrote: > Hello Community. > > My name is Alexander Pronin. I am a GSOC student at The FreeBSD Project. > My project is "Parallelization in the ports collection and pkgng utility" > I have created wiki page where I described problems that I have to solve and approaches to solving this problems. > ( http://wiki.freebsd.org/SummerOfCode2012/Parallelization_in_the_ports_collection ) > But some problems still seem to be unsolved. > > I would be grateful to discuss my project ideas. So any feedback is more that appreciated. I'm doing similar things in my own area. Long story short, you're going to run into other races -j > 1 that still need to be resolved and ${WRKDIR} and all the variables built off of ${WRKDIR} are indeed part of the problem (mkdir's in make targets are bad). Splitting out the logic into its own separate file is a nice, clean room approach, but it seems like there's going to be a fair amount of duplication in bsd.port.mk and bsd.pkgng.mk . bsd.port.mk's logic needs to be gutted out into a separate file (bsd.pkg_install.mk?), as it's a lot of logic that's going to go away when pkg_install exits stage left. This is similar to what pkgsrc does with their Mk files. You bring up some interesting key points and there are some things that I'm curious about working, but I'll have to digest things a bit further before I provide more feedback. Thanks, -Garrett