From owner-freebsd-ports@FreeBSD.ORG Sun May 16 16:07:00 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C21A916A4CE for ; Sun, 16 May 2004 16:07:00 -0700 (PDT) Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DC4B43D49 for ; Sun, 16 May 2004 16:07:00 -0700 (PDT) (envelope-from adam.mclaurin@gmx.net) Received: from 146-115-126-186.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com ([146.115.126.186] helo=jake) by smtp02.mrf.mail.rcn.net with smtp (Exim 4.32 #2) id 1BPUie-0002fY-RN for ports@freebsd.org; Sun, 16 May 2004 19:06:57 -0400 Date: Sun, 16 May 2004 19:06:49 -0400 From: Adam McLaurin To: ports@freebsd.org Message-Id: <20040516190649.46a52c8e.adam.mclaurin@gmx.net> In-Reply-To: <20040516191400.GA70244@wombat.localnet> References: <20040516191400.GA70244@wombat.localnet> X-Mailer: Sylpheed version 0.9.9-gtk2-20040229 (GTK+ 2.4.1; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: portupgrade postgresql-7.3.4_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 May 2004 23:07:00 -0000 On Sun, 16 May 2004 15:14:01 -0400 Michael Edenfield wrote: > * Lee Harr [040516 15:00]: > > >Trying to do the portupgrade of postgresql on my FreeBSD 5.2.1 box. > > >When > > >I try a 'pkg_delete postgresql-7.3.4_1', it has dependents and says > > >cannot be deinstalled. How do I handle this port upgrade? > > > > > >esmtp# pkg_delete postgresql-7.3.4_1 > > >pkg_delete: package 'postgresql-7.3.4_1' is required by these other > > >packages > > >and may not be deinstalled: > > >nagios-1.1_3 > > >nagios-plugins-1.3.1 > > >phppgadmin-3.0.1 > > >postfix-2.0.16,1 > > > > > > > > > Have you ever used portupgrade? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html > > (section 4.5.5 discusses portupgrade) > > While portupgrade is easily the most effective solution, and the one I > would also recommend, there are alternatives. A 'make deinstall > reinstall' in the port directory will do basically the same thing, > though without the safety precations portupgrade takes. I don't know why you'd even mention this 'alternative'. Doing this is quite dangerous and requires so much more work. a) If the new port is in any way broken (be it buggy source code, faulty patches, bad Makefile, whatever), you'll be left trying to downgrade your skeleton files to the previous version just to be able to use the software at all (since you already removed it before you checked to see if it even worked). b) If the new port requires updated versions of the dependencies, doing a 'make deinstall reinstall' will either not work at all or cause problems. Just want to make sure that the rookie understands the implications of your "alternative" .. And why it really is NOT an alternative at all, unless you REALLY know what you're doing (and have a lot of free time and a solid test environment) -- Adam "satyam, shivam, sundaram"