From owner-freebsd-questions@FreeBSD.ORG Mon Nov 13 15:35:37 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 60BBC16A592 for ; Mon, 13 Nov 2006 15:35:37 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 293D643D86 for ; Mon, 13 Nov 2006 15:35:33 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 14109 invoked from network); 13 Nov 2006 15:35:32 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 13 Nov 2006 15:35:32 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id A838028431; Mon, 13 Nov 2006 10:35:31 -0500 (EST) To: Eric Schuele References: <45549755.3090205@computer.org> From: Lowell Gilbert Date: Mon, 13 Nov 2006 10:35:31 -0500 In-Reply-To: <45549755.3090205@computer.org> (Eric Schuele's message of "Fri, 10 Nov 2006 09:14:29 -0600") Message-ID: <44hcx35ph8.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Questions Subject: Re: pkg_cutleaves listing needed ports as leaf nodes..... 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: Mon, 13 Nov 2006 15:35:37 -0000 Eric Schuele writes: > When I use `pkg_cutleaves -l` to list leaf nodes. It is listing > things I know are required by other apps. These aren't build > dependencies. > > For example, it lists g-wrap, and libpcap. If I remove g-wrap, my > gnucash2 immediately refuses to run. And I know libpcap was an > "option" I selected for NTop. There are others as well. I have > noticed that a `make pretty-print-run-depends-list` is empty for > gnucash2. Is that significant? > > Why would these not be +REQUIRED_BY something? `pkgdb -F` doesn't > mention anything at all. > > If something has no +REQUIRED_BY file... how can I go about > determining why its on my machine or which port installed it? > Obviously top level items I installed aside. > > Thanks. > > [Running 6.2-PRERELEASE] The requirements files are definitely supposed to be there, and their non-presence constitutes corruption in your package database. pkg_cutleaves can't figure out requirements that aren't recorded, so getting the package database restored has to be your first step. The obvious way of fixing the package database is to reinstall all of your ports before removing the leaves. You may not need to use such a brute-force solution, though... If you have backups of /var/db/pkg, you could go through and try to find the dependencies as they existed when the backup was made. Obviously, this might not be fully up-to-date; however, it's likely to be better than what you have now. Good luck.