From owner-freebsd-ports Fri Dec 27 13:33:59 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FEE337B401 for ; Fri, 27 Dec 2002 13:33:57 -0800 (PST) Received: from natto.numachi.com (natto.numachi.com [198.175.254.216]) by mx1.FreeBSD.org (Postfix) with SMTP id 37FCF43ED1 for ; Fri, 27 Dec 2002 13:33:56 -0800 (PST) (envelope-from reichert@numachi.com) Received: (qmail 26804 invoked by uid 1001); 27 Dec 2002 21:38:13 -0000 Date: Fri, 27 Dec 2002 16:38:13 -0500 From: Brian Reichert To: ports@freebsd.org Subject: Re: 'pkgdb -F' choking on nonexistant package? Message-ID: <20021227213813.GB26396@numachi.com> References: <20021227181934.GD559@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021227181934.GD559@numachi.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Dec 27, 2002 at 01:19:34PM -0500, Brian Reichert wrote: > I've had great fun messing with upgrading my ports via portupgrade, > et al., under 4.7-RELEASE. > > I seem to have tricked myself, somehow, though: > > # pkgdb -F > ---> Checking the package registry database > No such file or directory - "/var/db/pkg/galeon-1.2.6/+REQUIRED_BY" > > It looks like galeon went from 'galeon-1.2.6' to 'galeon-1.2.6_1' > > I deleted the gaelon package, and now it doesn't show up in my > package list: > > # pkg_info -a | grep galeon > > Yet, 'pkgdb -F' keeps yielding the same error message. My workaround, which seems to have helped in my case: I noticed that I could do a pkg_add of galeon-1.2.6_1.tgz. That created a dirctory called /var/db/pkg/galeon-1.2.6_1. I symlinked this to /var/db/pkg/galeon-1.2.6, and re-ran pkgdb: # pkgdb -F ---> Checking the package registry database [Updating the pkgdb in /var/db/pkg ... - 204 packages found (-1 +25) (...)......................... done] Duplicated origin: www/galeon - galeon-1.2.6 galeon-1.2.6_1 Unregister any of them? [no] y Unregister galeon-1.2.6 keeping the installed files intact? [no] yes -> galeon-1.2.6_1 is kept. --> Saving the galeon-1.2.6's +CONTENTS file as /var/db/pkg/galeon-1.2.6_1/+CONTENTS.galeon-1.2.6 --> Unregistering galeon-1.2.6 --> Done. [Updating the pkgdb in /var/db/pkg ... - 203 packages found (-1 +0) (...) done] Stale dependency: gnome-fifth-toe-1.4.1b2_2 -> galeon-1.2.6 (www/galeon): Fixed. (-> galeon-1.2.6_1) Stale dependency: xanim-2.80.2 -> freetype2-2.1.2 (print/freetype2): Fixed. (-> freetype2-2.1.2_1) Stale dependency: xanim-2.80.2 -> XFree86-libraries-4.2.1_1 (x11/XFree86-4-libraries): Fixed. (-> XFree86-libraries-4.2.1_5) My symlink seems to have been deleted, and pkgdb is satisfied, and I can continue with my upgrade, for now... -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA Intel architecture: the left-hand path To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message