From nobody@FreeBSD.org  Mon Nov  5 22:56:03 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 15A4637B419
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  5 Nov 2001 22:56:03 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id fA66u3M01109;
	Mon, 5 Nov 2001 22:56:03 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200111060656.fA66u3M01109@freefall.freebsd.org>
Date: Mon, 5 Nov 2001 22:56:03 -0800 (PST)
From: Darren R Johnston <darren780@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg_version pkg list output bug
X-Send-Pr-Version: www-1.0

>Number:         31792
>Category:       ports
>Synopsis:       pkg_version pkg list output bug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 05 23:00:01 PST 2001
>Closed-Date:    Thu Nov 15 18:52:36 PST 2001
>Last-Modified:  Thu Nov 15 18:55:07 PST 2001
>Originator:     Darren R Johnston
>Release:        FreeBSD 4.4
>Organization:
n/a
>Environment:
FreeBSD 24.65.146.6 4.4-STABLE FreeBSD 4.4-STABLE #1: Mon Nov  5 05:25:02 MST 2001     root@24.65.146.6:/usr/obj/usr/src/sys/DARREN  i386

>Description:
on my system I use "pkg_version -v|more" to keep up to date.  the bug is that since I didn't pkg_delete some installed ports and just overwrote them, pkg_version still lists them as installed.
here is an example:
ORBit-0.5.10_1                      <   needs updating (port has 0.5.10_5)
ORBit-0.5.10_5                      =   up-to-date with port
autoconf-2.13_1                     <   needs updating (port has 2.13.000227)
autoconf213-2.13.000227             =   up-to-date with port
bonobo-1.0.10                       =   up-to-date with port
bonobo-1.0.8                        <   needs updating (port has 1.0.10)
bonobo-1.0.9                        <   needs updating (port has 1.0.10)
esound-0.2.22                       <   needs updating (port has 0.2.23)
esound-0.2.23                       =   up-to-date with port


>How-To-Repeat:
install any port, update ports, don't pkg_delete the current port and install the newest version.
the next time pkg_version -v|more is executed, it will say the older port needs updated and list the updated one underneath.

>Fix:
possibly we need to add a pkg_delete when installing ports from /usr/ports.  a nice command to delete the presence of these ghosts without deinstalling the newer versions.  possibly a clean up to check for older versions before running the install.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: bmah 
State-Changed-When: Thu Nov 15 18:52:36 PST 2001 
State-Changed-Why:  
This isn't really a bug...the "upgrading ports" problem isn't well- 
handled by any utility in the base system.  The portupgrade utility, 
(sysutils/portupgrade) will do almost all of the work for you. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31792 
>Unformatted:
