Subject: pkg tools problem
To: None <tech-pkg@netbsd.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-pkg
Date: 02/04/2005 18:28:34
I'm trying to install a package, using up-to-date pkgsrc.  When I try,
I get the following message:

===> Error: The package tools installed on this system are out of date.
===> The installed package tools are dated 2005/01/06 and you must update
===> them to at least 2005/02/04 using the following command:
===> 
===>    cd /usr/pkgsrc/pkgtools/pkg_install && /usr/bin/make clean && /usr/bin/make install
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/benchmarks/lmbench

I follow the instructions, of course, making only one change:  I
enclose the command line in parentheses, to avoid the "hassle" of
changing back to the directory I want to be in.  But it fails:

===> Installing for pkg_install-20050204
===> pkg_install-20050106 is already installed - perhaps an older version?
*** If so, you may use either of:
***  - "pkg_delete pkg_install-20050106" and "/usr/bin/make reinstall" to upgrade properly
***  - "/usr/bin/make update" to rebuild the package and all of its dependencies
***  - "/usr/bin/make replace" to replace only the package without re-linking
***    dependencies, risking various problems.
*** Error code 1


I'm loathe to do a pkg_delete on pkg_install; beyond that, are the
instructions now wrong?  The machine I'm running on is -current.