From owner-freebsd-ports@FreeBSD.ORG Fri Feb 29 21:03:38 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49F3D106566B; Fri, 29 Feb 2008 21:03:38 +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 251A28FC1C; Fri, 29 Feb 2008 21:03:38 +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 m1TKPnqS053573; Fri, 29 Feb 2008 12:25:49 -0800 (PST) (envelope-from mahan@mahan.org) Message-ID: <47C86A22.4010706@mahan.org> Date: Fri, 29 Feb 2008 12:25:06 -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: freebsd-questions@freebsd.org, ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Having problems with my ports configuration 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: Fri, 29 Feb 2008 21:03:38 -0000 System Info: Compaq Presario (AMD Athlon CPU) 256 Mbytes RAM 80 Gig IDE system disk FreeBSD 5.5-RELEASE #0: Tue May 23 14:58:27 UTC 2006 I am having problems with my current installed ports. Last week the drive where /usr/ports is upon (80 Gig IDE) start generating READ errors on the console and hanging the system. It took a few days of doing multiple reboots, fsck and BIOS work before it was back operating again. 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 - 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 I've tried fetching a new INDEX, done a pkgdb -Fu, but nothing seems to work. Also, 'pkg_info' gives "no packages installed" and portversion gives "** No matching package found: *". 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'? I've looked through the web and the archives and cannot seem to find a similar type of problem. Thanks, Patrick