From owner-freebsd-questions@FreeBSD.ORG Mon Nov 5 13:26:50 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 060B416A41A for ; Mon, 5 Nov 2007 13:26:50 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 983DF13C4A6 for ; Mon, 5 Nov 2007 13:26:49 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.1/8.14.1) with ESMTP id lA5DQYmA018127; Mon, 5 Nov 2007 06:26:34 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.1/8.14.1/Submit) with ESMTP id lA5DQYhG018124; Mon, 5 Nov 2007 06:26:34 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 5 Nov 2007 06:26:34 -0700 (MST) From: Warren Block To: "Donovan R. Palmer" In-Reply-To: <000c01c81f93$344c2c40$6543a8c0@DonovansLaptop> Message-ID: <20071105055724.N17994@wonkity.com> References: <20071105135017.76a2c48a@meijome.net> <20071105070952.50ba2f37@epia-2.farid-hajji.net> <000c01c81f93$344c2c40$6543a8c0@DonovansLaptop> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Mon, 05 Nov 2007 06:26:34 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: portupgrade questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Nov 2007 13:26:50 -0000 On Mon, 5 Nov 2007, Donovan R. Palmer wrote: > A total noob here with FreeBSD, but am liking it so far. I went to run > portupgrade for the first time and encountered quite a few problems. I have > googled around and found some of my answers, but it's been slow going. For > example: > > cairo# portupgrade -aF The thing you should be doing first is checking /usr/ports/UPDATING. Major things can change, and portupgrade may not be able to handle them without help. > cd: can't cd to /usr/ports/devel/gnu-autoconf > ** Package 'gnu-autoconf' has been removed from ports tree. Old versions of autoconf were replaced with 2.61. > So one possibility I read to fix something like this is to uninstall and > resintall it. This yields the following result: But you can't reinstall it, since it's gone from the ports tree. > cairo# pkg_info | grep gnu-autoconf > gnu-autoconf-2.59 Automatically configure source code on many Un*x > platforms > cairo# pkg_deinstall gnu-autoconf-2.59 > ---> Deinstalling 'gnu-autoconf-2.59' > pkg_delete: package 'gnu-autoconf-2.59' is required by these other packages > and may not be deinstalled: > gnu-automake-1.9.6 > kde-3.5.4 > kdevelop-3.3.4 > ** Listing the failed packages (*:skipped / !:failed) > ! gnu-autoconf-2.59 (pkg_delete failed) > ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed > > So how do I fix this? Is there a HOW-TO or tutorial on a webpage out there > that will help me learn how to fix these things? The handbook makes no > mention of how to resolve these issues... unless I missed something? The "-f" option to pkg_delete/pkg_deinstall will force it to do the action, even if there are dependencies. Sometimes it's the only way. There's also the -o option to portupgrade. As for a tutorial: first, check UPDATING. Then the command man page. If necessary, a web search. I can't remember what I did for this particular upgrade, but do remember deleting some of the older autoconf ports manually. I suspect you could delete all of them (and maybe some or all of the automake ports) and then just deinstall and install autotools. (Like pkg_delete -f, "make deinstall" in a port will ignore dependencies and just go ahead.) After you do all that, you'll probably need to run pkgdb -F to fix or at least check dependencies. -Warren Block * Rapid City, South Dakota USA