From owner-freebsd-stable@FreeBSD.ORG Wed Nov 17 23:22:47 2004 Return-Path: Delivered-To: freebsd-stable@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6799D16A4CE for ; Wed, 17 Nov 2004 23:22:47 +0000 (GMT) Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C83043D48 for ; Wed, 17 Nov 2004 23:22:47 +0000 (GMT) (envelope-from ricardo@zoology.ubc.ca) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 3FCDE5542C for ; Wed, 17 Nov 2004 23:22:47 +0000 (GMT) (envelope-from ricardo@zoology.ubc.ca) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CC8B16A4CE for ; Wed, 17 Nov 2004 23:22:47 +0000 (GMT) Received: from flare.zoology.ubc.ca (flare.zoology.ubc.ca [137.82.3.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AE2943D48 for ; Wed, 17 Nov 2004 23:22:47 +0000 (GMT) (envelope-from ricardo@zoology.ubc.ca) Received: from localhost (localhost [127.0.0.1]) by flare.zoology.ubc.ca (Postfix) with ESMTP id 6A45715259; Wed, 17 Nov 2004 15:22:46 -0800 (PST) Received: from flare.zoology.ubc.ca ([127.0.0.1]) by localhost (flare.zoology.ubc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00249-01-13; Wed, 17 Nov 2004 15:22:44 -0800 (PST) Received: from [137.82.3.31] (panther.zoology.ubc.ca [137.82.3.31]) by flare.zoology.ubc.ca (Postfix) with ESMTP id 5084A15244; Wed, 17 Nov 2004 15:22:44 -0800 (PST) In-Reply-To: <20041117151328.V25542@carver.gumbysoft.com> References: <2761.10.0.0.26.1100726478.squirrel@10.0.0.26> <20041117151328.V25542@carver.gumbysoft.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-58-19995783; protocol="application/pkcs7-signature" Message-Id: <95420DA8-38EF-11D9-A859-0030657D2842@zoology.ubc.ca> From: Ricardo Oliva Date: Wed, 17 Nov 2004 15:22:43 -0800 To: Doug White X-Mailer: Apple Mail (2.619) X-Virus-Scanned: amavisd-new at zoology.ubc.ca X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Brian Szymanski cc: freebsd-stable@lists.freebsd.org Subject: Re: portupgrade crash on 4.9-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 23:22:47 -0000 --Apple-Mail-58-19995783 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed portsdb -Uu is the command. You have a few files involved: /var/db/pkg/pkgdb.db /usr/ports/INDEX /usr/ports/INDEX.db Don't really know which is which..... Cheers -- Ricardo Oliva Core Systems Administrator Zoology Department University of British Columbia Ph.: 604-822-3882 E-mail: ricardo@zoology.ubc.ca On 17-Nov-04, at 3:14 PM, Doug White wrote: > On Wed, 17 Nov 2004, Ricardo Oliva wrote: > >> Hi Brian, >> >> Just add: >> >> ENV['PORTS_DBDRIVER'] = 'bdb1_hash' >> >> to your /usr/local/etc/pkgtools.conf. >> >> Ran into that yesterday and came across a page on the web that helped >> me. > > This probably causes the db files to get regenerated -- the segfault > comes > because the file is corrupted. I don't remember the command to force a > rebuild and also don't rememeber where the db files are stored :) > > -- > Doug White | FreeBSD: The Power to Serve > dwhite@gumbysoft.com | www.FreeBSD.org --Apple-Mail-58-19995783--