I don't understand this

Paul Schmehl pauls at utdallas.edu
Sun Oct 14 14:38:00 PDT 2007


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.

portupgrade -ai
--->  Session started at: Sun, 14 Oct 2007 15:41:56 -0500
** No need to upgrade 'libltdl-1.5.24' (>= libltdl-1.5.24). (specify -f to 
force)
--->  ** Upgrade tasks 272: 0 done, 1 ignored, 0 skipped and 0 failed

** Port marked as IGNORE: textproc/php4-ctype:
        cannot install: doesn't work with PHP version : 5 (Doesn't support 
PHP 5)
--->  ** Upgrade tasks 272: 0 done, 161 ignored, 0 skipped and 0 failed
** No need to upgrade 'pecl-json-1.2.1' (>= pecl-json-1.2.1). (specify -f 
to force)
--->  ** Upgrade tasks 272: 0 done, 162 ignored, 0 skipped and 0 failed
** No need to upgrade 'php5-curl-5.2.4_1' (>= php5-curl-5.2.4_1). (specify 
-f to force)
--->  ** Upgrade tasks 272: 0 done, 163 ignored, 0 skipped and 0 failed
** No need to upgrade 'php5-bz2-5.2.4_1' (>= php5-bz2-5.2.4_1). (specify 
-f to force)
--->  ** Upgrade tasks 272: 0 done, 164 ignored, 0 skipped and 0 failed
** Port marked as IGNORE: lang/php4-overload:
        cannot install: doesn't work with PHP version : 5 (Doesn't support 
PHP 5)
--->  ** Upgrade tasks 272: 0 done, 165 ignored, 0 skipped and 0 failed
** Port marked as IGNORE: mail/php4-imap:
        cannot install: doesn't work with PHP version : 5 (Doesn't support 
PHP 5)
--->  ** Upgrade tasks 272: 0 done, 166 ignored, 0 skipped and 0 failed

--->  Packages processed: 0 done, 272 ignored, 0 skipped and 0 failed
--->  Session ended at: Sun, 14 Oct 2007 15:42:50 -0500 (consumed 00:00:54)

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?

Paul Schmehl (pauls at utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


More information about the freebsd-ports mailing list