From owner-freebsd-ports@FreeBSD.ORG Tue Jul 29 15:51:56 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 58C7B765 for ; Tue, 29 Jul 2014 15:51:56 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 39CF920AE for ; Tue, 29 Jul 2014 15:51:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.9/8.14.9) with ESMTP id s6TFpupS034088 for ; Tue, 29 Jul 2014 15:51:56 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id s6TFpugJ034086 for freebsd-ports@freebsd.org; Tue, 29 Jul 2014 15:51:56 GMT (envelope-from bdrewery) Received: (qmail 60052 invoked from network); 29 Jul 2014 10:51:52 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 29 Jul 2014 10:51:52 -0500 Message-ID: <53D7C312.1020000@FreeBSD.org> Date: Tue, 29 Jul 2014 10:51:46 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Andrea Venturoli , freebsd-ports@freebsd.org Subject: Re: Strange pkg_deinstall behaviour with pkgng References: <53D69662.6020503@netfence.it> <53D7C1E0.1000204@netfence.it> In-Reply-To: <53D7C1E0.1000204@netfence.it> X-Enigmail-Version: 1.6 OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ku6cfAPpAHC8hKkQG2ixH1iS4cEWU39Ax" Cc: portmgr@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2014 15:51:56 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ku6cfAPpAHC8hKkQG2ixH1iS4cEWU39Ax Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 7/29/2014 10:46 AM, Andrea Venturoli wrote: > On 07/28/14 20:28, Andrea Venturoli wrote: >> Hello. >> >> I was forced to switch to pkgng on a 9.2 box and I'm now noticing a >> strange behaviour. >> >> Before, "pkg_deinstall -R foo" would deinstall foo and all ports on >> which foo depended, except those who were needed by other ports. >> >> Now, "pkg_deinstall -R foo" will deinstall foo, all ports on which foo= >> depends and all ports depending on the ports on which foo depends. >> >> E.g. >> Port A depends on B >> Port B depends on C >> Port D depends on C >> >> With the old behaviour, "pkg_deinstall -R A" would deinstall A and B >> (but not C). >> Now it will deinstall A, B, C and D. >=20 > After some investigation, this broke after the upgrade to pkg 1.3, in > which *by default* "pkg delete" seems to be the same as "pkg delete -R"= =2E Yes, pkg now requires -f to have the old behavior. I'll update portupgrade for it. >=20 > From what I can tell, there is no flags to "pkg delete" which makes it > act as it used to and as portupgrade expects, so I cannot easily fix it= =2E >=20 >=20 >=20 > I found the previous behaviour very useful, but if it's gone I'll try > and (sadly) live with it. > However I think this is a serious bug: someone might light heartedly > issue a "pkg_deinstall foo" and expect two or three ports being deleted= , > while in fact it could now deinstall more than half of the installed po= rts. > At the very least, an entry in UPDATING should warn about this!!! >=20 > Just my 2c. >=20 > bye > av. --=20 Regards, Bryan Drewery --Ku6cfAPpAHC8hKkQG2ixH1iS4cEWU39Ax Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJT18MSAAoJEDXXcbtuRpfPNF0H/jLD9DwSqOliEm01KhqBTZFp n04iGkRiDv2faQcxsmzCXPaiwYs9wlNTfkAcGqoxUUba+q0Qfokoxz4bLROTa6sm tIkPBCAQjrTZjj5QHu/RWogi62i2EcMbB95jjteZSXGivwqSr6G1DPtlLT/vlV9p DjvhR8Rsja2kp7kIj1d2sHPooxPb/WsS4RyIBrCQSM+7MbfNa4PXmVdYPhMbHKbo 71Ltcx66yys5NpeiS+OspX1ErAY6/4JhUjm8vLOr1BGnu3R+D8pUyiArvLpSm91T nik02678TeGWOWIaQ3DZvqb25vhN7tFZMF/4bdfpOX5TkWCOPfkWQapSJvMkXxA= =L/Ct -----END PGP SIGNATURE----- --Ku6cfAPpAHC8hKkQG2ixH1iS4cEWU39Ax--