From owner-freebsd-pkg@FreeBSD.ORG Sun Dec 14 18:22:46 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 573078F0; Sun, 14 Dec 2014 18:22:46 +0000 (UTC) Received: from mario.brtsvcs.net (mario.brtsvcs.net [199.48.128.182]) (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 2CE3FD54; Sun, 14 Dec 2014 18:22:45 +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 mario.brtsvcs.net (Postfix) with ESMTPSA id 150182C1656; Sun, 14 Dec 2014 18:22:38 +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 6B4DC16A5; Sun, 14 Dec 2014 10:22:35 -0800 (PST) Message-ID: <548DD569.3030407@bluerosetech.com> Date: Sun, 14 Dec 2014 10:22:33 -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: Matthew Seaman Subject: Re: Bad upgrade behaviour with 1.4.0 References: <548D2BA7.2090203@bluerosetech.com> <548D9098.2050002@FreeBSD.org> In-Reply-To: <548D9098.2050002@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-pkg@freebsd.org 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 18:22:46 -0000 On 12/14/2014 5:28 AM, Matthew Seaman wrote: > The default postgresql client in the public repositories is postgresql92 > -- any reference to postgresql93 must be due to locally compiled packages. The system has postgresql92-{client,server} installed as you can see from the output. It also has pgsql=9.2 in DEFAULT_VERSIONS in /etc/make.conf. The first mention of postgresql93 on this system was by pkg-upgrade. > Yes, this is buggy behaviour by pkg(8) -- it works very well when all > your packages come from a single repository, but can have problems if > you configure multiple repositories or (apparently) mix locally compiled > ports and the main FreeBSD repositories. It's *new* buggy behaviour, though. In prior versions, I could use locks to make pkg-upgrade skip packages it wasn't managing (i.e., those I'm installing from ports). It reliably worked very well. There is a regression in pkg 1.4.0 such that this is no longer possible. Worse, it wasn't trying to reinstall the ports, it wanted to simply delete them. If I had left everything unlocked and proceeded with the upgrade, it would have left a broken system due to missing software. Prior versions (like 1.3.8) would have reinstalled the depending packages (if unlocked). I know this because that's exactly the behaviour I was preventing with the locks.