From owner-freebsd-ports@FreeBSD.ORG Fri Oct 24 02:05:36 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 783DF1065676 for ; Fri, 24 Oct 2008 02:05:36 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 49BC28FC08 for ; Fri, 24 Oct 2008 02:05:36 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop3.gateway.2wire.net (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.3/8.14.3) with ESMTP id m9O24weV097121; Thu, 23 Oct 2008 21:04:58 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <49012D63.8020201@math.missouri.edu> Date: Thu, 23 Oct 2008 21:05:23 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.17) Gecko/20081023 SeaMonkey/1.1.12 MIME-Version: 1.0 To: Josh Rickmar References: <53980.67.177.142.45.1224810884.squirrel@ssl.eumx.net> In-Reply-To: <53980.67.177.142.45.1224810884.squirrel@ssl.eumx.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Concern about using pkg_delete -r X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2008 02:05:36 -0000 Josh Rickmar wrote: > I'm hoping that this list covers port tools as well as the usual > discussions about the actual ports. If not, please CC this to the proper > list. > > I want to use pkg_delete to remove an installed port, but also want to > remove its orphaned dependencies along with it. After looking at the > pkg_delete(1) man page, the -r flag seems to be the option to use for this > job. My concern, though, is about the wording: > >> In addition to specified packages, delete all >> packages that depend on those packages as well. > > Does this mean that if I pkg_delete -r pkgA, than pkgB (a dependency) will > be removed with it, even though it is dependency of pkgC? Or is > pkg_delete (or pkg_deinstall) smart enough to understand this dependency > and keep pkgB installed? > > If in this scenario pkgB would be deleted, should an extra warning be > added to the man page so that users know that using this flag could > potentially break their other ports? I think you have the dependency relationship the wrong way around. If you do "pkg_delete -r pkgA", and pkgA is a dependency of pkgB (not the other way around as you have it), then pkgB will be deleted.