Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2016 16:55:45 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: FreeBSD Port: ports-mgmt/pkg
Message-ID:  <5703E001.5020007@FreeBSD.org>
In-Reply-To: <CAKw-smDu9%2BDu1rLYPQb1G09aqODY_oc%2BXq29qCQT%2B12P-K=bPA@mail.gmail.com>
References:  <CAKw-smCs2YycijBzAbwKypCtyCikL3k9kDVbSLZSOTUOh7D25g@mail.gmail.com> <20160405034626.GA1875@corpmail.liquidneon.com> <CAKw-smDu9%2BDu1rLYPQb1G09aqODY_oc%2BXq29qCQT%2B12P-K=bPA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--eMdc26BMLXsejaqXR7fAmGWMcMTRjcfMm
Content-Type: multipart/mixed; boundary="v9pwjTe6eNLlXchvgWQutBDUoNSfqxJOV"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-pkg@freebsd.org
Message-ID: <5703E001.5020007@FreeBSD.org>
Subject: Re: FreeBSD Port: ports-mgmt/pkg
References: <CAKw-smCs2YycijBzAbwKypCtyCikL3k9kDVbSLZSOTUOh7D25g@mail.gmail.com>
 <20160405034626.GA1875@corpmail.liquidneon.com>
 <CAKw-smDu9+Du1rLYPQb1G09aqODY_oc+Xq29qCQT+12P-K=bPA@mail.gmail.com>
In-Reply-To: <CAKw-smDu9+Du1rLYPQb1G09aqODY_oc+Xq29qCQT+12P-K=bPA@mail.gmail.com>

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5703E001.5020007>