From owner-freebsd-questions@FreeBSD.ORG Mon Sep 13 16:14:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF1F516A4CE for ; Mon, 13 Sep 2004 16:14:11 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28ED043D2D for ; Mon, 13 Sep 2004 16:14:11 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i8DGE6Gi083807 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Sep 2004 17:14:06 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8DGE6id083806; Mon, 13 Sep 2004 17:14:06 +0100 (BST) (envelope-from matthew) Date: Mon, 13 Sep 2004 17:14:06 +0100 From: Matthew Seaman To: Joshua Tinnin Message-ID: <20040913161406.GB83205@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Joshua Tinnin , freebsd-questions@freebsd.org References: <5878D00B313A8D4E8D00B7E3082FC693067A1B@FF01.marsik.org> <413CA85B.9080500@makeworld.com> <200409122316.51822.krinklyfig@spymac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline In-Reply-To: <200409122316.51822.krinklyfig@spymac.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 13 Sep 2004 17:14:06 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Post Install Configuration Issues (ruby18 error) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2004 16:14:12 -0000 --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 12, 2004 at 11:16:51PM -0700, Joshua Tinnin wrote: > On Monday 06 September 2004 11:11 am, Chris =20 > wrote: >=20 > > Another way: - this changes the default database (btriev) to hash > > > > setenv PORTS_DBDRIVER bdb1_hash > > > > then run your portdb -u > > In fact, I opted for this one. I now run my ports tree updating > > scripts as I did BEFORE these issues. >=20 > What sort of effect might this have elsewhere? I'm sure this fix works,= =20 > but is there something else that could get borked by changing the=20 > default database? The only two files this change might affect are /usr/ports/INDEX.db and (possibly)[1] /var/db/pkg/pkgdb.db. In either case all it will cause to happen is that the file will be replaced by a file using a different on-disk data structure, but containing exactly the same data. =20 As both of those .db files are created by the portupgrade(1) suite of tools as a quick reference version of the data in /usr/ports/INDEX{,-5} in one case, or /var/db/pkg in the other, trashing the files is not the end of the world -- they can be rebuilt fairly easily from scratch. Anyway it's only the portupgrade(1) tools that are likely to be directly affected by that sort of corruption. Cheers, Matthew [1] Actually, I think you'ld have to set PKG_DBDRIVER=3Dbdb1_hash to affect /var/db/pkg/pkgdb.db similarly. However, the chances of that file growing large enough to trigger the bdb1_btree bug are fairly remote. --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBRcdOiD657aJF7eIRAu/rAJ9k8AD7jz3xePKay43COaERIUiDnACdFhAs X1lJEKEKDZnCYt1fjAoQWXs= =biAI -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--