From owner-freebsd-ports@FreeBSD.ORG Sun Oct 14 22:18:33 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 5D54A16A417 for ; Sun, 14 Oct 2007 22:18:33 +0000 (UTC) (envelope-from hemi@puresimplicity.net) Received: from just.puresimplicity.net (just.puresimplicity.net [68.77.126.251]) by mx1.freebsd.org (Postfix) with ESMTP id DE6FA13C459 for ; Sun, 14 Oct 2007 22:18:32 +0000 (UTC) (envelope-from hemi@puresimplicity.net) Received: from just.puresimplicity.net (localhost.puresimplicity.net [127.0.0.1]) by just.puresimplicity.net (8.13.8/8.13.8) with ESMTP id l9ELms2E009834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Oct 2007 16:48:54 -0500 (CDT) (envelope-from hemi@just.puresimplicity.net) Received: (from hemi@localhost) by just.puresimplicity.net (8.13.8/8.13.8/Submit) id l9ELmsTC009833; Sun, 14 Oct 2007 16:48:54 -0500 (CDT) (envelope-from hemi) Date: Sun, 14 Oct 2007 16:48:54 -0500 From: Josh Tolbert To: Paul Schmehl Message-ID: <20071014214854.GA9785@just.puresimplicity.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-2.0.2 (just.puresimplicity.net [127.0.0.1]); Sun, 14 Oct 2007 16:48:55 -0500 (CDT) 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:18:33 -0000 On Sun, Oct 14, 2007 at 04:37:43PM -0500, Paul Schmehl wrote: > I upgraded a server from php4 to php5. > > First I uninstalled php4. Then I uninstalled php4-extensions. Then I > installed php5. Then I installed php5-extensions. > > Now, when I run portupgrade, I get a ton of complaints about php4 > extensions that can't be updated. [snip] > So, I started uninstalling those ports, but I discovered that the > uninstall was removing files installed by the php5-extensions install. > So, I had to uninstall each php4 extension, then uninstall each of the > corresponding php5 extensions and then reinstall them in order to get the > ports db straightened out and have the correct files on disk. > > Surely there's an easier way to do this? What did I miss? And why > doesn't the php4-extensions port uninstall each of the ports installed? When I did this, I uninstalled the php4-extensions port, then all the actual php4-extensions. I then uninstalled php4. I had to "force" remove the old ports since stuff still depends on the ports. I made sure to get the pecl port that I can't remember the name of now. Then, I installed php5 and the php5-extensions port. Afterwards, I did a pkgdb -F to fix all of the deps on old php4 ports that may be left over. Finally, I tested everything that used php on my machine. I think I reinstalled some of the ports that depended on php, but since this all happened about a month ago I don't remember what I needed to reinstall. 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... Thanks, Josh -- Josh Tolbert hemi@puresimplicity.net || http://www.puresimplicity.net/~hemi/ Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing. -- Helen Keller