From owner-freebsd-questions@FreeBSD.ORG Sat Mar 1 04:21:21 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 133B1106566B; Sat, 1 Mar 2008 04:21:21 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id D78688FC1D; Sat, 1 Mar 2008 04:21:20 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from widowmaker.local (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id m214M5so030405; Fri, 29 Feb 2008 20:22:05 -0800 (PST) (envelope-from mahan@mahan.org) Message-ID: <47C8D9C0.1050905@mahan.org> Date: Fri, 29 Feb 2008 20:21:20 -0800 From: Patrick Mahan User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Shaun Amott References: <47C86A22.4010706@mahan.org> <20080301024554.GA30007@charon.picobyte.net> In-Reply-To: <20080301024554.GA30007@charon.picobyte.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, freebsd-questions@FreeBSD.org Subject: Re: Having problems with my ports configuration 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: Sat, 01 Mar 2008 04:21:21 -0000 Shaun Amott presented these words - circa 2/29/08 6:45 PM-> > On Fri, Feb 29, 2008 at 12:25:06PM -0800, Patrick Mahan wrote: >> One of the issues that came out of this was it seemed that the >> ports database (/var/db/pkg/pkgdb.db) was corrupt. So I tried >> to rebuild it by deleting it and setting PKG_DBDIR). I issued >> a 'portsdb -Uu' and it fails - > > Do you have anything left under /var/db/pkg (presumably not, unless you > still have PKG_DBDIR set)? > >> host# portsdb -Uu >> Updating the ports index ... Generating INDEX.tmp - please >> wait..p5-DateTime-Calendar-Japanese-0.06001: >> "/usr/ports/japanese/p5-DateTime-Calendar-Japanese-Era" non-existent -- >> dependency list incomplete >> ===> devel/p5-DateTime-Calendar-Japanese failed >> *** Error code 1 >> 1 error > > Looks like you might have an old ports tree. Have you updated it lately? > I had done a portsnap about 6 hours before the first READ error on the IDE drive. >> So, somehow, I have managed to seriously hammer my ports/package >> installation. Is there a way to recover this info? Is there any >> way of determing just what is installed (I know of a few: Perl, >> emacs, etc) from info stored under '/usr/ports'? > > If you just removed the portupgrade database (which is all you > mentioned), you haven't lost anything important: it can be regenerated. > If the whole of /var/db/pkg was obliterated, you'll have to reinstall > everything. If you know what version of each port you had installed > (plus the OPTIONS, etc., used), installing over the top of what you have > now is probably the best you can do. > Unfortunately, the whole of /var/db/pkg was *pocked*. As for knowing what versions were installed, well, that's what I am trying to determine. I guess it looks like I am going to need a big *pocking* hammer.... Thanks, Patrick