From owner-freebsd-ports@FreeBSD.ORG Thu Jul 31 20:10:02 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 9F5197B6; Thu, 31 Jul 2014 20:10:02 +0000 (UTC) Received: from mail-ie0-x234.google.com (mail-ie0-x234.google.com [IPv6:2607:f8b0:4001:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 593E5213B; Thu, 31 Jul 2014 20:10:02 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id at20so4334610iec.25 for ; Thu, 31 Jul 2014 13:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=OSMoVKcaCG4VY4fsD3MCEc1iVpM4yB3o+9DdnY97MbY=; b=ztt4LqDQe8Dn1SMNeamxLe6pVwyJqd+A6uIXAvXKknDSFfy6LLyUJ+DHby7pMjnK/v cpjw2cWuJrZ68r2uaeT/sxoWBXJMa1ORMnOQ0OSWpqv/mN8LlUyYYDp/b3ldogXIjscw Eq92G0I1cCOJw5r2TJwnzcU3KvuvtIt8f9awzQjgldPfjGhftUCjUO/v1bXf0ajl1hJc XAY7oIWBGwNPwGOIWH2CnRvncB13HPaZgZM7muL+cYhACMzZsmu6rWODD+KMzURoDVT5 D4RqRjLqmZDCcx6yaAb64NmN1cc7JupRbwPBVbgIz92oJj8i8BtMUb0abXBTFsGA56KL LQmw== MIME-Version: 1.0 X-Received: by 10.50.2.71 with SMTP id 7mr125731igs.32.1406837401707; Thu, 31 Jul 2014 13:10:01 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.107.163.148 with HTTP; Thu, 31 Jul 2014 13:10:01 -0700 (PDT) In-Reply-To: <53DA921F.1050907@netfence.it> References: <53D69662.6020503@netfence.it> <53D7C1E0.1000204@netfence.it> <53D7C312.1020000@FreeBSD.org> <53D8318E.6030506@FreeBSD.org> <53DA921F.1050907@netfence.it> Date: Thu, 31 Jul 2014 13:10:01 -0700 X-Google-Sender-Auth: 6TmGMMhEEGT9Z00bGUrizz3aG2Y Message-ID: Subject: Re: Strange pkg_deinstall behaviour with pkgng From: Kevin Oberman To: Andrea Venturoli Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: portmgr@freebsd.org, FreeBSD Ports ML , Bryan Drewery 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: Thu, 31 Jul 2014 20:10:02 -0000 On Thu, Jul 31, 2014 at 11:59 AM, Andrea Venturoli wrote: > On 07/30/14 01:43, Bryan Drewery wrote: > > Hello. > > > > Yes, pkg now requires -f to have the old behavior. >>> >> > No, it does not. > "-f" is the old "-f"; "-R" is the old "-R"; no way it can behave now like > it did before when no such option was passed. > > > > I have released a quick hack to workaround this by passing in -f. >> > > Thanks, but this is not quite it. > Aside from being IMHO a very bad idea, this is still different from the > old behavior and will deinstall many more ports, leaving several > unsatisfied dependencies (just tryed it now). > Again, at the very minumum, the user should be warned of the POLA > violation. > > > bye & Thanks > av. > > Yes, something is very broken here and adding '-f' is a very wrong work-around! First, the simple addition of '-f' means that it unconditionally will delete the package while the old behavior was the same, it is very different from the old 'pkg delete' with no -f. That one would delete the package if there were no dependencies and error out with information on the dependent port if there were any. Worse, it i not working correctly. In the recent libevent case the only port deleted was tmux when at least firefox and libxul were still linked to the old .so file. So it fails to do either what it used to do or what it was supposed to do in 1.3. Not sure what might have been wrong. I'm guessing that libevent did not list firefox and libxul as depending on it. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com