From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 1 09:00:29 2008 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 291431065682 for ; Mon, 1 Sep 2008 09:00:29 +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 0232B8FC1F for ; Mon, 1 Sep 2008 09:00:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8190GKu054290 for ; Mon, 1 Sep 2008 09:00:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8190GmW054289; Mon, 1 Sep 2008 09:00:16 GMT (envelope-from gnats) Resent-Date: Mon, 1 Sep 2008 09:00:16 GMT Resent-Message-Id: <200809010900.m8190GmW054289@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, Frank Wall Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 682271065686 for ; Mon, 1 Sep 2008 08:52:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 599C78FC1C for ; Mon, 1 Sep 2008 08:52:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m818qCE8091847 for ; Mon, 1 Sep 2008 08:52:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m818qCHH091846; Mon, 1 Sep 2008 08:52:12 GMT (envelope-from nobody) Message-Id: <200809010852.m818qCHH091846@www.freebsd.org> Date: Mon, 1 Sep 2008 08:52:12 GMT From: Frank Wall To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/127019: portupgrade does not recognize fail conditions X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 09:00:29 -0000 >Number: 127019 >Category: ports >Synopsis: portupgrade does not recognize fail conditions >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: Mon Sep 01 09:00:16 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Frank Wall >Release: 7.0-RELEASE-p2 >Organization: >Environment: FreeBSD XXX 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: When trying to install a port with portupgrade and the installation failes with an error, portupgrade does not recognize this error conditions and reports the failed installation as successful installation. >How-To-Repeat: You may easily repeat this problem by trying to install both 'lynx' ports at the same time. Although this is nothing you would do in real world, this is nice to show the wrong behaviour of portupgrade. # portinstall -Nv lynx ---> Reading default options: -v -b -D -L /var/tmp/portupgrade-%s::%s.log ---> Session started at: Mon, 01 Sep 2008 10:08:46 +0200 ---> Found 2 ports matching 'lynx': www/lynx www/lynx-current Install 'www/lynx'? [yes] [...] Install 'www/lynx-current'? [yes] [...] Now portupgrade is going to install 'www/lynx' first. This will be successfull. Afterwards portupgrade tries to install 'www/lynx-current', but it fails due to conflicts with already installed 'www/lynx' package: ---> Build of www/lynx-current ended at: Mon, 01 Sep 2008 10:12:46 +0200 (consumed 00:01:54) ---> Installation of www/lynx-current started at: Mon, 01 Sep 2008 10:12:46 +0200 ---> Installing the new version via the port ===> Installing for lynx-2.8.7d9_1 ===> lynx-2.8.7d9_1 conflicts with installed package(s): lynx-2.8.6.5_4,1 They install files into the same place. Please remove them first with pkg_delete(1). *** Error code 1 Stop in /usr/ports/www/lynx-current. *** Error code 1 Stop in /usr/ports/www/lynx-current. At this point I would expect portupgrade to report the installation of 'www/lynx' as successfull, but the installation of 'www/lynx-devel' as failed. But take a look at the report: ---> ** Install tasks 3: 3 done, 0 ignored, 0 skipped and 0 failed ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) + misc/mime-support + www/lynx + www/lynx-current ---> Packages processed: 3 done, 0 ignored, 0 skipped and 0 failed ---> Session ended at: Mon, 01 Sep 2008 10:12:48 +0200 (consumed 00:04:01) Portupgrade tells me that the installation of 'www/lynx-current' was successfull, although the installation failed. >Fix: >Release-Note: >Audit-Trail: >Unformatted: