From owner-freebsd-questions@FreeBSD.ORG Wed Aug 29 14:02:28 2007 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 72B1616A418 for ; Wed, 29 Aug 2007 14:02:28 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4F3B013C45D for ; Wed, 29 Aug 2007 14:02:28 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l7TE2Rmb005236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 29 Aug 2007 07:02:27 -0700 X-Auth-Received: from [192.168.10.45] (c-24-10-12-194.hsd1.ca.comcast.net [24.10.12.194]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l7TE2REv014755 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 29 Aug 2007 07:02:27 -0700 Message-ID: <46D57C7B.203@u.washington.edu> Date: Wed, 29 Aug 2007 07:02:35 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Jim Stapleton References: <80f4f2b20708290347g233f6e8ds4c27733b8c8723bc@mail.gmail.com> In-Reply-To: <80f4f2b20708290347g233f6e8ds4c27733b8c8723bc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.8.29.63722 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='SUPERLONG_LINE 0.05, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_419_BADTHINGS 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: freebsd-questions@freebsd.org Subject: Re: I was a dolt and killed my pkgdb 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: Wed, 29 Aug 2007 14:02:28 -0000 Jim Stapleton wrote: > I was building a couple of packages, figured I'd do it while at work. > I was using portupgrade, and accidentally hit enter before typing all > the package paths. I quickly ctrl-c'ed to exit, forgetting that that > should not be done while pkgdb is running. > > Now I get this error when I try to run pkgdb: > [root@bombadil /usr/ports]# portupgrade -N editors/xemacs > sysutils/screen www/lynx > [Rebuilding the pkgdb in /var/db/pkg ... - 9 > packages found (-0 +9) ......... done] > [Gathering depends for editors/xemacs > ............................................................................................................................................................................................................................................................................................................ > done] > [Gathering depends for sysutils/screen done] > [Gathering depends for www/lynx .. done] > > It will check for dependancies for the packages I want to install, but > it won't actually install them. > > I've tried: > pkgdb -f > pkgdb -af > mv /var/db/pkgdb/pkgdb.db ~; pkgdb -af > > and always end up with the same build results. > What is the next step? > > Thanks, > -Jim Stapleton Jim, If you know what packages files were being modified at the time (the ones that live inside /var/db/pkg, but aren't pkgdb.db), you can zap the actual files with little consequence. Don't forget to revive the files though by either executing make package/package-recursive (the Makefile method), pkg_add, or portupgrade's method. Cheers, -Garrett