'pkg upgrade' wants to install php56

David Newman dnewman at networktest.com
Mon Mar 2 16:32:15 UTC 2015



On 3/2/15 1:42 AM, Mike Clarke wrote:
> On Sun, 01 Mar 2015 17:44:05 -0800
> David Newman <dnewman at networktest.com> wrote:
> 
>> Thanks for your responses. Please note that I'm asking about pkg on
>> systems that don't have a ports tree, so also no UPDATING file.
> 
> 
> Here's the relevant bit of /usr/ports/UPDATING

Thanks. Please see the issue I raised later in the same post, where
different systems using pkg behave in different ways when running 'pkg
upgrade':

> The pkg behavior is not consistent in my experience:
> 
> - On one system running 10.1-RELEASE-p6 and no /etc/make.conf file, 'pkg
> update && pkg upgrade' just updates php5 modules from 5.4.37 to 5.4.38.
> These commands did not install any php56 modules.
> 
> - On another system with the same version, the same commands want to
> install php56, and also upgrade all other php5 modules (except php5
> itself) from 5.4.37 to 5.4.38.
> 
> On this second system, adding 'DEFAULT_VERSIONS=php=5.6' to
> /etc/make.conf does not change the outcome of these commands.
> 
> Even worse, if we proceed with those commands, pkg ends up with a
> version conflict:
> 
> Fetching php56-5.6.6.txz: 100%    2 MiB 982.6kB/s    00:02
> Checking integrity... done (1 conflicting)
> pkg: Cannot solve problem using SAT solver:
> upgrade rule: upgrade local php5-zlib-5.4.37 to remote php5-zlib-5.4.38
> cannot install package php5-zlib, remove it from request? [Y/n]:
> 
> How to resolve this?

Thanks again

dn

> 
> ---------------------------------------------------------------------
> 20150220:
>   AFFECTS: users of PHP
> 
>   The default PHP version has been updated from 5.4 to 5.6.
> 
>   If you use binary packages you should make a list of php packages
>   before running 'pkg upgrade':
> 
>   # pkg info php5\* > ~/installed-php-ports-list
> 
>   After the upgrade, check with such list if all your php extensions
>   are still installed, and reinstall them if needed.
> ---------------------------------------------------------------------
> 
> Even if you had a copy of UPDATING "pkg updating" would not have shown
> it, probably because the "AFFECTS" linr doesn't match lang/php.
> 
> Unfortunately following the instructions didn't fix the problem for me.
> When I ran "pkg upgrade" it just bailed out when it found the first
> conflict,
> 
> My solution was to make a list of my php5 packages as above and then
> delete them all:
> 
> curlew:/root# cat ~/installed-php-ports-list | xargs pkg delete -fy
> 
> If you have mod_php5 installed you will need to use pkg delete to
> remove it separately because the pkg info command won't have 
> picked it up for inclusion in ~/installed-php-ports-list. 
> 
> Then go ahead with pkg upgrade.
> 
> If you previously had php5*-extensions installed run "pkg install
> php56-extensions" after the upgrade,
> 
> Now run "pkg info php5\*" and compare the results against
> your copy of ~/installed-php-ports-list to determine if any further
> extensions require installing.
> 


More information about the freebsd-questions mailing list