From owner-freebsd-pkg@freebsd.org Tue Apr 5 15:55:43 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 1FC7FB03E64 for ; Tue, 5 Apr 2016 15:55:43 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (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 9DFF01218 for ; Tue, 5 Apr 2016 15:55:42 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (vpn-1.adestra.com [46.236.37.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 9F1BB9BDA for ; Tue, 5 Apr 2016 15:55:38 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/9F1BB9BDA; dkim=none; dkim-atps=neutral Subject: Re: FreeBSD Port: ports-mgmt/pkg To: freebsd-pkg@freebsd.org References: <20160405034626.GA1875@corpmail.liquidneon.com> From: Matthew Seaman Message-ID: <5703E001.5020007@FreeBSD.org> Date: Tue, 5 Apr 2016 16:55:45 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eMdc26BMLXsejaqXR7fAmGWMcMTRjcfMm" X-Virus-Scanned: clamav-milter 0.99.1 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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 15:55:43 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --eMdc26BMLXsejaqXR7fAmGWMcMTRjcfMm Content-Type: multipart/mixed; boundary="v9pwjTe6eNLlXchvgWQutBDUoNSfqxJOV" From: Matthew Seaman To: freebsd-pkg@freebsd.org Message-ID: <5703E001.5020007@FreeBSD.org> Subject: Re: FreeBSD Port: ports-mgmt/pkg References: <20160405034626.GA1875@corpmail.liquidneon.com> In-Reply-To: --v9pwjTe6eNLlXchvgWQutBDUoNSfqxJOV Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. >=20 > 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". >=20 > 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. >=20 > 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': =3D=3D> sys-app-1: Error: Execution of '/usr/local/sbin/pkg install -qy nagios-plugins' returned 70: =3D=3D> 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.' Cheers, Matthew --v9pwjTe6eNLlXchvgWQutBDUoNSfqxJOV-- --eMdc26BMLXsejaqXR7fAmGWMcMTRjcfMm Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJXA+AHXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnZj8P/iDMEsrKTlMyz8aCJcqWg5iW 4k5vXNojxJQdzqRTJ3LN6HLAZfME/+bOocAD0M8/mAGBic5A2jn9pjkZjq/ZRg8q a1pXBbRj65lf3q8u+SclRdhEBgvW1dExOJmeMWhfyYLUR3iyIW5vs/OTPR5LKDxr f8wyks30NETWYd1VJiqIH034Urb/OklXndcJ7VDTNeMZR/WIG2zLyhrehxWOPKhR zyImCv/6cBID3LDVt+UN8oNPaaksAcEfsK6HNGRitTboPwqsx7cGznXZglJX1xR4 mViCJbnY7QEyBE+/NXLBppqGVMeTpaZByF3QT0WIXv+XsV7Rc2RgUXUUZcE83jLJ SOMulrqe2s8Rr0Zrvg3lu0EHAtj82XGqlAttxWQdqkWi90UiKKKKO4Y+4b3ZYX2d tqpMR+4bzjmv+JsfskvTVWvBKrMvbsoWmLLW8LaV+d0oozXAnQzcE7dWjpU/9T9r jeV4h07opNpDBK6HxqGQxB3LRkVcqCeh2syAa4a08SQrI/EmK/RBaLdmgQhvEw/t yDNJbj8GhBc+78UL+SGAE53mM32nIkpdCc3iTfN7j3eBEc8uVs/UQXvTLW8AcOxI BYRJ1G8DozOtkyL770WRc/hGVBVHttNBB1Kh2OqrEH1TdgDfJ9TIOoCDPbIwSUXI P4GQqA3s9kLhxmExETmu =8dca -----END PGP SIGNATURE----- --eMdc26BMLXsejaqXR7fAmGWMcMTRjcfMm--