From owner-freebsd-ports@FreeBSD.ORG Fri Sep 24 08:28:26 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7681016A4CE; Fri, 24 Sep 2004 08:28:26 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A6AB43D49; Fri, 24 Sep 2004 08:28:25 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i8O8SJ8u008943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 24 Sep 2004 09:28:19 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i8O8SEgu008942; Fri, 24 Sep 2004 09:28:14 +0100 (BST) (envelope-from matthew) Date: Fri, 24 Sep 2004 09:28:14 +0100 From: Matthew Seaman To: Kyle Mott Message-ID: <20040924082814.GD8309@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Kyle Mott , 'Steve Hodgson' , freebsd-ports@freebsd.org, ports@freebsd.org References: <200409041154.53129.steve@howes-macnaghten.com> <000801c4a1fb$3eaf36f0$150ba8c0@kyle> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xJK8B5Wah2CMJs8h" Content-Disposition: inline In-Reply-To: <000801c4a1fb$3eaf36f0$150ba8c0@kyle> 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]); Fri, 24 Sep 2004 09:28: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: ports@freebsd.org cc: 'Steve Hodgson' cc: freebsd-ports@freebsd.org Subject: Re: Bus Error in protsdb.rb updating INDEX.db X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 08:28:26 -0000 --xJK8B5Wah2CMJs8h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 23, 2004 at 10:56:32PM -0700, Kyle Mott wrote: >=20 > I still seem to be having this problem, yet I have tried both Method #1 > and Method #2 listed below. I couldn't find 'portindexdb' to try Method > #0 out. Is my only option to cvsup + buildworld? >=20 > root@smith:/usr/ports# rm INDEX.db > root@smith:/usr/ports# inplace rl /usr/ports/INDEX-5 > root@smith:/usr/ports# portsdb -fUu > Updating the ports index ... Generating INDEX.tmp - please wait.. Done. > done > [Updating the portsdb in /usr/ports ... - 11735 port > entries found > .........1000.........2000.........3000.........4000.........5000....... > ..6000.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/po > rtsdb.rb:587: [BUG] Bus Error > ruby 1.8.2 (2004-07-29) [i386-freebsd4] >=20 > Abort (core dumped)=20 > =20 A fix for this problem was committed to RELENG_4 and RELENG_5 a few days ago, HEAD some days before that -- so, yes cvsup and buildworld to the head of one of those branches will fix things. I don't think there are any plans to commit it to any other branches though. Failing that, and now that portindex has been withdrawn, the only other way to get past the problem is to configure portupgrade to use a different hashing function. The simplest way to do that is just to set an environment variable: # setenv PORTS_DBDRIVER bdb1_hash There are several variations on that -- different DB drivers, using pkgtools.conf to put the settings into the environment etc., but those have been covered on this and other FreeBSD lists and you should have no trouble searching the archives for them. 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 --xJK8B5Wah2CMJs8h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBU9qeiD657aJF7eIRAn3QAJ9krwh/DHhZ35U1s0SXaz/1v1QrcwCfd3fS 54hDxBL3xYCNd+ms/8bz6is= =UwvD -----END PGP SIGNATURE----- --xJK8B5Wah2CMJs8h--