Date: Sun, 17 Jan 2010 20:27:36 -0500 (EST) From: Charles Sprickman <spork@bway.net> To: ruby@FreeBSD.org Subject: portupgrade errors on upgrade install Message-ID: <alpine.OSX.2.00.1001172021030.32117@hotlap.local>
next in thread | raw e-mail | index | archive | help
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 <format:bdb_btree> 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 <format:bdb_btree> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.OSX.2.00.1001172021030.32117>