From owner-freebsd-hackers@FreeBSD.ORG Fri May 11 09:01:27 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 226BC16A405 for ; Fri, 11 May 2007 09:01:27 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 85A2513C45D for ; Fri, 11 May 2007 09:01:26 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l4B91IUs001513; Fri, 11 May 2007 19:01:18 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l4B91IGr001512; Fri, 11 May 2007 19:01:18 +1000 (EST) (envelope-from peter) Date: Fri, 11 May 2007 19:01:18 +1000 From: Peter Jeremy To: Ivan Voras Message-ID: <20070511090118.GE826@turion.vk2pj.dyndns.org> References: <200705102105.27271.blackdragon@highveldmail.co.za> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GID0FwUMdk1T2AWN" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-hackers@freebsd.org Subject: Re: New FreeBSD package system (a.k.a. Daemon Package System (dps)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 09:01:27 -0000 --GID0FwUMdk1T2AWN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-May-11 02:10:05 +0200, Ivan Voras wrote: >- I think it's time to give up on using BDB+directory tree full of text >files for storing the installed packages database, Why? > and I propose all of >this be replaced by a single SQLite database. I'll agree with Julian on this one. When it comes to maintenance, you can't beat a collection of documented text files. As a good example of why non-text databases for system configuration information aren't a good idea, I suggest you google "windows registry" :-) > SQLite is public domain >(can be slurped into base system), We don't want to unnecessarily increase the size of the base system. SQLite is also changing at a fairly rapid rate - which is incompatible with the FreeBSD release cycle. There have been 6 releases of SQLite so far this year. This would lead to a situation where even if we imported SQLite, we would still need an SQLite port for people who needed a more up-to-date version. >as reporting. The current pkg_info's behaviour that takes *noticable* >*time* to generate 1 line of output per package is horrible in this day >and age. After warming up the cache, I get one line every 1.5msec. Before that, I get one line every 15-20msec which isn't that bad. If that is too slow, then build a database as a cache - as long as the text files remain the master version. In which case, I'd prefer to use dbm(3) since it's already in the base system. >- A quick test confirms that the current bsdtar will happily ignore any >extra data at the end of a tgz/tbz archive, so package metadata can be >embedded there, thus conserving existing infrastructure and being fast >to parse. I suggest encoding this metadata in a sane and easy to parse >XML structure. Relying on undocumented features of tools is rarely a good idea. tar has other disadvantages (particularly the lack of random access) as a ports archive format. ZIP was suggested as an alternative. I also question the combination of "sane", "easy to parse" and "XML". --=20 Peter Jeremy --GID0FwUMdk1T2AWN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGRDDe/opHv/APuIcRAtD5AJ4h2eWIfPzE+k4IxHiH7mI+tfQGnQCfTUFB Pidw0pwzUiYDVrpn8xRWyJ0= =n0Ge -----END PGP SIGNATURE----- --GID0FwUMdk1T2AWN--