From owner-freebsd-ports@FreeBSD.ORG Mon Oct 15 16:06:08 2007 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 2364C16A417 for ; Mon, 15 Oct 2007 16:06:08 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 07D2A13C46B for ; Mon, 15 Oct 2007 16:06:07 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id 04EAF6550A for ; Mon, 15 Oct 2007 11:06:07 -0500 (CDT) Date: Mon, 15 Oct 2007 11:06:06 -0500 From: Paul Schmehl To: freebsd-ports@freebsd.org Message-ID: In-Reply-To: References: <20071014214854.GA9785@just.puresimplicity.net> <70B9DC0A085AF432265C026C@paul-schmehls-powerbook59.local> X-Mailer: Mulberry/4.0.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: I don't understand this 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: Mon, 15 Oct 2007 16:06:08 -0000 --On Monday, October 15, 2007 10:36:57 -0400 Peter Beckman wrote: > On Sun, 14 Oct 2007, Paul Schmehl wrote: > >> Well, I'll tell you why *I* had trouble with it. When you run "make >> install clean" on the php?-extensions port, it *installs* the >> extensions. Naturally, I expected that when I ran the uninstall, it >> would uninstall the same ports that it installed previously. In fact, >> when you uninstall the php4-extensions port, it *says* it uninstalled, >> but it *does* nothing. It doesn't even remove the ports from the ports >> db - nor does it remove the files installed with each extension port. >> >> That's *not* expected behavior for a port. >> >> I had no problem correcting the problem, but I should have had to. If >> it's not possible to uninstall the extensions ports from >> php4-extensions, then it should tell you that when you try to run >> deinstall. For me it was a minor inconvenience. For a newbie, it >> could be a disaster. > > Easy solution -- when doing a 'make deinstall' from the php?-extensions > port, simply post a message after deinstalling the meta port: > > "WARNING: deinstallation of php?-extensions does NOT deinstall any > php?-* ports install. If it is your intension to deinstall any php?-* > ports installed by php?-extensions, " ... insert proper way to do so > here ... > > That protect newbies from the same mis-assumption that Paul had, teach > newbies and experienced FreeBSD admins the "right way" and how > meta-ports > work in FreeBSD, and still protect the whole concept behind how > meta-ports > work. > Bingo! Also, I'm wondering if it's possible to run "pkg_deinstall -r" in the meta port to remove all the ports that depend upon it. -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/