From owner-freebsd-pkg@FreeBSD.ORG Sun Dec 14 06:18:19 2014 Return-Path: Delivered-To: freebsd-pkg@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 06E03A66 for ; Sun, 14 Dec 2014 06:18:19 +0000 (UTC) Received: from luigi.brtsvcs.net (luigi.brtsvcs.net [IPv6:2607:fc50:1000:1f00::2]) (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 D83DCF80 for ; Sun, 14 Dec 2014 06:18:18 +0000 (UTC) Received: from chombo.houseloki.net (c-71-59-211-166.hsd1.or.comcast.net [71.59.211.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by luigi.brtsvcs.net (Postfix) with ESMTPSA id BD6092D4F8E for ; Sun, 14 Dec 2014 06:18:16 +0000 (UTC) Received: from [IPv6:2601:7:2580:181:baca:3aff:fe83:bd29] (unknown [IPv6:2601:7:2580:181:baca:3aff:fe83:bd29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by chombo.houseloki.net (Postfix) with ESMTPSA id 3F5111606 for ; Sat, 13 Dec 2014 22:18:14 -0800 (PST) Message-ID: <548D2BA7.2090203@bluerosetech.com> Date: Sat, 13 Dec 2014 22:18:15 -0800 From: Darren Pilgrim Reply-To: freebsd-pkg@freebsd.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-pkg@freebsd.org Subject: Bad upgrade behaviour with 1.4.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2014 06:18:19 -0000 # pkg upgrade php5-pgsql Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. nginx-1.6.2_1,2 is locked and may not be modified openssh-portable-6.7.p1,1 is locked and may not be modified dovecot2-2.2.15_1 is locked and may not be modified dovecot-pigeonhole-0.4.6 is locked and may not be modified postfix-2.11.3_3,1 is locked and may not be modified postgresql92-server-9.2.9_1 is locked and may not be modified Checking integrity... done (1 conflicting) Checking integrity... done (0 conflicting) The following 7 packages will be affected (of 0 checked): Installed packages to be REMOVED: postgresql92-client-9.2.9_1 dovecot2-2.2.15_1 dovecot-pigeonhole-0.4.6 postfix-2.11.3_3,1 postgresql92-server-9.2.9_1 New packages to be INSTALLED: postgresql93-client: 9.3.5 Installed packages to be REINSTALLED: php5-pgsql-5.4.35 (direct dependency changed) The operation will free 46 MB. Proceed with this action? [y/N]: n The reasoning here is fairly obvious: it's going to replace the postgresql client with a new version, and you can't have more than one version of the client installed, so it needs to delete postgresql92-client. I guess the public repo bumped the postgresql version used. I keep dovecot2, postfix and several other ports locked because I build them from ports due to needing non-default options. In prior versions of pkg, this worked fine: pkg would complain about the lock, but an upgrade would carry on ignoring the locked ports. But pkg 1.4.0 doesn't. It ignores the lock and tries to delete those package anyway, making the upgrade process fail outright. If I unlock everything, I still get broken behaviour: # pkg upgrade php5-pgsql Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking integrity... done (1 conflicting) Checking integrity...pkg: cannot load files from dovecot2 to check integrity done (0 conflicting) The following 6 packages will be affected (of 0 checked): Installed packages to be REMOVED: postgresql92-client-9.2.9_1 postfix-2.11.3_3,1 postgresql92-server-9.2.9_1 New packages to be INSTALLED: postgresql93-client: 9.3.5 Installed packages to be REINSTALLED: php5-pgsql-5.4.35 (direct dependency changed) dovecot2-2.2.15_1 (options changed) The operation will free 29 MB. 3 MB to be downloaded. Proceed with this action? [y/N]: Here it wants to upgrade dovecot, but not postfix, which is really bizarre. There's nothing in UPDATING about this. How do I upgrade php5-pgsql and the postgresql client?