From owner-freebsd-ports@FreeBSD.ORG Sat May 12 19:45:29 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 C993416A403 for ; Sat, 12 May 2007 19:45:29 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 4219E13C45A for ; Sat, 12 May 2007 19:45:29 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 12 May 2007 19:45:27 -0000 Received: from nat-wh-1.rz.uni-karlsruhe.de (EHLO mobileKamikaze.norad) [129.13.72.169] by mail.gmx.net (mp012) with SMTP; 12 May 2007 21:45:27 +0200 X-Authenticated: #5465401 X-Provags-ID: V01U2FsdGVkX1+qoLN9YvaqsIrOw8Lt34QN1lfP62hNXBk2tY/Y6u tgQTy52gyKuNe+ Message-ID: <4646193E.5040503@gmx.de> Date: Sat, 12 May 2007 21:45:02 +0200 From: "[LoN]Kamikaze" User-Agent: Thunderbird 2.0.0.0 (X11/20070506) MIME-Version: 1.0 To: Stephen Montgomery-Smith References: <464597C6.3030406@gmx.de> <20070512174011.GA22526@xor.obsecurity.org> <4645FF71.60100@gmx.de> <20070512175824.GA23103@xor.obsecurity.org> <20070512133054.B5588@math.missouri.edu> In-Reply-To: <20070512133054.B5588@math.missouri.edu> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: 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: Sat, 12 May 2007 19:45:29 -0000 Stephen Montgomery-Smith wrote: > > > 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 > Thank you for looking into this. I was expecting to have to make experminental patches for the pkg tools as well as in bsd.port.mk to back my opinion. However I wouldn't have been able to start earlier than two weeks from now. And before that I want to look into some acpi_ibm and psm regressions I'm experiencing with stable.