Subject: pkg/16821: Binary package upgrades of lack recursion like 'make update'
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kpneal@pobox.com>
List: netbsd-bugs
Date: 05/14/2002 23:52:29
>Number:         16821
>Category:       pkg
>Synopsis:       Upgrading binary packages depended on by others harder than 'make update'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue May 14 20:53:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kevin P. Neal
>Release:        NetBSD 1.5.2
>Organization:
None
>Environment:
System: NetBSD tome.neutralgood.org 1.5.2 NetBSD 1.5.2 (TOME) #52: Thu May 9 17:33:04 EDT 2002 kpn@tome.neutralgood.org:/local/kernel/compile/TOME alpha


>Description:

I need to upgrade pth on my box 'tome', and I have a binary package
generated on 'tesseract'. There is no way to do a pkg_add of pth
on tome and have all packages that depend on pth be upgraded also.
This is exactly what a 'make update' does in pkgsrc, but it would
work on all binary packages.

>How-To-Repeat:

Move binary packages from one machine to another. Find the task of
upgrading lots of packages tedious due to lots of dependencies.

tome# pkg_add /nfs/tesseract/usr/pkg/src/packages/alpha/All/pth-1.4.0.tgz 
pkg_add: other version 'pth-1.3.7' already installed
tome# pkg_delete pth-1.3.7
pkg_delete: package `pth-1.3.7' is required by other packages:
        wmakerconf-2.8.1nb1
        gnumeric-0.75nb1
        gal-0.19nb1
        gnome-vfs-1.0.3
        GConf-1.0.9
        bonobo-1.0.18nb1
        oaf-0.6.7nb1
        gnome-print-0.35
        gdk-pixbuf-gnome-0.11.0nb1
        libglade-0.17nb1
        gnome-libs-1.4.1.4
        imlib-1.9.11nb1
        ORBit-0.5.13
        gdk-pixbuf-0.11.0nb1
        libole2-0.2.4
tome# echo "Lose."
Lose.
tome#

Oh, and see my previous PR. The pth-1.4.0 package is the exact package
required by my gnumeric-0.75nb1 build, but pth-1.3.7 is what the pkg
system says is required since that is what was installed when I did
the pkg_add of gnumeric. Oops.

>Fix:

None provided.
>Release-Note:
>Audit-Trail:
>Unformatted: