From owner-freebsd-current@FreeBSD.ORG Wed Apr 14 16:29:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34DCC16A4D0 for ; Wed, 14 Apr 2004 16:29:38 -0700 (PDT) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0AE743D48 for ; Wed, 14 Apr 2004 16:29:37 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (cf8d7e993857467cea84eac55a64fce8@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128]) by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i3ENTS5k021937; Wed, 14 Apr 2004 16:29:33 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 0AB6852322; Wed, 14 Apr 2004 16:29:28 -0700 (PDT) Date: Wed, 14 Apr 2004 16:29:27 -0700 From: Kris Kennaway To: Robin Schoonover Message-ID: <20040414232927.GA56961@xor.obsecurity.org> References: <20040413121925.GB29867@voodoo.oberon.net> <407C4035.8020609@ciam.ru> <1081896823.772.58.camel@klotz.local> <20040414131949.3A56E43D31@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20040414131949.3A56E43D31@mx1.FreeBSD.org> User-Agent: Mutt/1.4.2.1i cc: Dag-Erling Sm?rgrav cc: FreeBSD Current cc: Garance A Drosihn cc: Martin Subject: Re: Second "RFC" on pkg-data idea for ports X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 23:29:38 -0000 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 14, 2004 at 07:19:47AM -0600, Robin Schoonover wrote: > On Wed, 14 Apr 2004 15:02:35 +0200, Dag-Erling Sm?rgrav wrote: > > Martin writes: > > > I would personally like it to use XML. I'm developing a small > > > application which is a kind of GUI for ports (works like a > > > browser). It is very difficult to parse the Makefiles to find > > > out which version number and which dependencies it has. Some > > > versions (like KDE3) are just variables and I don't have an > > > idea how to fetch them yet. > >=20 > > make -V > >=20 >=20 > I use make -V a lot, and it's slow (every time you run it, make has to > reread all the bsd.*.mk files, such as bsd.port.mk). The speed isn't much > of an issue when you only do one or two ports, but when you are examining > the entire ports collection, you notice.=20 >=20 > That said, I'd still rather use a makefile based ports system anyway. Necessarily, *any* file format you choose will need to parse auxilliary files analogous to bsd.port.mk. There's just no getting around the fact that ports rely on a lot of infrastructure and conditional evaluation to set their variables (although it can be optimized relative to what we have in CVS today [1]). Note that it's intentional that a lot of things are centralized in bsd.port.mk where they may be easily maintained, instead of being set in 10000 individual makefiles. Kris [1] As a test, I recently was able to cut index build times by 60% from 5 to a little over 2 minutes on test box with fast disks, by stripping out (almost) everything non-essential from the 'make describe' code path. --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAfclXWry0BWjoQKURAsFtAJ9v0Yv3HFQVTn/+e+Cxzc63+lKdYACgmezf 5wrh6+qWnYd+rXPmmTSUQn8= =f3ys -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--