From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 29 09:20:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3F1C1065674 for ; Thu, 29 Jan 2009 09:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ADD2E8FC21 for ; Thu, 29 Jan 2009 09:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0T9K1UV014061 for ; Thu, 29 Jan 2009 09:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0T9K1Nw014060; Thu, 29 Jan 2009 09:20:01 GMT (envelope-from gnats) Resent-Date: Thu, 29 Jan 2009 09:20:01 GMT Resent-Message-Id: <200901290920.n0T9K1Nw014060@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gabor Kovesdan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2D7F1065673 for ; Thu, 29 Jan 2009 09:12:54 +0000 (UTC) (envelope-from gabor@server.mypc.hu) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 4CC9C8FC12 for ; Thu, 29 Jan 2009 09:12:54 +0000 (UTC) (envelope-from gabor@server.mypc.hu) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id DAE2614D84B3 for ; Thu, 29 Jan 2009 09:55:41 +0100 (CET) Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id S2BIhPW89FME for ; Thu, 29 Jan 2009 09:55:36 +0100 (CET) Received: by server.mypc.hu (Postfix, from userid 1001) id D03B414D8466; Thu, 29 Jan 2009 09:55:36 +0100 (CET) Message-Id: <20090129085536.D03B414D8466@server.mypc.hu> Date: Thu, 29 Jan 2009 09:55:36 +0100 (CET) From: Gabor Kovesdan To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/131111: ports-mgmt/portupgrade-devel: completely removes package on installation error X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gabor Kovesdan List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2009 09:20:02 -0000 >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 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: