ports/131111: ports-mgmt/portupgrade-devel: completely removes package on installation error
Gabor Kovesdan
gabor at FreeBSD.org
Thu Jan 29 09:20:02 UTC 2009
>Number: 131111
>Category: ports
>Synopsis: ports-mgmt/portupgrade-devel: completely removes package on installation error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 29 09:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Gabor Kovesdan
>Release: FreeBSD 7.1-PRERELEASE amd64
>Organization:
>Environment:
>Description:
When a new version of a port fails, portupgrade sometimes completely removes
the port. In this case it should restore the backed up package.
>How-To-Repeat:
Don't really know, it happened with ftp/proftpd, here is the output below.
Note the marked sections, where the old package is backed up properly, but
then it is removed even if the installation failed.
---> Upgrade of ftp/proftpd started at: Thu, 29 Jan 2009 09:44:59 +0100
---> Upgrading 'proftpd-1.3.2.r4' to 'proftpd-1.3.2.r4_1' (ftp/proftpd)
OK? [yes]
---> Build of ftp/proftpd started at: Thu, 29 Jan 2009 09:49:05 +0100
---> Building '/usr/ports/ftp/proftpd'
===> Cleaning for proftpd-1.3.2.r4_1
===> Found saved configuration for proftpd-1.3.1_11
===> Extracting for proftpd-1.3.2.r4_1
=> MD5 Checksum OK for proftpd-1.3.2rc4.tar.bz2.
=> SHA256 Checksum OK for proftpd-1.3.2rc4.tar.bz2.
=> No MD5 checksum recorded for mod_clamav-0.10.tar.bz2.
=> No SHA256 checksum recorded for mod_clamav-0.10.tar.bz2.
=> No suitable checksum found for mod_clamav-0.10.tar.bz2.
=> No MD5 checksum recorded for mod_digest.c.
=> No SHA256 checksum recorded for mod_digest.c.
=> No suitable checksum found for mod_digest.c.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
---> Build of ftp/proftpd ended at: Thu, 29 Jan 2009 09:49:06 +0100 (consumed 00:00:01)
---> Updating dependency info
---> Uninstallation of proftpd-1.3.2.r4 started at: Thu, 29 Jan 2009 09:49:09 +0100
---> Fixing up dependencies before creating a package
---> Backing up the old version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
---> Uninstalling the old version
---> Deinstalling 'proftpd-1.3.2.r4'
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 764 packages found (-1 +0) (...) done]
---> Uninstallation of proftpd-1.3.2.r4 ended at: Thu, 29 Jan 2009 09:49:16 +0100 (consumed 00:00:07)
---> Installation of ftp/proftpd started at: Thu, 29 Jan 2009 09:49:16 +0100
---> Installing the new version via the port
===> Found saved configuration for proftpd-1.3.1_11
===> Extracting for proftpd-1.3.2.r4_1
=> MD5 Checksum OK for proftpd-1.3.2rc4.tar.bz2.
=> SHA256 Checksum OK for proftpd-1.3.2rc4.tar.bz2.
=> No MD5 checksum recorded for mod_clamav-0.10.tar.bz2.
=> No SHA256 checksum recorded for mod_clamav-0.10.tar.bz2.
=> No suitable checksum found for mod_clamav-0.10.tar.bz2.
=> No MD5 checksum recorded for mod_digest.c.
=> No SHA256 checksum recorded for mod_digest.c.
=> No suitable checksum found for mod_digest.c.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
*** Error code 1
Stop in /usr/ports/ftp/proftpd.
===> Cleaning for proftpd-1.3.2.r4_1
---> Removing temporary files and directories
---> Removing old package'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
---> Installation of ftp/proftpd ended at: Thu, 29 Jan 2009 09:49:18 +0100 (consumed 00:00:02)
---> Cleaning out obsolete shared libraries
---> Upgrade of ftp/proftpd ended at: Thu, 29 Jan 2009 09:49:22 +0100 (consumed 00:04:23)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list