From owner-freebsd-questions@FreeBSD.ORG Thu Oct 7 21:25:56 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 7757E16A4CE for ; Thu, 7 Oct 2004 21:25:56 +0000 (GMT) Received: from exchmx2.lsuhsc.edu (exchmx2.lsuhsc.edu [155.58.212.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA29743D31 for ; Thu, 7 Oct 2004 21:25:55 +0000 (GMT) (envelope-from jmire@lsuhsc.edu) Received: by exchmx2.lsuhsc.edu with Internet Mail Service (5.5.2657.72) id ; Thu, 7 Oct 2004 16:25:53 -0500 Message-ID: From: "Mire, John" To: "'m.seaman@infracaninophile.co.uk'" Date: Thu, 7 Oct 2004 16:25:53 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.1 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: Thu, 07 Oct 2004 21:25:56 -0000 Thanks, guess it's time to use the work around, the env setting worked fine. -- "Ethernet (n): something used to catch the etherbunny" John Mire: jmire@lsuhsc.edu Network Administration 318-675-5434 LSU Health Sciences Center - Shreveport -----Original Message----- From: Matthew Seaman To: Mire, John CC: Matt Navarre ; freebsd-questions@freebsd.org Sent: Thu Oct 07 12:41:17 2004 Subject: Re: Portupgrade problem, possible pkgdb problem? On Thu, Oct 07, 2004 at 10:45:46AM -0500, Mire, John wrote: > I'm still getting this error after a cvsup+buildworld, a make fetchindex and > I have deleted /var/db/pkg/pkgdb.db and rebuilt it, what's the patch?: > > test# uname -v > FreeBSD 5.2.1-RELEASE-p11 #12: Wed Oct 6 17:13:13 CDT 2004 > root@test:/usr/obj/usr/src/sys/TEST > test# cd /usr/ports > test# make fetchindex > Receiving INDEX-5 (5881230 bytes): 100% > 5881230 bytes transferred in 16.9 seconds (339.01 kBps) > test# portupgrade -R sudo > [Failed `Inappropriate file type or format'] [Updating the portsdb > in /usr/ports ... - 11735 port entries found > .........1000.........2000.........3000.........4000.........5000.........60 > 00.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsdb.rb > :587: [BUG] Bus Error > ruby 1.8.2 (2004-07-29) [i386-freebsd5] > > Abort (core dumped) > test# rm /var/db/pkg/pkgdb.db > test# portupgrade -R sudo > [Rebuilding the pkgdb in /var/db/pkg ... - 54 packages > found (-0 +54) ...................................................... done] > [Failed `Inappropriate file type or format'] [Updating the portsdb > in /usr/ports ... - 11735 port entries found > .........1000.........2000.........3000.........4000.........5000.........60 > 00.........7000.........8000..../usr/local/lib/ruby/site_ruby/1.8/portsdb.rb > :587: [BUG] Bus Error > ruby 1.8.2 (2004-07-29) [i386-freebsd5] > > Abort (core dumped) > test# The patch was only applied to RELENG_4, RELENG_5 and HEAD -- not RELENG_5_2. However, you can extract it from cvs and apply it yourself by hand if you aren't in a position to upgrade right now -- see: http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/db/btree/bt_split.c.diff? r1=1.5&r2=1.7 (Remember that you'll have to re-apply that patch each time you cvsup(1) your src) Otherwise just use one of the variations on: setenv PORTS_DBDRIVER=bdb1_hash as a workaround. Cheers, Matthew -- 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