From owner-freebsd-questions@FreeBSD.ORG Fri Feb 10 20:13:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0484C16A420 for ; Fri, 10 Feb 2006 20:13:55 +0000 (GMT) (envelope-from donaldjoneill@gmail.com) Received: from smtp101.sbc.mail.re2.yahoo.com (smtp101.sbc.mail.re2.yahoo.com [68.142.229.104]) by mx1.FreeBSD.org (Postfix) with SMTP id 8124843D46 for ; Fri, 10 Feb 2006 20:13:54 +0000 (GMT) (envelope-from donaldjoneill@gmail.com) Received: (qmail 9897 invoked from network); 10 Feb 2006 20:13:54 -0000 Received: from unknown (HELO ?192.168.1.201?) (donaldj@ameritech.net@68.248.197.242 with plain) by smtp101.sbc.mail.re2.yahoo.com with SMTP; 10 Feb 2006 20:13:53 -0000 From: "Donald J. O'Neill" To: freebsd-questions@freebsd.org Date: Fri, 10 Feb 2006 14:13:50 -0600 User-Agent: KMail/1.9.1 References: <1139589051.2185.8.camel@netvista.network> <17388.49778.982280.245532@jerusalem.litteratus.org> <1139596918.58491.3.camel@netvista.network> In-Reply-To: <1139596918.58491.3.camel@netvista.network> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-14" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602101413.51264.donaldjoneill@gmail.com> Cc: Robert Huff , Andrew Subject: Re: stale dependencies in 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: Fri, 10 Feb 2006 20:13:55 -0000 On Friday 10 February 2006 12:41, Andrew wrote: > On Fri, 2006-02-10 at 11:42 -0500, Robert Huff wrote: > > Andrew writes: > > > I've run "pkgdb -F" as portupgrade suggests, deleting stale > > > dependencies, but they seem to keep reappearing. > > > > I'm not an expert on pkgdb, but I'm pretty sure that's the way > > it works. > > You need to fix, not delete, the stale dependencies. This may > > take some effort the first time around. > > Beyond that, I question the wisdom of any "automatic" > > solution. There are definitely times when I do _not_ want to > > accept the fixes proposed by pkgdb -F. > > I guess what is unclear to me is how I go about fixing the stale > dependencies. I was under the impression that portupgrade would take > care of the dependencies for a particular port, and the "stale > dependency" was just an error in the package database (pkgdb). Is > this not the case? > > Thank-you, > Andrew > > _______________________________________________ A stale dependency can be a required program that's old, or it can be that there are two versions of the required program listed as installed in pkgdb, or it can be the required program was removed by another program and something else installed in its place and the dependcies not upgraded in pkgdb. 'pkgdb -F' will fix the problems it can safely fix. What it won't fix is a dependcency on a program that's been removed. You need to look at that message and figure out what's going on and correct the problem. Skipping or deleting the dependency is not taking care of the problem, it's just getting out of 'pkgdb -F'. Portupgrade - depending on how you used it - takes care of dependcies. A stale dependency is not an error in pkgdb. Something is wrong and you have to fix it. By the way, portaudit is a fine tool, but sometimes it gets in the way of what you want to do. It can prevent you from installing or upgrading some program that you want to. I can't say you would be better off without it, but I very seldom use it. Don