From owner-freebsd-questions@FreeBSD.ORG Wed Mar 28 00:04:17 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C828316A400 for ; Wed, 28 Mar 2007 00:04:17 +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 9E33A13C4BB for ; Wed, 28 Mar 2007 00:04:17 +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 7B1FF5191F for ; Tue, 27 Mar 2007 20:04:14 -0400 (EDT) Date: Wed, 28 Mar 2007 01:04:08 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070328010408.76de4a6d@gumby.homeunix.com> In-Reply-To: <20070327225942.GK11147@tigger.digitaltorque.ca> References: <20070327225942.GK11147@tigger.digitaltorque.ca> X-Mailer: Claws Mail 2.8.1 (GTK+ 2.10.11; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: understanding this portupgrade error 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: Wed, 28 Mar 2007 00:04:17 -0000 On Tue, 27 Mar 2007 18:59:43 -0400 "Michael P. Soulier" wrote: > Hi, > > I'm upgrading cacti, and it's failing on the net-snmp port. > > ===> Installing for net-snmp-5.3.1_2 > ===> net-snmp-5.3.1_2 depends on file: /usr/local/bin/perl5.8.8 - > found ===> Generating temporary packing list > ===> Checking if net-mgmt/net-snmp already installed > ===> An older version of net-mgmt/net-snmp is already installed > (net-snmp-5.2.3_4) > You may wish to ``make deinstall'' and install this port again > by ``make reinstall'' to upgrade it properly. > If you really wish to overwrite the old port of > net-mgmt/net-snmp without deleting it first, set the variable > "FORCE_PKG_REGISTER" in your environment or the "make install" > command line. *** Error code 1 > > I'm confused. Of course an older version is installed, that's why > it's called an upgrade. The new doesn't overwrite the old. Portupgrade removes the the old version before installing the new, and if the new version fails to install, it restores the old version from a backup package. Possibly you have two net-snmp packages installed. Another cause of this is an incorrectly specified dependency, where net-snmp doesn't actually provide the file that's used to determine whether net-snmp needs to be built. Or there may have been a problem with the pkg_delete of the old version.