From owner-freebsd-ruby@FreeBSD.ORG Mon Jan 18 01:54:17 2010 Return-Path: Delivered-To: ruby@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5FF91065695 for ; Mon, 18 Jan 2010 01:54:17 +0000 (UTC) (envelope-from spork@bway.net) Received: from xena.bway.net (xena.bway.net [216.220.96.26]) by mx1.freebsd.org (Postfix) with ESMTP id A310C8FC15 for ; Mon, 18 Jan 2010 01:54:17 +0000 (UTC) Received: (qmail 74898 invoked by uid 0); 18 Jan 2010 01:27:37 -0000 Received: from unknown (HELO ?10.3.2.41?) (spork@96.57.144.66) by smtp.bway.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 18 Jan 2010 01:27:37 -0000 Date: Sun, 17 Jan 2010 20:27:36 -0500 (EST) From: Charles Sprickman X-X-Sender: spork@hotlap.local To: ruby@FreeBSD.org Message-ID: User-Agent: Alpine 2.00 (OSX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: Subject: portupgrade errors on upgrade install X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2010 01:54:18 -0000 Howdy, Occasionally I've been running into an issue when doing an upgrade on a port where the old port gets uninstalled and then the new port install fails. So far the only fix is to manually deal with the deletion of the old port. An example is probably the easiest way to demonstrate this: ---> Build of shells/bash ended at: Fri, 15 Jan 2010 02:56:10 -0500 (consumed 00:00:49) ---> Updating dependency info ---> Uninstallation of bash-4.0.33_2 started at: Fri, 15 Jan 2010 02:56:10 -0500 ---> Fixing up dependencies before creating a package ---> Backing up the old version Looks good so far, port built without error, start the uninstall. ---> Uninstalling the old version ---> Deinstalling 'bash-4.0.33_2' [Updating the pkgdb in /var/db/pkg ... - 66 packages found (-1 +0) (...) done] ---> Uninstallation of bash-4.0.33_2 ended at: Fri, 15 Jan 2010 02:56:13 -0500 (consumed 00:00:03) Looks as if it has deinstalled the old bash... ---> Installation of shells/bash started at: Fri, 15 Jan 2010 02:56:13 -0500 ---> Installing the new version via the port ===> Installing for bash-4.0.35 ===> bash-4.0.35 depends on shared library: intl - found ===> Generating temporary packing list ===> Checking if shells/bash already installed It shouldn't be since we just uninstalled it (or did we?) ===> bash-4.0.35 is already installed Huh? 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 shells/bash without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /basejail/usr/ports/shells/bash. *** Error code 1 Stop in /basejail/usr/ports/shells/bash. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20100115-40275-sdjqgj-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=bash-4.0.33_2 UPGRADE_PORT_VER=4.0.33_2 make reinstall ---> Updating dependency info ---> Restoring the old version ---> Keeping old package in '/var/ports/packages/All' ** Fix the installation problem and try again. ---> Installation of shells/bash ended at: Fri, 15 Jan 2010 02:56:15 -0500 (consumed 00:00:01) ---> Upgrade of shells/bash ended at: Fri, 15 Jan 2010 02:56:15 -0500 (consumed 00:00:55) ---> ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed [Updating the pkgdb in /var/db/pkg ... - 67 packages found (-0 +1) . done] ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) ! shells/bash (bash-4.0.33_2) (install error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed ---> Session ended at: Fri, 15 Jan 2010 02:56:17 -0500 (consumed 00:01:03) If it matters, this is in a jail. This is 7.2 with portupgrade version 2.4.6_3,2. I've seen this pretty often, but have never been able to track down what's happening in that deinstall step. Thanks, Charles ___ Charles Sprickman NetEng/SysAdmin Bway.net - New York's Best Internet - www.bway.net spork@bway.net - 212.655.9344