Subject: pkg/33716: pkg_install does not "update"
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <harenberg@physik.uni-wuppertal.de>
List: pkgsrc-bugs
Date: 06/13/2006 10:15:02
>Number:         33716
>Category:       pkg
>Synopsis:       pkg_install does not "update"
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 13 10:15:00 +0000 2006
>Originator:     Torsten Harenberg
>Release:        3.0_STABLE
>Organization:
University of Wuppertal
>Environment:
NetBSD wpdu2.physik.uni-wuppertal.de 3.0_STABLE NetBSD 3.0_STABLE (wpdu2) #0: Fri May  5 11:53:24 CEST 2006  root@wpdu2.physik.uni-wuppertal.de:/usr/alphaobj/sys/arch/alpha/compile/wpdu2 alpha 
>Description:
make update

or

make
make update

does not work on pkg_install:

12:09] root@wpdu2:/usr/pkgsrc/pkgtools/pkg_install $ make update
/usr/bin/make
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Installing dependencies for pkg_install-20060424
===> Overriding tools for pkg_install-20060424
===> Extracting for pkg_install-20060424
===> Patching for pkg_install-20060424

[...]
 
cc -DHAVE_CONFIG_H -DDEF_UMASK=0022 -I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -I. -I. -I../lib -O2 -mieee -c show.c
cc -L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat -Wl,-R/usr/pkg/lib -L../lib -o pkg_info main.o perform.o show.o -linstall -ltermcap -lnbcompat
=> Unwrapping files-to-be-installed.
/usr/bin/make deinstall UPDATE_RUNNING=YES
===> Deinstalling for pkg_install-20060424
Running /usr/pkgsrc/pkgtools/pkg_install/work/pkg_install-20060424/delete/pkg_delete  pkg_install-20060405
Package `pkg_install-20060405' is marked as not for deletion
/usr/bin/make install
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Overriding tools for pkg_install-20060424
===> Installing for pkg_install-20060424
ERROR: pkg_install-20060405 is already installed - perhaps an older version?
ERROR: If so, you may use either of:
ERROR:     - "pkg_delete pkg_install-20060405" and "/usr/bin/make reinstall"
ERROR:       to upgrade properly
ERROR:     - "/usr/bin/make update" to rebuild the package and all
ERROR:       of its dependencies
ERROR:     - "/usr/bin/make replace" to replace only the package without
ERROR:       re-linking dependencies, risking various problems.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
[12:13] root@wpdu2:/usr/pkgsrc/pkgtools/pkg_install $   


(tried to make clean, make, make update, didn't help. Also cvs update'd twice to be sure that was not an intermediate file change. Then tried to rm -rf /usr/pkgsrc and cvs co from scratch.)

>How-To-Repeat:
update pkgsrc and try to upgrade the pkg_install package
>Fix: