Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Oct 2007 16:37:43 -0500
From:      Paul Schmehl <pauls@utdallas.edu>
To:        freebsd-ports@freebsd.org
Subject:   I don't understand this
Message-ID:  <BC69E4E92AC0B0E6502F08DB@paul-schmehls-powerbook59.local>

next in thread | raw e-mail | index | archive | help
--==========DAE902A13F8400F7E8DF==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I upgraded a server from php4 to php5.

First I uninstalled php4.  Then I uninstalled php4-extensions.  Then I=20
installed php5.  Then I installed php5-extensions.

Now, when I run portupgrade, I get a ton of complaints about php4=20
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' (>=3D libltdl-1.5.24). (specify -f =
to=20
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' (>=3D pecl-json-1.2.1). (specify =
-f=20
to force)
--->  ** Upgrade tasks 272: 0 done, 162 ignored, 0 skipped and 0 failed
** No need to upgrade 'php5-curl-5.2.4_1' (>=3D php5-curl-5.2.4_1). =
(specify=20
-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' (>=3D 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=20
uninstall was removing files installed by the php5-extensions install.=20
So, I had to uninstall each php4 extension, then uninstall each of the=20
corresponding php5 extensions and then reinstall them in order to get the=20
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=20
doesn't the php4-extensions port uninstall each of the ports installed?

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

--==========DAE902A13F8400F7E8DF==========--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BC69E4E92AC0B0E6502F08DB>