From owner-freebsd-ports@FreeBSD.ORG Tue May 15 21:53:36 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CA36416A400 for ; Tue, 15 May 2007 21:53:36 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.freebsd.org (Postfix) with ESMTP id 926CF13C46C for ; Tue, 15 May 2007 21:53:36 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop2.montlan (12-216-253-187.client.mchsi.com[12.216.253.187]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20070515215335m9200e1brje>; Tue, 15 May 2007 21:53:35 +0000 Message-ID: <464A2BDF.9030108@math.missouri.edu> Date: Tue, 15 May 2007 16:53:35 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070505 SeaMonkey/1.1.1 MIME-Version: 1.0 To: Stephen Montgomery-Smith , Kris Kennaway , "[LoN]Kamikaze" , freebsd-ports@freebsd.org References: <20070512174011.GA22526@xor.obsecurity.org> <4645FF71.60100@gmx.de> <20070512175824.GA23103@xor.obsecurity.org> <20070512133054.B5588@math.missouri.edu> <4646193E.5040503@gmx.de> <464665D5.1090509@math.missouri.edu> <4646AC48.1010107@gmx.de> <4646CFE3.1020105@gmx.de> <20070513084931.GA35696@xor.obsecurity.org> <4647161D.2040100@math.missouri.edu> <20070515210147.GI1462@roadrunner.q.local> In-Reply-To: <20070515210147.GI1462@roadrunner.q.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Time to abandon recursive pulling of dependencies? 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, 15 May 2007 21:53:36 -0000 Ulrich Spoerlein wrote: > Stephen Montgomery-Smith wrote: >> 1. Pulling in the dependencies. This is in effect doing a "make package-depends". You can >> do this for yourself, and see that it takes a long time. I honestly don't see how to make >> this faster, as presumably it involves calling "make" on all the dependency ports, and I >> would guess that each new invocation of make adds considerable overhead just loading the >> program. > > This is "static" information, required for nearly all ports -> put it in > INDEX > >> 2. Sorting the dependencies in pkg_create. My fix now cuts this out completely. Thus there >> is no need to change the structure of /var/db/pkg to use databases or anything like this. > > I haven't had time to look at your patches, but are your removing second > order dependancies? This would cut down the tree size considerably. No. No second order dependencies are removed. The new algorithm does exactly the same as the old one did, only it works a lot faster.