Subject: pkg/10648: make update does not handle package interdependecies
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 07/21/2000 06:21:11
>Synopsis: make update does not handle package interdependecies
>Arrival-Date: Fri Jul 21 06:22:00 PDT 2000
>Release: 1.4.1 with fairly current pkgsrc <NetBSD-current source date>
System: NetBSD azenomei.falu.nl 1.4.1 NetBSD 1.4.1 (AZENOMEI) #27: Wed Jun 14 01:41:57 CEST 2000 email@example.com:/usr/src/sys/arch/alpha/compile/AZENOMEI alpha
I have non-up-to-date packages www/apache, www/ap-ssl, and
www/ap-php installed. www/ap-* all depend on www/apache.
I did a "make update" in www/ap-ssl. This built a new apache as
well, but could not install it:
===> Installing for apache-1.3.12
===> Becoming firstname.lastname@example.org to install apache-1.3.12.
===> apache-1.3.11 is already installed - perhaps an older version?
*** If so, you may wish to ``pkg_delete apache-1.3.11'' and install
*** this package again by ``/usr/bin/make reinstall'' to upgrade it properly,
*** or use ``/usr/bin/make update'' to upgrade it and all of its dependencies.
*** If you really wish to overwrite the old package of apache-1.3.11
*** without deleting it first, set the variable "FORCE_PKG_REGISTER"
*** in your environment or the "/usr/bin/make install" command line.
*** Error code 1
azenomei.1:/vol1/rhialto/sup/root/pkgsrc/www/ap-ssl$ sudo pkg_delete apache-1.3.11
pkg_delete: package `apache-1.3.11' is required by other packages:
IIRC, in the past this worked better since it at least attempted
to remove and update ap-php as well. It still failed when you
needed to restart the procedure due to some build problem not
anticipated by the package system though. In that case it forgot
some of the other packages to re-install.
This whole interdependency thing is quite annoying if you want
to update some package that is used by many others and even
worse if it's used indirectly; the current system forces you to
deinstall just about everything and you have to keep track
manually of what to re-install, and hope that the configuration
was preserved correctly in the end.
cd www/ap-ssl && make update
dunno, maybe change "make install" into "make update" in one
place? (that would be too simple, I suspect)
___ Olaf 'Rhialto' Seibert - rhialto@polder -- Ah only did well at school
\X/ land.nl -- tae git intae an O level class tae git away fae Begbie.