From owner-freebsd-questions@FreeBSD.ORG Sun Sep 26 00:13:29 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 B81E716A4CE for ; Sun, 26 Sep 2004 00:13:29 +0000 (GMT) Received: from smtp13.wxs.nl (smtp13.wxs.nl [195.121.6.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2676643D55 for ; Sun, 26 Sep 2004 00:13:29 +0000 (GMT) (envelope-from freebsd@akruijff.dds.nl) Received: from kruij557.speed.planet.nl (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp13.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0I4M00AE9GMFID@smtp13.wxs.nl> for freebsd-questions@freebsd.org; Sun, 26 Sep 2004 02:13:28 +0200 (CEST) Received: from alex.lan (localhost [127.0.0.1]) by kruij557.speed.planet.nl (8.12.10/8.12.10) with ESMTP id i8Q0DNRk076063; Sun, 26 Sep 2004 02:13:23 +0200 Received: (from akruijff@localhost) by alex.lan (8.12.10/8.12.10/Submit) id i8Q0DMOO076062; Sun, 26 Sep 2004 02:13:22 +0200 Content-return: prohibited Date: Sun, 26 Sep 2004 02:13:22 +0200 From: Alex de Kruijff In-reply-to: <200409251618.47785.mnavarre@cox.net> To: Matt Navarre Message-id: <20040926001322.GC796@alex.lan> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.4.2.1i References: <200409251435.48200.mnavarre@cox.net> <200409251618.47785.mnavarre@cox.net> X-Authentication-warning: alex.lan: akruijff set sender to freebsd@akruijff.dds.nl using -f 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 00:13:29 -0000 On Sat, Sep 25, 2004 at 04:18:47PM -0700, Matt Navarre wrote: > On Saturday 25 September 2004 02:35, Matt Navarre wrote: > > I'm trying to upgrade gnucash, but portupgrade is choking: > > > > reichlieu# portupgrade -R gnucash > > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:323:in `deorigin': cannot > > convert nil into String (PkgDB::DBError) > > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:916:in > > `tsort_build' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `each' > > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `tsort_build' from > > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each' from > > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build' from > > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build' from > > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in `sort_build!' from > > /usr/local/sbin/portupgrade:674:in `main' > > from /usr/local/sbin/portupgrade:207:in `initialize' > > from /usr/local/sbin/portupgrade:207:in `new' > > from /usr/local/sbin/portupgrade:207:in `main' > > from /usr/local/sbin/portupgrade:1845 > > > > It looks like the pkgdb has something wrong with it, but pkgdb -Fu doesn't > > report anything that seems like it would cause portupgrade to bomb. There's > > a duplicate origin for cdrtools, but that doesn't seem to pertain. > > > > Should I move /var/db/pkg/pkgdb.db out of the way and regenerate it? Will > > pkgdb -u recreate pkgdb.db? > > Ok, that didn't work. I regenerated pkgdb.db using pkgdb -u and got the same > problem. Odd thing is that so far gnucash is the only installed package that > generates this error. I suppose I can pkg_delete it and try reinstalling. 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 Then execute this in your shell also. Then do: pkgdb -u && portsdb -u && portupgrade -R gnucash -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/FreeBSD/