From owner-freebsd-questions@FreeBSD.ORG Wed Sep 14 00:17:11 2005 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 7412416A41F for ; Wed, 14 Sep 2005 00:17:11 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C8F443D48 for ; Wed, 14 Sep 2005 00:17:10 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 15829 invoked from network); 14 Sep 2005 10:17:10 +1000 Received: from andromeda.lef.com.au (HELO ?10.168.101.24?) (210.8.93.2) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 14 Sep 2005 10:17:10 +1000 Message-ID: <43276BF1.4060402@meijome.net> Date: Wed, 14 Sep 2005 10:16:49 +1000 From: Norberto Meijome User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mark Bucciarelli References: <20050913180432.GF924@rabbit> In-Reply-To: <20050913180432.GF924@rabbit> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Stale dependency question 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, 14 Sep 2005 00:17:11 -0000 Mark Bucciarelli wrote: > > php5-mysql-5.0.4_2 -> php5-5.0.4_2 (lang/php). > > We have php5-cgi-5.0.4_2 installed, not php5-5.0.4_2. So ... > > 1. Portversion tells me that php5-cgi needs upgrading--will doing a > portupgrade on php5-cgi fix this stale dependency? you wont be able to upgrade until you fix the dependency issues > 2. Or should I replace the php5 dependency with the php5-cgi when > running pkgdb -F? yes - you are basically telling the pkg manager that php5-mysql should depend on php5-cgi (which is the incantation of php5 you use) instead of php5 . > > Where can I view a list of a port's dependencies? I tried poking > around the ports directories to figure out the dependencies, but > /usr/ports/databases/php5-mysql just has a Makefile which points to > ../../lang/php5 as the MASTERDIR. Likewise, /usr/ports/www/php5-cgi just > has a Makefile that points to lang/php5. pkg_info -rR {pkg} will list the ports (for something installed) a dirty way to do it would be to do cd {port_1 dir}; make clean as this does a clean on other ports your port_1 depends on. dont thin there's an easy way to see what may depend on port_1 if you havent got port_1 installed. > This is inside a jail, with /usr/ports mounted nullfs from the jails > container. In the container, I did a cvsup and portsdb -Uu. Then in the > jail, I do pkgdb -F. should work as outside the jail - works here in a couple servers with several jails in the same way. > Let's see, the only other thing that might be relevant is that as part > of the original php5-cgi install, I renamed and moved the php binary > to a different place. Then, when pear needed the php binary, we make > a symlink from the moved and renamed binary back to the where pear > expected it. AFAIK, dependencies are calculated on what packages you have installed, not on the files themselves - i could be wrong though. Beto