From owner-freebsd-ports@FreeBSD.ORG Sun Oct 14 22:44:37 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDCB416A420 for ; Sun, 14 Oct 2007 22:44:37 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [82.208.36.70]) by mx1.freebsd.org (Postfix) with ESMTP id 8108E13C478 for ; Sun, 14 Oct 2007 22:44:37 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 8C37D19E02A; Mon, 15 Oct 2007 00:25:17 +0200 (CEST) Received: from [192.168.1.2] (r3a200.net.upc.cz [213.220.192.200]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id 0C6DC19E027; Mon, 15 Oct 2007 00:25:12 +0200 (CEST) Message-ID: <471297A8.8030201@quip.cz> Date: Mon, 15 Oct 2007 00:26:48 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: Paul Schmehl References: <20071014214854.GA9785@just.puresimplicity.net> <70B9DC0A085AF432265C026C@paul-schmehls-powerbook59.local> In-Reply-To: <70B9DC0A085AF432265C026C@paul-schmehls-powerbook59.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: I don't understand this X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 22:44:37 -0000 Paul Schmehl wrote: > --On October 14, 2007 4:48:54 PM -0500 Josh Tolbert > wrote: > >> >> It really is pretty straightforward. You have to get rid of _all_ >> of php4 before you install php5, then make sure the portsdb is >> straightened out. I'm not sure why folks are having so much trouble >> with this... >> > Well, I'll tell you why *I* had trouble with it. When you run "make > install clean" on the php?-extensions port, it *installs* the > extensions. Naturally, I expected that when I ran the uninstall, it > would uninstall the same ports that it installed previously. In fact, > when you uninstall the php4-extensions port, it *says* it uninstalled, > but it *does* nothing. It doesn't even remove the ports from the ports > db - nor does it remove the files installed with each extension port. > > That's *not* expected behavior for a port. > > I had no problem correcting the problem, but I should have had to. If > it's not possible to uninstall the extensions ports from > php4-extensions, then it should tell you that when you try to run > deinstall. For me it was a minor inconvenience. For a newbie, it could > be a disaster. Maybe you missunderstand phpX-extensions metaport. It install itself as phpX-extensions and phpX-something is installed as dependency. If you unsinstall phpX-extensions, only this one port is uninstalled and no dependency is touched. It is expected behavior! phpX-extensions is easy way how one can install a bunch of phpX ports in one step. portinstall phpX-extensions will install phpX and choosen phpX-something and pecl-something. If you need to unsinstall all php ports, you must unsinstall them manualy by pkg_deinstall phpX-\* pecl-\*. So the right way to do your task was: pkg_deinstall php4-\* pecl-\* && portinstall php5-extensions Isn't it nice and easy? Miroslav Lachman