From owner-freebsd-ports@FreeBSD.ORG Thu Feb 1 06:56:43 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F09516A403 for ; Thu, 1 Feb 2007 06:56:43 +0000 (UTC) (envelope-from pckizer@nostrum.com) Received: from nostrum.com (shaman.nostrum.com [72.232.15.10]) by mx1.freebsd.org (Postfix) with ESMTP id 1C32513C4A5 for ; Thu, 1 Feb 2007 06:56:43 +0000 (UTC) (envelope-from pckizer@nostrum.com) Received: from [10.10.10.229] (charon.nostrum.com [71.164.156.225]) (authenticated bits=0) by nostrum.com (8.13.8/8.13.8) with ESMTP id l116NsPV002617 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 1 Feb 2007 00:23:55 -0600 (CST) (envelope-from pckizer@nostrum.com) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <200702010145.55226.molnarcs@gmail.com> References: <45C12797.7090707@hs-heilbronn.de> <200702010145.55226.molnarcs@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Philip Kizer Date: Thu, 1 Feb 2007 00:23:53 -0600 To: freebsd-ports@freebsd.org X-Mailer: Apple Mail (2.752.3) Received-SPF: pass (nostrum.com: 71.164.156.225 is authenticated by a trusted mechanism) Subject: Re: portupgrade-2.2.2_1,2 corrupts portsdb 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, 01 Feb 2007 06:56:43 -0000 On 2007, Jan 31, at 18:45, Csaba Molnar wrote: > I deleted /var/db/pkg/pkgdb.db, then rebuilt it with pkgdb -u I > think, and > that seems to have worked. > > While I was updating ports before this error showed up, the options > screen for > portupgrade showed up - and option WITH_BDB4 was unchecked. I > changed that > (so portupgrade was now built with bdb4) - and the problems began > right after > this update. I think you are on the right track, I had a working stable portupgrade/portsdb environment and after the last update I started getting that as well...my options for portupgrade to use BDB4 were unchanged from before through after the upgrade: WITH_BDB4 was true for both cases. If I recompile portupgrade with: WITHOUT_BDB4=true WITH_BDB1=true which also requires me to pkg_delete ruby-bdb, then it all seems to work just fine with no more warnings or errors. After a bit more trial and error, I find I can replicate the problem by performing the following: # portinstall databases/ruby-bdb # portversion -l'<' -v [missing key: categories] [Updating the portsdb in /usr/ports ... - 16414 port entries found ......... 1000.........2000.........3000.........4000.........5000.........6000... ...... 7000.........8000.........9000.........10000.........11000.........12000 .........13000.........14000.........15000.........16000.... ..... done] missing key: categories: Cannot read the portsdb! [...snip...] # portversion -l'<' -v [missing key: categories] [Updating the portsdb in /usr/ports ... - 16414 port entries found ......... 1000.........2000.........3000.........4000.........5000.........6000... ...... 7000.........8000.........9000.........10000.........11000.........12000 .........13000.........14000.........15000.........16000.... ..... done] missing key: categories: Cannot read the portsdb! and then I can remove any visible problems by performing: # pkg_delete ruby18-bdb-0.5.9_2 # portversion -l'<' -v [Updating the pkgdb in /var/db/pkg ... Failed `Inappropriate file type or format'; rebuild needed] [Rebuilding the pkgdb in /var/db/pkg ... - 428 packages found (-0 +428) .................................................................. ........................................................................ ........................................................................ ........................................................................ ........................................................................ ........................................................................ .. done] [Failed `Inappropriate file type or format'] [Updating the portsdb in /usr/ports ... - 16414 port entries found ......... 1000.........2000.........3000.........4000.........5000.........6000... ...... 7000.........8000.........9000.........10000.........11000.........12000 .........13000.........14000.........15000.........16000.... ..... done] [...snip...] # portversion -l'<' -v [...snip...] -philip