From owner-freebsd-ports@FreeBSD.ORG Thu Jul 13 09:43:30 2006 Return-Path: X-Original-To: ports@freebsd.org 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 15CDB16A4DA for ; Thu, 13 Jul 2006 09:43:30 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from smtp1.uct.ac.za (smtp1.uct.ac.za [137.158.128.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73F8543D45 for ; Thu, 13 Jul 2006 09:43:29 +0000 (GMT) (envelope-from bsd@lordcow.org) Received: from [137.158.128.125] (helo=anubis.uct.ac.za) by smtp1.uct.ac.za with esmtp (Exim 4.30; FreeBSD) id 1G0xjD-000LkU-2c for ports@freebsd.org; Thu, 13 Jul 2006 11:43:27 +0200 Received: from lhc.phy.uct.ac.za ([137.158.37.93]) by anubis.uct.ac.za with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1G0xjD-000I0Y-0D for ports@freebsd.org; Thu, 13 Jul 2006 11:43:27 +0200 Received: from lordcow by lhc.phy.uct.ac.za with local (Exim 4.62) (envelope-from ) id 1G0xjD-0007fG-Sp for ports@freebsd.org; Thu, 13 Jul 2006 11:43:27 +0200 Date: Thu, 13 Jul 2006 11:43:27 +0200 From: gareth To: ports@freebsd.org Message-ID: <20060713094327.GA29332@lordcow.org> References: <200606301851.39983.daeg@houston.rr.com> <200606302042.50537.donaldjoneill@gmail.com> <20060703090141.GA4997@lordcow.org> <200607030556.40861.duncan.fbsd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607030556.40861.duncan.fbsd@gmail.com> User-Agent: Mutt/1.5.11+cvs20060403 Cc: Subject: Re: portupgrade portupgrade leaves an error.... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jul 2006 09:43:30 -0000 On Mon 2006-07-03 (05:56), Donald J. O'Neill wrote: > OK, then you're going to have to get a bit more aggressive. This is what I did > to take care of the problem on my 6.1-STABLE system: > > mv /usr/ports/INDEX-6.db --> INDEX-6.db.org > mv /var/db/pkg/pkgdb.db --> pkgdb.db.org > > pkg_delete portupgrade-2.1.3.1,2 > pkg_delete ruby18-bdb-0.5.9 > pkg_delete ruby18-bdb1-0.2.2 > pkg_delete db4-4.0.14_1,1 > pkg_delete db41-4.1.25_3 > pkg_delete db42-4.2.52_4 > > I left db43-4.3.29, It would be needed later and reomoving it would cause too > many other things to have to be rebuilt (or I get a bite in the ass if I > don't). > > 'cd /usr/ports/sysutils/portupgrade' > 'make conf' ?----- select bdb4, it'll use db43 as that's what's installed. > 'make package-recursive' > > 'pkgdb -F'????????fix the dependencies and rebuild pkgdb.db > portversion -v |grep needs??????rebuilds portsdb (and rechecks pkgdb.db) and I > find out what ports need upgrading. > > 'portsnap fetch update' > 'portversion -v |grep needs' > > It works and I now have a working portupgrade-2.1.3.2,2 > > I did a lot of reading about this problem and a lot of looking at dependencies > using pkg_info -r and -R to come up with the way I corrected the problem. I > have two other 6.1 systems (one STABLE, one RELEASE) to fix the problem on. > They are a little different as they don't have the same things installed on > them that are on my personal system, but they are similar in what I'm going > to do to fix them. hi, i tried all've that, but when i get to 'pkgdb -F', this's what it says: # pkgdb -F ---> Checking the package registry database [Updating the pkgdb in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!] #