Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2007 06:26:34 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        "Donovan R. Palmer" <donovan@dmpnet.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: portupgrade questions
Message-ID:  <20071105055724.N17994@wonkity.com>
In-Reply-To: <000c01c81f93$344c2c40$6543a8c0@DonovansLaptop>
References:  <BAY114-W1198B68AE765DD630D744BBB8F0@phx.gbl><20071105135017.76a2c48a@meijome.net> <20071105070952.50ba2f37@epia-2.farid-hajji.net> <000c01c81f93$344c2c40$6543a8c0@DonovansLaptop>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071105055724.N17994>