Correct way to portupgrade php5 and php5-extensions-1.1 ?

Frederique Rijsdijk frederique at pine.nl
Tue Sep 9 12:04:22 UTC 2008


Hi,

Following the most recent update of PHP5 (5.2.6_2) and subsequent 
portaudit warnings for 5.2.6, I've been upgrading lang/php5 and 
lang/php5-extensions-1.1 on a number of machines.

My question is, what is the best way to do this. Some options come to mind:

1) portupgrade -fpb php5-5.2.6 php5-extensions-1.1

or

2) portupgrade -fpb php5\*

or

3) portupgrade -fpbR php5-5.2.6


I noticed that the first option didn't update the actual binaries in 
/usr/local/lib/php/20060613/, but it still works on the machine where I 
tried it.

The second, I think, will always work (/usr/local/lib/php/20060613/ 
files are all updated/recompiled), but it takes a long time. I'm 
suspecting this way perhaps some ports will be updated/recompiled more 
than once? (once when php5-extensions is portupgraded, and once when for 
instance php5-session-5.2.6 is upgraded).

The last option seems the best according to the manpage, but this would 
in my case also recompile phpmyadmin. Is that needed?

Perhaps there are also different cases when for instance there is a 
minor version update like this one (from 5.2.6 to 5.2.6_2), and for 
instance a 5.2.6 to 5.2.7 or even 5.2.6 to 5.3 update).

Who can shine some light on this dark matter? :-)


-- FR


More information about the freebsd-ports mailing list