From owner-freebsd-questions@FreeBSD.ORG Fri Apr 27 20:13:51 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5CA616A403 for ; Fri, 27 Apr 2007 20:13:51 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: from qsmtp4.mc.surewest.net (qsmtp.mc.surewest.net [66.60.130.145]) by mx1.freebsd.org (Postfix) with SMTP id C6C2A13C44C for ; Fri, 27 Apr 2007 20:13:51 +0000 (UTC) (envelope-from drew@mykitchentable.net) Received: (qmail 25663 invoked from network); 27 Apr 2007 13:13:51 -0700 Received: by simscan 1.1.0 ppid: 25636, pid: 25639, t: 2.2909s scanners: regex: 1.1.0 attach: 1.1.0 clamav: 0.84/m:43/d:3122 spam: 3.0.3 Received: from unknown (HELO blacklamb.mykitchentable.net) (66.205.146.210) by qsmtp4 with SMTP; 27 Apr 2007 13:13:49 -0700 Received: from [192.168.25.6] (unknown [192.168.25.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 1D7CB1648BB; Fri, 27 Apr 2007 13:13:47 -0700 (PDT) Message-ID: <46325982.7030506@mykitchentable.net> Date: Fri, 27 Apr 2007 13:13:54 -0700 From: Drew Tomlinson User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Lowell Gilbert References: <4631EB20.20808@mykitchentable.net> <4631F760.80809@daleco.biz> <44hcr2x7ev.fsf@be-well.ilk.org> <46320CF8.90002@mykitchentable.net> <44abwtu2c3.fsf@be-well.ilk.org> <463247C0.2050509@mykitchentable.net> <44647hy3yg.fsf@be-well.ilk.org> In-Reply-To: <44647hy3yg.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on qsmtp4.surewest.net X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL autolearn=no version=3.0.3 Cc: FreeBSD Questions Subject: Re: How to Upgrade Berkeley DB? 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: Fri, 27 Apr 2007 20:13:52 -0000 On 4/27/2007 1:09 PM Lowell Gilbert wrote: > Drew Tomlinson writes: > > >> On 4/27/2007 10:58 AM Lowell Gilbert wrote: >> >>> Drew Tomlinson writes: >>> >>> >>> >>>> Thanks for all the replies. Funny thing is that when trying the >>>> "portupgrade -o" solution and using "pkg_info | grep portupgrade", no >>>> results were returned. The /var/db/pkg directory had no portupgrade* >>>> entries. Thus I just used "portupgrade -N portupgrade" to upgrade. >>>> All seemed OK. I did notice a "make config" window that asked me >>>> which version of Berkeley DB to use for the backend. Not knowing, I >>>> just chose the default of ">=2" and the port built without error. >>>> >>>> >>> Missing entries in the package database? Could be a problem, although >>> more likely it's just a mistake of some sort. >>> >>> >>> >>>> Next I attempted "pkgdb -L" suggested in the pkg-message file. It >>>> returned this error: >>>> >>>> blacksheep# pkgdb -L >>>> [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!] >>>> >>>> I assume this is due to choosing the incorrect Berkeley DB version? >>>> So should I rebuild the portupgrade port and choose Berkeley DB 1.85 >>>> or is it recommended to convert the pkgdb to the newer version? If I >>>> should convert, how? >>>> >>>> >>> My build machine is powered down today, so I can't get the exact >>> answer, but it was in /usr/ports/UPDATING at the time. >>> >> I just searched /usr/ports/UPDATING. I only find two entries, neither >> of which seems to cover my situation: >> > > You missed 20060703. > Ah, now I see. Berkeley is misspelled so when I searched the file for "Berkeley", it didn't catch "Berkley". Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com