From owner-freebsd-questions@FreeBSD.ORG Mon Mar 2 16:32:15 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02E029E2 for ; Mon, 2 Mar 2015 16:32:15 +0000 (UTC) Received: from mail5.networktest.com (mail5.networktest.com [204.109.60.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C0905EE0 for ; Mon, 2 Mar 2015 16:32:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail5.networktest.com (Postfix) with ESMTP id A97AC39DC2E for ; Mon, 2 Mar 2015 08:32:12 -0800 (PST) Received: from mail5.networktest.com ([127.0.0.1]) by localhost (mail5.networktest.com [127.0.0.1]) (maiad, port 10024) with ESMTP id 11821-05 for ; Mon, 2 Mar 2015 08:32:12 -0800 (PST) Received: from tejay-2.local (cpe-75-82-83-187.socal.res.rr.com [75.82.83.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dnewman@networktest.com) by mail5.networktest.com (Postfix) with ESMTPSA id 574CE39DC2D for ; Mon, 2 Mar 2015 08:32:12 -0800 (PST) Message-ID: <54F4908B.3080309@networktest.com> Date: Mon, 02 Mar 2015 08:32:11 -0800 From: David Newman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: 'pkg upgrade' wants to install php56 References: <54F399EF.3090908@networktest.com> <54F3C065.8080606@networktest.com> <20150302094251.49dbfe7e@curlew.lan> In-Reply-To: <20150302094251.49dbfe7e@curlew.lan> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 16:32:15 -0000 On 3/2/15 1:42 AM, Mike Clarke wrote: > On Sun, 01 Mar 2015 17:44:05 -0800 > David Newman 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. >