Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Sep 2008 08:52:12 GMT
From:      Frank Wall <fw@moov.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/127019: portupgrade does not recognize fail conditions
Message-ID:  <200809010852.m818qCHH091846@www.freebsd.org>
Resent-Message-ID: <200809010900.m8190GmW054289@freefall.freebsd.org>

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

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



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