From owner-freebsd-ports@FreeBSD.ORG Tue Jul 29 15:46:54 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 157AE2F6; Tue, 29 Jul 2014 15:46:54 +0000 (UTC) Received: from mp1-smtp-2.eutelia.it (mp1-smtp-2.eutelia.it [62.94.10.162]) by mx1.freebsd.org (Postfix) with ESMTP id 8EE3E2FAA; Tue, 29 Jul 2014 15:46:53 +0000 (UTC) Received: from ns2.biolchim.it (ip-188-188.sn2.eutelia.it [83.211.188.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mp1-smtp-2.eutelia.it (Eutelia) with ESMTP id 402DAE35BE; Tue, 29 Jul 2014 17:46:51 +0200 (CEST) Received: from soth.ventu (adsl-ull-222-173.41-151.net24.it [151.41.173.222]) (authenticated bits=0) by ns2.biolchim.it (8.14.9/8.14.8) with ESMTP id s6TFkjnB069139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 29 Jul 2014 17:46:47 +0200 (CEST) (envelope-from ml@netfence.it) X-Authentication-Warning: ns2.biolchim.it: Host adsl-ull-222-173.41-151.net24.it [151.41.173.222] claimed to be soth.ventu Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.9/8.14.7) with ESMTP id s6TFkeLR001217; Tue, 29 Jul 2014 17:46:40 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <53D7C1E0.1000204@netfence.it> Date: Tue, 29 Jul 2014 17:46:40 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Strange pkg_deinstall behaviour with pkgng References: <53D69662.6020503@netfence.it> In-Reply-To: <53D69662.6020503@netfence.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (ns2.biolchim.it [192.168.2.203]); Tue, 29 Jul 2014 17:46:47 +0200 (CEST) X-Spam-Score: () X-Scanned-By: MIMEDefang 2.75 Cc: bdrewery@FreeBSD.org, 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:46:54 -0000 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. 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". 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. 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 ports. At the very least, an entry in UPDATING should warn about this!!! Just my 2c. bye av.