From owner-freebsd-questions@FreeBSD.ORG Sun Sep 26 09:14:02 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 E7C6D16A4CE for ; Sun, 26 Sep 2004 09:14:01 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEA5F43D1D for ; Sun, 26 Sep 2004 09:14:00 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1] (may be forged))i8Q9Ds3A048604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Sep 2004 10:13:54 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8Q9DsPM048603; Sun, 26 Sep 2004 10:13:54 +0100 (BST) (envelope-from matthew) Date: Sun, 26 Sep 2004 10:13:54 +0100 From: Matthew Seaman To: Matt Navarre Message-ID: <20040926091354.GB48181@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Matt Navarre , Alex de Kruijff , freebsd-questions@freebsd.org References: <200409251435.48200.mnavarre@cox.net> <200409251618.47785.mnavarre@cox.net> <20040926001322.GC796@alex.lan> <200409251814.18846.mnavarre@cox.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9zSXsLTf0vkW971A" Content-Disposition: inline In-Reply-To: <200409251814.18846.mnavarre@cox.net> 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]); Sun, 26 Sep 2004 10:13:54 +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: Portupgrade problem, possible pkgdb problem? 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: Sun, 26 Sep 2004 09:14:02 -0000 --9zSXsLTf0vkW971A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 25, 2004 at 06:14:18PM -0700, Matt Navarre wrote: > On Saturday 25 September 2004 05:13, Alex de Kruijff wrote: > > It could be a problem with the DBDriver. You could try this: > > Edit /root/.cs... > > and add > > PORTS_DBDRIVER=3Dbdb1_hash > > PKG_DBDRIVER=3Dbdb1_hash > Doesn't the DBDRIVER bug result in ruby dumping core? 'Cuz it isn't in th= is=20 > case, it fails gracefully. The core dump is seen with portsdb(1) trying to create /usr/ports/INDEX.db -- however, the underlying bug can affect anywhere that ruby uses bdb1_btree files. pkgdb(1) occasionally going a bit funny is a problem that's been known about for some time; usually just deleting and rebuilding /var/db/pkg/pkgdb.db will sort things out. However, I don't think anyone had ever tracked down the root cause of the problem. Then the portsdb coredumping thing came along, and it seems an obvious conclusion that the same thing might be affecting both programs. Note that a fix for the bdb1_btree problem has been in HEAD for a few weeks, and was MFC'd to both RELENG_4 and RELENG_5 a week or so ago. So an alternative fix could be cvsup+buildworld. Unfortunately, I don't think the fix will be applied to any of the existing 4.x-RELEASE or 5.x-RELEASE branches -- it will of course be in 5.3-RELEASE when that comes out, and it's pretty easy to do if you want to patch things yourself. =20 > I'll go ahead and try this, but I suspect that the /var/db/pkg info for= =20 > gnucash or one of it's dependancies got horked up. We'll see. >=20 > > Then execute this in your shell also. Then do: > > pkgdb -u && portsdb -u && portupgrade -R gnucash Yup. That should ensure you get a clean install of gnucash and all of its dependencies. Cheers, Matthew --=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 --9zSXsLTf0vkW971A Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBVohSiD657aJF7eIRAsnLAJ0bkjQgQM/gpPdMlDBLfYCo5uYxVACglJlv JsPT+HjVqbfN72kP27gUiRU= =viTN -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--