From owner-freebsd-questions@FreeBSD.ORG Thu Dec 29 14:12:53 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5DAE516A41F for ; Thu, 29 Dec 2005 14:12:53 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from pih-relay05.plus.net (pih-relay05.plus.net [212.159.14.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id B95AA43D49 for ; Thu, 29 Dec 2005 14:12:52 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from movens.plus.com ([80.229.231.20] helo=[127.0.0.1]) by pih-relay05.plus.net with esmtp (Exim) id 1EryWN-0004Me-LR; Thu, 29 Dec 2005 14:12:47 +0000 Message-ID: <43B3EEF9.3010004@freebsd.org> Date: Thu, 29 Dec 2005 14:13:13 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200512071741.03088.kstewart@owt.com> In-Reply-To: <200512071741.03088.kstewart@owt.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: eoghan , Kent Stewart Subject: Re: pkgdb format X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 14:12:53 -0000 Kent Stewart wrote: > On Wednesday 07 December 2005 12:55 pm, eoghan wrote: >> Hello >> Ive recently upgraded to 6.0 and I decided to upgrade my ports... So >> I ran a: >> portupgrade -af >> Its running fine, but each time its upgrade a port I get: >> [Updating the pkgdb in /var/db/pkg ... Failed >> `Inappropriate file type or format'; rebuild needed] [Rebuilding the >> pkgdb in /var/db/pkg ... - 439 packages found (-0 >> +439) >> >> Just wondering if its to do with my upgrade to 6.0 (from 5.4) >> Thanks > > > Not from my experience. You are setting the package database interface > one way in one spot and using the default someplace else. Since they > are incompatible, it has to rebuild the port data base. Look for the > string bdb in your scripts and in pkgtools.conf. > I've got the same problem running `portupgrade -af' after upgrading from 5.4 -> 6 After reading this thread, I killed the upgrade, deleted INDEX-6, INDEX-6.db, and pkgdb.db; rebuilt pkgdb.db using `pkgdb -u' and re-ran `portupgrade -af' It started off OK (using dbm_hash) but after a couple of hours it had started continually rebuilding pkgdb.db. The sequence is: Build new version of port Rebuild pkgdb.db in bdb1_btree format Backup old version of port Rebuild pkgdb.db in dbm_hash format Uninstall old version of port Rebuild pkgdb.db in bdb1_btree format Deinstall Clean Rebuild pkgdb.db in dmb_hash format It is rebuilding pkgdb.db *4 times per port* which will add several hours to the build time. The fact that Kent hasn't had this problem and that the upgrade started off correctly for me suggests that it goes wrong when a particular port gets installed. OP: Did you find a solution to this? Kent: I don't have the string bdb in pkgtools.conf, nor anywhere else I can think to look, except INDEX-6.db - but that was built when portupgrade started and things worked OK at first. Anyone else got any ideas? Regards and a Happy New Year Mark