From owner-freebsd-ports@FreeBSD.ORG Sun Aug 12 17:18:14 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 86B7E16A417 for ; Sun, 12 Aug 2007 17:18:14 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 5D1B913C461 for ; Sun, 12 Aug 2007 17:18:14 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id E6DAF51910 for ; Sun, 12 Aug 2007 13:18:12 -0400 (EDT) Date: Sun, 12 Aug 2007 18:18:10 +0100 From: RW To: freebsd-ports@freebsd.org Message-ID: <20070812181810.2b17d85f@gumby.homeunix.com.> In-Reply-To: <20070812142059.35077b0d@deskjail> References: <20070811115642.L34115@obelix.home.rakhesh.com> <20070811083357.GA34007@eos.sc1.parodius.com> <20070811145314.A47727@obelix.home.rakhesh.com> <20070811203322.GA78245@eos.sc1.parodius.com> <20070811225858.7eb933ef@gumby.homeunix.com.> <20070812142059.35077b0d@deskjail> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: How did upgrading applications happen before portupgrade etc? 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: Sun, 12 Aug 2007 17:18:14 -0000 On Sun, 12 Aug 2007 14:20:59 +0200 Alexander Leidinger wrote: > Quoting RW (Sat, 11 Aug 2007 22:58:58 > +0100): > > > On Sat, 11 Aug 2007 13:33:22 -0700 > > Jeremy Chadwick wrote: > > > > > On Sat, Aug 11, 2007 at 03:02:53PM +0400, Rakhesh Sasidharan > > > wrote: > > > >> 5. pkg_delete port > > > > > > > > I see. In step 5, "pkg_delete port" wont work if port is > > > > required by others right? So you delete those apps too? Could > > > > be a lot of stuff to uninstall, right? > > > > > > Absolutely correct. That might seem like a nightmare to most > > > people, but to me it's not. > > > > It's not correct, "pkg_delete -f" can force the deletion. I would > > manually upgrade a port like this: > > > > cd /usr/ports/misc/foo > > make ; do the build > > pkg_info -qO misc/foo ; get old package name > > pkg_create -b ; backup existing package > > /usr/local/etc/rc.d/foo stop ; stop the daemon if needed > > pkg_delete -f ; force removal > > make install > > At this point your /var/db/pkg/ directory does not reflect reality > anymore, I know, I was just pointing out that it is possible to upgrade a port manually without removing every single package that depends on it. Actually having dependencies package version mismatches needn't cause any significant problems. And massaging them into self-consistency is itself a form of corruption, since you lose information about what was built against what.