Subject: the never-ending pkgtools-updating drama
To: None <tech-pkg@NetBSD.org>
From: Hubert Feyrer <feyrer@cs.stevens.edu>
List: tech-pkg
Date: 11/30/2005 06:21:22
I ran into this tonight:
noon% make install
===> Error: The package tools installed on this system are out of date.
===> The installed package tools are dated 2005/05/30 and you must update
===> them to at least 2005/11/03 using the following command:
===>
===> (cd /usr/cvs/pkgsrc/pkgtools/pkg_install && /usr/bin/make clean && /usr/bin/make update)
*** Error code 1
well, no problem. I know that updating this pkg is strange, but luckily
there's a command given for cut&paste so I don't have to engage my brain -
perfect.
I thought! :-(
What I got instead is:
...
===> Deinstalling for pkg_install
===> Becoming root@noon to deinstall pkg_install.
/usr/bin/su Password:
Terminal type is xterm.
Running /usr/cvs/pkgsrc/pkgtools/pkg_install/work/pkg_install-20051122/delete/pkg_delete
pkg_install-20050318
Package `pkg_install-20050318' is marked as not for deletion
/usr/bin/make bin-install
===> Binary install for pkg_install-20051122
===> Becoming root@noon to binary install pkg_install.
/usr/bin/su Password:
Terminal type is xterm.
===> pkg_install-20050318 is already installed - perhaps an older version?
*** If so, you may wish to ``pkg_delete pkg_install-20050318'' and install
*** this package again by ``/usr/bin/make bin-install'' to upgrade it properly.
*** Error code 1
That didn't work, obiously.
It would be nice if this could be fixed, so that the right procedure is in
the first message, whichever it is.
And yes, I have DEPENDS_TARGET set in mk.conf. Without it, I get the
following error for the initially recommended command:
Running /usr/cvs/pkgsrc/pkgtools/pkg_install/work/pkg_install-20051122/delete/pkg_delete pkg_install-20050318
Package `pkg_install-20050318' is marked as not for deletion
/usr/bin/make install
===> *** No /usr/cvs/pkgsrc/distfiles/pkg-vulnerabilities file found,
===> *** skipping vulnerability checks. To fix, install
===> *** the pkgsrc/security/audit-packages package and run
===> *** '/usr/pkg/sbin/download-vulnerability-list'.
===> Installing for pkg_install-20051122
===> Becoming root@noon to install pkg_install.
/usr/bin/su Password:
Terminal type is xterm.
===> pkg_install-20050318 is already installed - perhaps an older version?
*** If so, you may use either of:
*** - "pkg_delete pkg_install-20050318" 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
So could whoever has a clue on this fix the initial message, poossibly in
a way that DEPENDS_TARGET doesn't affect things?
Please?
- Hubert