tech-pkg: upgrade of pkg_install not quite right

Subject: upgrade of pkg_install not quite right
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.sep.sieben@kh-22.de>
List: tech-pkg
Date: 09/15/2007 20:52:27
Hi,
today I tried to build some package on Linux with pkg_install-20051107
installed.
After resolving the catch-22 of
 you need pkg_install-20070911...
 you need sysutils/checkperms...
 you need pkg_install-20070911...
by removing PKG_DEVELOPER=yes I built pkg_install-20070911 as a user (with
USE_DESTDIR=yes, USE_DESTDIR=full does not work).
Installation with
 $ bmake package-install
did not work:
 ===> Skipping vulnerability checks.
 WARNING: No /opt/pkgdistfiles/pkg-vulnerabilities file found.
 WARNING: To fix, install the pkgsrc/security/audit-packages
 WARNING: package and run: ``/opt/pkg/sbin/download-vulnerability-list''.
 => Becoming ``root'' to make su-real-package-install (sudo)
 ===> Install binary package of pkg_install-20070911
 /opt/pkg/sbin/pkg_add -K /var/opt/pkg/db
 /opt/packages/All/pkg_install-20070911.tgz
 pkg_add: other version 'pkg_install-20051107' already installed
 pkg_add: 1 package addition failed
 *** Error code 1
Ok, how about
 $ sudo su - root -c "pkg_add -u /opt/packages/All/pkg_install-20070911.tgz"
 Package `pkg_install-20051107' is marked as not for deletion
 .............................................................................
 .........................................
 Stored 11837 files from 118 packages in /var/opt/pkg/db/pkgdb.byfile.db.
 Done.
 ===========================================================================
 ...MESSAGE file...
 ===========================================================================
 
Looks ok, but now I have
 $ pkg_info -e pkg_install
 pkg_install-20051107
 pkg_install-20070911
 $ pkg_info -L pkg_install-20051107
 Information for pkg_install-20051107:
 *** PACKAGE MAY NOT BE DELETED ***
 Files:
 ...
 $ pkg_info -L pkg_install-20070911
 Information for pkg_install-20070911:
 *** PACKAGE MAY NOT BE DELETED ***
 Files:
 ...
This is not what I would have expected from "pkg_add -u".
ciao
 Klaus

AltStyle によって変換されたページ (->オリジナル) /