From khera@kciLink.com  Tue Aug  6 10:17:43 2002
Return-Path: <khera@kciLink.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B641537B400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Aug 2002 10:17:43 -0700 (PDT)
Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4E4BE43E65
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Aug 2002 10:17:43 -0700 (PDT)
	(envelope-from khera@kciLink.com)
Received: from onceler.kciLink.com (onceler.kciLink.com [216.194.193.106])
	by yertle.kciLink.com (Postfix) with ESMTP id C9B542178B
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Aug 2002 13:17:37 -0400 (EDT)
Received: by onceler.kciLink.com (Postfix, from userid 100)
	id 9FD8C3D15; Tue,  6 Aug 2002 13:17:37 -0400 (EDT)
Message-Id: <20020806171737.9FD8C3D15@onceler.kciLink.com>
Date: Tue,  6 Aug 2002 13:17:37 -0400 (EDT)
From: Vivek Khera <khera@kciLink.com>
Reply-To: Vivek Khera <khera@kciLink.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: portupgrade uses old dependencies when repackaging
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         41383
>Category:       ports
>Synopsis:       portupgrade uses old dependencies when repackaging
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 06 10:20:01 PDT 2002
>Closed-Date:    Sat Nov 09 16:47:35 JST 2002
>Last-Modified:  Sat Nov 09 16:47:35 JST 2002
>Originator:     Vivek Khera
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD onceler.kciLink.com 4.6-STABLE FreeBSD 4.6-STABLE #0: Mon Jun 17 23:25:23 EDT 2002 khera@yertle.kciLink.com:/u/yertle2/usr.obj/amd/onceler/u/onceler1/usr/src/sys/ONCELER i386


	
portupgrade-20020805

>Description:
	

running "portupgrade -Rrvp bash" upgraded my bash from 2.05a to 2.05b,
and then repackaged hylafax, which depends on it.  However, when
packaging hylafax, it recorded the old dependency of 2.05a:

===>   Registering installation for bash-2.05b
===>  Building package for bash-2.05b
Creating package /usr/ports/packages/All/bash-2.05b.tbz
Registering depends:.
Creating bzip'd tar ball in '/usr/ports/packages/All/bash-2.05b.tbz2'
===>  Cleaning for bash-2.05b
--->  Removing the temporary backup files
--->  Removing the obsoleted dependencies
--->  Restoring the dependency info
--->  Cleaning out obsolete shared libraries
** No need to upgrade 'hylafax-4.1_1' (>= hylafax-4.1_1). (specify -f to force)
--->  Packaging 'hylafax-4.1_1' as dependency
Taring up hylafax-4.1_1
Creating package /usr/ports/packages/All/hylafax-4.1_1.tgz
Registering depends: bash-2.05a tiff-3.5.7 tiff-3.5.7 jpeg-6b_1 jpeg-6b_1 bash-2.05a.
Creating gzip'd tar ball in '/usr/ports/packages/All/hylafax-4.1_1.tgz'
 60.5%
--->  Reporting the results (+:succeeded / -:ignored / *:skipped / !:failed)
        + shells/bash2 (bash-2.05a)
        - comms/hylafax (hylafax-4.1_1)


>How-To-Repeat:
	

upgrade a port that has things depending on it with the "-p" flag.

>Fix:

	


re-run pkg_tarup after to fix up the package.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->knu 
Responsible-Changed-By: dwcjr 
Responsible-Changed-When: Thu Aug 8 12:08:26 PDT 2002 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41383 
State-Changed-From-To: open->patched 
State-Changed-By: knu 
State-Changed-When: Sat Nov 9 16:28:42 JST 2002 
State-Changed-Why:  
This has been dealt with in the development tree. 
Will soon be released. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41383 
State-Changed-From-To: patched->closed 
State-Changed-By: knu 
State-Changed-When: Sat Nov 9 16:43:18 JST 2002 
State-Changed-Why:  
This is not portupgrade's fault but obviously pkg_create(1)'s. 
However, since pkg_* tools in the base don't have a clue as to 
how to fix frequently and easily broken package dependencies, 
portupgrade must take care of them in the base tools' stead. 

I added some code to the latest version of portupgrade that does 
that, so please check out.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41383 
>Unformatted:
