From pfeifer@dbai.tuwien.ac.at  Tue Jan 21 06:50:05 2003
Return-Path: <pfeifer@dbai.tuwien.ac.at>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CB42037B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Jan 2003 06:50:05 -0800 (PST)
Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 97CE243F13
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Jan 2003 06:50:04 -0800 (PST)
	(envelope-from pfeifer@dbai.tuwien.ac.at)
Received: from naos.dbai.tuwien.ac.at (naos [128.130.111.28])
	by vexpert.dbai.tuwien.ac.at (8.12.6/8.12.6) with ESMTP id h0LEnxB4018083;
	Tue, 21 Jan 2003 15:49:59 +0100 (CET)
Received: (from pfeifer@localhost)
	by naos.dbai.tuwien.ac.at (8.12.6/8.12.6/Submit) id h0LEnud0048675;
	Tue, 21 Jan 2003 15:49:56 +0100 (CET)
Message-Id: <200301211449.h0LEnud0048675@naos.dbai.tuwien.ac.at>
Date: Tue, 21 Jan 2003 15:49:56 +0100 (CET)
From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: pkg_update removes installed package even if prerequisites are missing
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47298
>Category:       bin
>Synopsis:       pkg_update removes installed package even if prerequisites are missing
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    paul
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 21 07:00:18 PST 2003
>Closed-Date:    Tue Jul 22 04:30:00 PDT 2003
>Last-Modified:  Tue Jul 22 04:30:00 PDT 2003
>Originator:     Gerald Pfeifer
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
>Environment:
System: FreeBSD naos.dbai.tuwien.ac.at 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Thu Jan 9 09:25:29 CET 2003 root@aludra.dbai.tuwien.ac.at:/usr/src/sys/compile/DBAI-MP i386


	
>Description:
	Even if prerequisites of the newer version of an already installed package
	are missing, pkg_update removes the installed (older) version of the package
	_before_ noticing that it won't be able to install the newer version.
>How-To-Repeat:
	naos# pkg_info | grep mozilla
	mozilla-1.1_1,1     The open source, standards compliant web browser

	naos# pkg_update mozilla-1.2b_3,1.tgz 
	Updating mozilla packages to version 1.2
	pkg_add: could not find package fontconfig-2.0_2 !
	pkg_add: could not find package Xft-2.0_1 !
	Command '/usr/sbin/pkg_add mozilla-1.2b_3,1' failed, No such file or directory

	naos# pkg_info | grep mozilla
	naos# 

>Fix:
	First check for prerequisites of the new package, and only then remove 
	the old package.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->paul 
Responsible-Changed-By: will 
Responsible-Changed-When: Wed Jun 11 21:38:47 PDT 2003 
Responsible-Changed-Why:  
Over to author (and maybe maintainer?) for a look-see. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47298 
State-Changed-From-To: open->closed 
State-Changed-By: paul 
State-Changed-When: Tue Jul 22 04:28:37 PDT 2003 
State-Changed-Why:  
This tool has been removed from 5.0 in favour of portupgrade so no 
further development is being done to it. 

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