Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 2010 15:14:11 GMT
From:      Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/151662: ports-mgmt/portupgrade: upgrade of autoconf leaves old version
Message-ID:  <201010231514.o9NFEBXL071563@www.freebsd.org>
Resent-Message-ID: <201010231520.o9NFK6Ob092997@freefall.freebsd.org>

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

>Number:         151662
>Category:       ports
>Synopsis:       ports-mgmt/portupgrade: upgrade of autoconf leaves old version
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 23 15:20:05 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Marcin Wisnicki
>Release:        8.1-STABLE
>Organization:
>Environment:
FreeBSD ghost.pnet.one.pl 8.1-STABLE FreeBSD 8.1-STABLE #6: Fri Oct 22 21:12:09 CEST 2010     root@ghost.pnet.one.pl:/home/obj/usr/src/sys/SERWER_DDB  i386

>Description:
After running `portupgrade -a` I'm left with two versions of autoconf installed:

# pkg_info -Qo autoconf-2.67 autoconf-2.68
autoconf-2.67:devel/autoconf268
autoconf-2.68:devel/autoconf268

Notice how origin of autoconf-2.67 is wrong, it must have been edited by portupgrade. Modification time of /var/db/pkg/autoconf-2.67/+CONTENTS confirms that. It happened probably because of:
/usr/ports/MOVED:devel/autoconf267|devel/autoconf268|2010-10-16|Bump

Now when I run `portupgrade -a`, it will try to update autoconf-2.67 to 2.68 and fail since it is already installed.

There is some problem with handling of MOVED in portupgrade that causes it to leave old packages installed (sometimes?).
>How-To-Repeat:
1. Deinstall all auto* packages
2. Checkout ports from before 16 Oct 2010
3. Install autoconf267
4. Update ports to 17 Oct 2010
5. Run `portupgrade -a`
>Fix:
No fix but workaround is to deinstall old package.
In case of autoconf this is simple since there are no file conflicts between versions. For other ports you will have to deinstall both versions and then reinstall newer.

>Release-Note:
>Audit-Trail:
>Unformatted:



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