From owner-freebsd-ports@FreeBSD.ORG Sat May 12 18:33:41 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 7420216A404 for ; Sat, 12 May 2007 18:33:41 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (math.missouri.edu [128.206.184.200]) by mx1.freebsd.org (Postfix) with ESMTP id 49DC413C448 for ; Sat, 12 May 2007 18:33:41 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (localhost [127.0.0.1]) by math.missouri.edu (8.13.1/8.13.1) with ESMTP id l4CIXen9065414; Sat, 12 May 2007 13:33:40 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Received: from localhost (stephen@localhost) by math.missouri.edu (8.13.1/8.13.1/Submit) with ESMTP id l4CIXejg065411; Sat, 12 May 2007 13:33:40 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Date: Sat, 12 May 2007 13:33:40 -0500 (CDT) From: Stephen Montgomery-Smith To: Kris Kennaway In-Reply-To: <20070512175824.GA23103@xor.obsecurity.org> Message-ID: <20070512133054.B5588@math.missouri.edu> References: <464597C6.3030406@gmx.de> <20070512174011.GA22526@xor.obsecurity.org> <4645FF71.60100@gmx.de> <20070512175824.GA23103@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "\[LoN\]Kamikaze" , freebsd-ports@freebsd.org 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: Sat, 12 May 2007 18:33:41 -0000 On Sat, 12 May 2007, Kris Kennaway wrote: > On Sat, May 12, 2007 at 07:54:57PM +0200, [LoN]Kamikaze wrote: >> >> >> Kris Kennaway wrote: >>> On Sat, May 12, 2007 at 12:32:38PM +0200, [LoN]Kamikaze wrote: >>>> With Xorg updated to 7.2 many ports take much longer to register than >>>> to download, build and install. I think it's time to abandon the >>>> recursive pulling in of dependencies. >>> >>> I think that before you abandon something you should first understand >>> it. Figure out what is taking so long to register the port and then >>> work out whether it can be optimized. >> >> What takes so long in my opinion, is that not only the dependencies are >> registered as dependencies, but that the dependencies of dependencies are also >> registered as dependencies and so forth. Since all the commands supplied by >> ports walk dependencies recursively, as well as tools like portupgrade, this >> is unnecessary (that is, assuming that I understood bsd.port.mk correctly). >> >> To abandon this behaviour would in my opinion only have advantages. > > Go and substantiate your opinion with some facts, then we'll talk. I've done a little poking around. As of right now, I think that the registering takes a huge amount of time inside of a function called "sortdeps" which may be found in /usr/src/usr.sbin/pkg_install/lib/deps.c. Stephen