From owner-freebsd-ports@FreeBSD.ORG Sat Jul 1 09:07:05 2006 Return-Path: X-Original-To: freebsd-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 1E9AF16A4F4 for ; Sat, 1 Jul 2006 09:07:05 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx1.FreeBSD.org (Postfix) with SMTP id 221C1440AC for ; Sat, 1 Jul 2006 08:45:35 +0000 (GMT) (envelope-from matthias.andree@gmx.de) Received: (qmail invoked by alias); 01 Jul 2006 08:45:35 -0000 Received: from p509146DC.dip0.t-ipconnect.de (EHLO m2a2.dyndns.org) [80.145.70.220] by mail.gmx.net (mp027) with SMTP; 01 Jul 2006 10:45:35 +0200 X-Authenticated: #428038 Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id 172F92006C2; Sat, 1 Jul 2006 10:45:33 +0200 (CEST) Received: from m2a2.dyndns.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14339-05; Sat, 1 Jul 2006 10:45:31 +0200 (CEST) Received: by merlin.emma.line.org (Postfix, from userid 500) id 85648200719; Sat, 1 Jul 2006 10:45:31 +0200 (CEST) From: Matthias Andree To: Sergey Matveychuk In-Reply-To: <44A568A9.3030206@FreeBSD.org> (Sergey Matveychuk's message of "Fri, 30 Jun 2006 22:08:41 +0400") References: <44A568A9.3030206@FreeBSD.org> X-PGP-Key: http://home.pages.de/~mandree/keys/GPGKEY.asc Date: Sat, 01 Jul 2006 10:45:31 +0200 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at emma.line.org X-Y-GMX-Trusted: 0 Cc: freebsd-ports@freebsd.org Subject: Re: HEADS-UP: portupgrade and pkgdb.db failures 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: Sat, 01 Jul 2006 09:07:05 -0000 Sergey Matveychuk writes: > Please note: > If you got problem with pkgdb.db (and INDEX.db) file afrer upgrade > portupgrade, remove it (them) and restart portupgrade. > (It was described in man page.) For those wondering, these are /var/db/pkg/pkgdb.db and /usr/ports/INDEX.db, INDEX-5.db or INDEX-6.db. > It's possible you'll get *.db brackage. It'll happen if you selected > WITH_BDB4 option and thought you have *.db in bdb2+ format. But it was > wrong, you had bases in dbd format. Now it's fixed and you'll have Is that bdb 1.85 format you're referring to? > honest bdb format, but you should remove databases files first. Would it be possible, reasonable and not too much effort to use the db_dump185* and db_load* utilities of the corresponding database library to automatically convert the database to the newer format in postinstall? (Can the proper Berkeley DB library version be queried from the ruby database code at all?) -- Matthias Andree