From owner-freebsd-questions@FreeBSD.ORG Thu Oct 7 15:45:51 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 DAB5E16A4CE for ; Thu, 7 Oct 2004 15:45:51 +0000 (GMT) Received: from exchmx2.lsuhsc.edu (exchmx2.lsuhsc.edu [155.58.212.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B3043D1D for ; Thu, 7 Oct 2004 15:45:51 +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 10:45:49 -0500 Message-ID: From: "Mire, John" To: Matthew Seaman , Matt Navarre Date: Thu, 7 Oct 2004 10:45:46 -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 15:45:52 -0000 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# -- "Ethernet (n): something used to catch the etherbunny" John Mire: jmire@lsuhsc.edu Network Administration 318-675-5434 LSU Health Sciences Center - Shreveport The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of > Matthew Seaman > Sent: Sunday, September 26, 2004 4:14 AM > To: Matt Navarre > Cc: freebsd-questions@freebsd.org > Subject: Re: Portupgrade problem, possible pkgdb problem? > > 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=bdb1_hash > > > PKG_DBDRIVER=bdb1_hash > > > Doesn't the DBDRIVER bug result in ruby dumping core? 'Cuz > it isn't in this > > 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. > > > I'll go ahead and try this, but I suspect that the > /var/db/pkg info for > > gnucash or one of it's dependancies got horked up. We'll see. > > > > > 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 > > -- > 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 >