Subject: pkg/8396: USE-MOTIF vs DEPENDS for updating packages
To: None <gnats-bugs@gnats.netbsd.org>
From: Bjoern Labitzke <hermit@cs.tu-berlin.de>
List: netbsd-bugs
Date: 09/13/1999 04:50:53
>Number:         8396
>Category:       pkg
>Synopsis:       USE_MOTIF vs DEPENDS for updating packages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 13 04:50:00 1999
>Last-Modified:
>Originator:     Bjoern Labitzke
>Organization:
Bjoern Labitzke  <hermit@cs.tu-berlin.de>
   Use PGP! (Don't you use envelopes for your letters?)
>Release:        -current 12.9.1999 <NetBSD-current source date>
>Environment:
	
System: NetBSD labitzke.isdn.cs.tu-berlin.de 1.4K NetBSD 1.4K (LABITZKE) #2: Mon Sep 13 03:02:58 CEST 1999 hermit@labitzke.isdn.cs.tu-berlin.de:/usr/src/sys/arch/i386/compile/LABITZKE i386


>Description:
I just tried a make update in pkgsrc/x11/lesstif. It seemed to work with one
exception: nedit was not deleted prior to the update, xmcd was. Therefor I
assume that there is a difference between a dependency of a package on
MOTIF/Lesstif to a real dependency declared by a DEPENDS line. The package
system could figure out that nedit depends on the lesstif package and is
affected by the update, but probably the necessary information for the
recursive pkg_delete was not in the pkg-db.

This problem resulted in the error that the system tried to install nedit
without deleting it first.
	
>How-To-Repeat:
Install lesstif and nedit. Update lesstif.
	
>Fix:
Perhaps packages depending on MOTIF have to add some data to the pkg-db as
a DEPENDS line seems to do?
	
>Audit-Trail:
>Unformatted: