From owner-freebsd-ports@FreeBSD.ORG Tue May 15 05:50: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 5F4EC16A403 for ; Tue, 15 May 2007 05:50:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 17B1913C4B9 for ; Tue, 15 May 2007 05:50:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5CA15.dip.t-dialin.net [84.165.202.21]) by redbull.bpaserver.net (Postfix) with ESMTP id 0AEB62E09C; Tue, 15 May 2007 07:50:29 +0200 (CEST) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id 61DD35B48A3; Tue, 15 May 2007 07:50:13 +0200 (CEST) Date: Tue, 15 May 2007 07:50:26 +0200 From: Alexander Leidinger To: freebsd-ports@freebsd.org, Stephen Montgomery-Smith Message-ID: <20070515075026.0c3e763b@deskjail> In-Reply-To: <46488221.1080904@math.missouri.edu> 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> <20070514173410.7yj77531yc8o444w@webmail.leidinger.net> <46488221.1080904@math.missouri.edu> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No 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 05:50:35 -0000 Quoting Stephen Montgomery-Smith (Mon, 14 May 2007 10:37:05 -0500): > Alexander Leidinger wrote: > > Quoting Stephen Montgomery-Smith (from > > Mon, 14 May 2007 09:39:13 -0500): > > > >> Someone pointed out that what I was proposing in +DEPENDENCIES is > > > > Probably me... > > > Yes > > >> already to be found in +CONTENTS. So here is a proof of concept patch > >> to /usr/ports/Mk/bsd.port.mk (proof of concept because no error > >> checking, and things like that). > > > > As you want to use the origin (it seems), grep for DEPORIGIN instead > > of pkgdep, should be even more fast than what you already have. > > > > I don't know how to do this except by using perl, which is not part of > the base system. This is because DEPORIGIN is on the next line. And I > am not expert at any tools except C and perl. Also I doubt that it will > speed things up very much - I think that grepping a bunch of files is > quite fast (compared to say invoking make which is very slow). The package name and the origin of a dependency are listed in +CONTENTS, and this can be parsed very easy with awk. When they are already in the right order in +CONTENTS, then it is a nobrainer to write a script. Tell me what you want (syntax of the output) and I try to get time to write a short awk script. You can incorporate it then. Bye, Alexander. -- You can press up-arrow or down-arrow to walk through a list of previous commands in tcsh. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137