From owner-freebsd-pkg@freebsd.org Tue Apr 5 16:03:13 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87913B0408E for ; Tue, 5 Apr 2016 16:03:13 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from valentine.liquidneon.com (valentine.liquidneon.com [216.87.78.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "valentine.liquidneon.com", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 74ACF1831; Tue, 5 Apr 2016 16:03:13 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: by valentine.liquidneon.com (Postfix, from userid 1018) id 05D9327C7D; Tue, 5 Apr 2016 16:03:12 +0000 (UTC) Date: Tue, 5 Apr 2016 16:03:11 +0000 From: Brad Davis To: Matthew Seaman Cc: freebsd-pkg@freebsd.org Subject: Re: FreeBSD Port: ports-mgmt/pkg Message-ID: <20160405160311.GB1875@corpmail.liquidneon.com> References: <20160405034626.GA1875@corpmail.liquidneon.com> <5703E001.5020007@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5703E001.5020007@FreeBSD.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.21 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: Tue, 05 Apr 2016 16:03:13 -0000 On Tue, Apr 05, 2016 at 04:55:45PM +0100, Matthew Seaman wrote: > On 2016/04/05 11:28, Zsolt Ero wrote: > > I don't know how those tools internally check the state of packages, > > but anyone who self manages a server usually writes a long line of > > "pkg install -y pkg1 pkg2 pkg3" in a script. I would think that 99% of > > server deployment scripts are structured like this. > > > > Those lines are used in the sense of "make sure that pkg1, pkg2 and > > pkg3 are all installed after this command". Now the new change totally > > breaks this behaviour. > > > > Also, it breaks convention with known package managers from OS X or > > the linux world, where ... install is usually used as "make sure that > > ... is installed". > > > > Even if FreeBSD believes that such a huge change is somehow justified > > at a minor point release, it should be clearly communicated with the > > community. I would strongly recommend going back to the pre-1.7 way of > > "make sure that ... is installed" behaviour. > > > > Since this is such a fresh change, I believe there will be many more > > user reports coming in from broken install scripts soon. > > Just a 'me too': > > ==> sys-app-1: Error: Execution of '/usr/local/sbin/pkg install -qy > nagios-plugins' returned 70: > ==> sys-app-1: Error: > /Stage[main]/Nrpe::Install/Package[nagios-plugins]/ensure: change from > absent to present failed: Execution of '/usr/local/sbin/pkg install -qy > nagios-plugins' returned 70: > > Puppet gets all confused now when it tries to install something that's > already installed. I'd much prefer it if the exit code in that > situation was 'success.' Can I see the relevent section of your puppet manifest? Regards, Brad Davis