From owner-freebsd-ports@FreeBSD.ORG Mon Sep 20 11:01:33 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E23016A4E2 for ; Mon, 20 Sep 2004 11:01:33 +0000 (GMT) Received: from mindfields.energyhq.es.eu.org (73.Red-213-97-200.pooles.rima-tde.net [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D9F743D2D for ; Mon, 20 Sep 2004 11:01:29 +0000 (GMT) (envelope-from flynn@energyhq.es.eu.org) Received: from scienide (scienide.energyhq.es.eu.org [192.168.100.1]) by mindfields.energyhq.es.eu.org (Postfix) with SMTP id 4FF0735032; Mon, 20 Sep 2004 13:01:26 +0200 (CEST) Date: Mon, 20 Sep 2004 13:01:06 +0200 From: Miguel Mendez To: krinklyfig@spymac.com Message-Id: <20040920130106.2d039cb6.flynn@energyhq.es.eu.org> In-Reply-To: <200409200011.21582.krinklyfig@spymac.com> References: <20040915093120.3067472e@dolphin.local.net> <20040916094335.M74116@isak.is> <20040916115518.5deb906e.flynn@energyhq.es.eu.org> <200409200011.21582.krinklyfig@spymac.com> X-Mailer: Sylpheed version 0.9.12-gtk2-20040622 (GTK+ 2.4.9; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Mon__20_Sep_2004_13_01_06_+0200_C0E63gLyWd8TtTwu" cc: ports@freebsd.org Subject: Re: Fw: Re: Drop of portindex X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 11:01:33 -0000 --Signature=_Mon__20_Sep_2004_13_01_06_+0200_C0E63gLyWd8TtTwu Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Mon, 20 Sep 2004 00:11:21 -0700 Joshua Tinnin wrote: [portindex replacement] > > I'm writing the code in C and the license will be, of course, BSD. > > Hopefully I'll have a preview demo by the end of the week. > > Just curious if you had made any progress with this. I'm not really a > programmer, but I could help test this if you want. Unfortunately I haven't had enough time to work on it, but you can have a look at the current code sans varexpand(); and other goodies. It currently generates the index without the depends fields, but make search works on it. The tarball: http://www.energyhq.es.eu.org/files/portsindexer.tar.gz Untar it and compile the program. Then set the PORTS_INDEX env variable to e.g. /tmp/INDEX and run the program. In its current embryonic state is needs about 1 minute to generate the (incomplete) INDEX, and is still i/o bound, so I'm pretty confident the needed time won't grow that much once the rest of the code is in there. I have some ideas about the pre-parsed mk files like I mentioned earlier and I'll probably cache dependencies in a hash table. I honestly don't know if it's fast or slow because I never user portindex, so I don't know how it compares. If portindex was equally fast maybe I'd consider implementing it in a higher level language (python/perl/ruby). Cheers, -- Miguel Mendez http://www.energyhq.es.eu.org PGP Key: 0xDC8514F1 Note: All HTML and non-english mail goes to /dev/null --Signature=_Mon__20_Sep_2004_13_01_06_+0200_C0E63gLyWd8TtTwu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBTrh2nLctrNyFFPERAkehAJ4mZHgEqp36QkOb1mWvSc0SxXe5YwCfeF47 qZujLqh5KD0Mt0UApUN0Q7g= =wTmp -----END PGP SIGNATURE----- --Signature=_Mon__20_Sep_2004_13_01_06_+0200_C0E63gLyWd8TtTwu--