Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jan 2009 09:55:36 +0100 (CET)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/131111: ports-mgmt/portupgrade-devel: completely removes package on installation error
Message-ID:  <20090129085536.D03B414D8466@server.mypc.hu>
Resent-Message-ID: <200901290920.n0T9K1Nw014060@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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