From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 00:36:33 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 8A75E16A417 for ; Thu, 30 Aug 2007 00:36:33 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.189]) by mx1.freebsd.org (Postfix) with ESMTP id 1304313C465 for ; Thu, 30 Aug 2007 00:36:32 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so250803fka for ; Wed, 29 Aug 2007 17:36:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I7ZoEj/BMwH2X/dX1SI6p6k0gc9kB2zWKGK6zHdCpeyGoXflth+qF70/p2mpsXMAG6cIMo5blhgM5QaQvUph0nM2OSkw+FrSQgHzuRi9p1tN52G3/VjlkyKeLWfeJzbir6wsocQzyZm3SmDq+b4INy6/aa6oRfiDOfTZNCAYwuU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UEVIJB78SWSyJyptKDHe1nosqnKBMdovjfwf+aa3hB4Uf1pHqEKYl8svyjVD51xASTOEfGSdu8bmy4adUHJpSyKgGuQDehrCPTxcDu7ZECBPJS31gaNJL3yQrqNyx6+LKE1B6DwzKVMUoj63QEKJ4U48emXyU81ZaWmvN0pKMb4= Received: by 10.82.162.14 with SMTP id k14mr2458918bue.1188434170328; Wed, 29 Aug 2007 17:36:10 -0700 (PDT) Received: by 10.82.191.14 with HTTP; Wed, 29 Aug 2007 17:36:10 -0700 (PDT) Message-ID: <80f4f2b20708291736p301a992ap7f54166f2d1b23f0@mail.gmail.com> Date: Wed, 29 Aug 2007 20:36:10 -0400 From: "Jim Stapleton" To: "Garrett Cooper" In-Reply-To: <46D57C7B.203@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20708290347g233f6e8ds4c27733b8c8723bc@mail.gmail.com> <46D57C7B.203@u.washington.edu> 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: Thu, 30 Aug 2007 00:36:33 -0000 Thanks - I moved the contents of /var/db/pkgdb to ~/pkg/, and then tried to build one of the packages. That gave me a different error, and a useful one. I went and ran portdb (not to be mistaken for pkgdb), in download-index mode. I copied the ~/pkg/ back to /var/db/pkgdb/, and the problem was fixed. Thanks, -Jim Stapleton On 8/29/07, Garrett Cooper wrote: > 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 >