From owner-freebsd-stable@FreeBSD.ORG Mon Sep 20 13:43:28 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D4B916A4CE for ; Mon, 20 Sep 2004 13:43:28 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1C1843D48 for ; Mon, 20 Sep 2004 13:43:26 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i8KDhKZq009559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Sep 2004 14:43:20 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8KDhK2T009558; Mon, 20 Sep 2004 14:43:20 +0100 (BST) (envelope-from matthew) Date: Mon, 20 Sep 2004 14:43:20 +0100 From: Matthew Seaman To: gareth Message-ID: <20040920134320.GJ6502@happy-idiot-talk.infracaninophile.co.uk> References: <20040913153540.GA22877@kierun.org> <20040913160111.GA83205@happy-idiot-talk.infracaninophile.co.uk> <20040920133423.GA8608@lordcow.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DN8g+DOX2TxGxleI" Content-Disposition: inline In-Reply-To: <20040920133423.GA8608@lordcow.org> 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, 20 Sep 2004 14:43:20 +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: stable@freebsd.org Subject: Re: Crash of portsdb X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2004 13:43:28 -0000 --DN8g+DOX2TxGxleI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 20, 2004 at 03:34:23PM +0200, gareth wrote: > On Mon 2004-09-13 (17:01), Matthew Seaman wrote: > > Otherwise, there's a nice simple low impact workaround: > >=20 > > # setenv PORTS_DBDRIVER bdb1_hash =20 > i gave that a shot ta, & it fixed portsdb, but then i get this: >=20 > # portversion > [Failed `inappropriate file type or format'] [Updating the portsdb in /usr/ports ... - 11733 port entries found .........1000...= ......2000.........3000.........4000.........5000......./usr/local/lib/ruby= /site_ruby/1.8/portsdb.rb:587: [BUG] Segmentation fault > ruby 1.8.2 (2004-07-29) [i386-freebsd5] Yes. You have to set that environment variable *every time* you use any of the portupgrade(1) tools, which includes portversion(1) and portsdb(1). You can set it from within /usr/local/etc/pkgtools.conf if you want -- saves having to keep remembering to do that. Just add: ENV['PORTS_DBDRIVER'] =3D 'bdb1_hash'=20 to that file: right after the whole block of other ENV stuff is a good place. 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 --DN8g+DOX2TxGxleI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBTt54iD657aJF7eIRAtsJAJ9x805gqu/n3RffGKBERbM/XU7C4gCglF1U x7wZPo0w3pdtskom0G+hXgc= =r9VW -----END PGP SIGNATURE----- --DN8g+DOX2TxGxleI--