From owner-freebsd-ports@FreeBSD.ORG Wed May 16 22:33:35 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 BD8E016A404; Wed, 16 May 2007 22:33:35 +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 599C613C45A; Wed, 16 May 2007 22:33:35 +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 <20070516223334m9200dvseve>; Wed, 16 May 2007 22:33:34 +0000 Message-ID: <464B86BD.4020307@math.missouri.edu> Date: Wed, 16 May 2007 17:33:33 -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: Robert Noland References: <464597C6.3030406@gmx.de> <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> <464676CC.2000203@math.missouri.edu> <46469BF5.9030603@math.missouri.edu> <1179058696.13237.3.camel@ikaros.oook.cz> <20070513101332.L82202@math.missouri.edu> <46479215.1080401@math.missouri.edu> <4647C4FB.9050607@math.missouri.edu> <4647F182.6000402@gmx.de> <46487491.6020806@math.missouri.edu> <46488168.3030300@math.missouri.edu> <464B155A.1080105@math.missouri.edu> <464B7144.2000600@math.missouri.edu> <1179353641.79329.11.camel@rnoland-ibm.acs.internap.com> In-Reply-To: <1179353641.79329.11.camel@rnoland-ibm.acs.internap.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "\[LoN\]Kamikaze" , Pav Lucistnik , freebsd-ports@freebsd.org, Kris Kennaway 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: Wed, 16 May 2007 22:33:35 -0000 Robert Noland wrote: > On Wed, 2007-05-16 at 16:01 -0500, Stephen Montgomery-Smith wrote: >> Ok chaps, I think I have it. >> >> This involves no recursive calls of make. Furthermore the >> dependencies >> it creates are the real dependencies on your system, not what ports >> thinks it should be, because it gets all the information from >> /var/db/pkg. On my system it takes a second or two to register a port >> - >> it takes about the same amount of time whether it has few >> dependencies >> or many, except when there are zero dependencies, when it takes no >> time >> at all. >> >> If I get some positive feedback on this one, I'll submit a PR. You >> can >> try it out by typing "make actual-package-depends" as opposed to >> "make >> package-depends." > > Ok, I'm really trying to make sense of these numbers... > > For gnome2-2.18.1_1 on my -current system... > > rnoland-ibm% make package-depends|wc -l > 362 > rnoland-ibm% make actual-package-depends|wc -l > 294 > > Registered the old way: > rnoland-ibm% grep @pkgdep /var/db/pkg/gnome2-2.18.1_1/+CONTENTS|wc -l > 176 > > and the new way: > rnoland-ibm% grep @pkgdep /var/db/pkg/gnome2-2.18.1_1/+CONTENTS|wc -l > 294 > > I put together an awk script yesterday which was very close to the one > Alexander posted and got 295... and the diff of the output of my awk and > actual-package-depends is much more than a single line, which I also > can't yet explain. > > robert. On my system, which is a totally fresh install of gnome2 from xorg-7.2, I get 354 every which way. My guess is that you have some older ports or packages installed, which the old way doesn't pick up properly. Or you have some incomplete +CONTENTS in your system.