Subject: pkg/10648: make update does not handle package interdependecies
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rhialto@azenomei.knuffel.net>
List: netbsd-bugs
Date: 07/21/2000 06:21:11
>Number:         10648
>Category:       pkg
>Synopsis:       make update does not handle package interdependecies
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 21 06:22:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Rhialto
>Release:        1.4.1 with fairly current pkgsrc <NetBSD-current source date>
>Organization:
	
>Environment:
	
System: NetBSD azenomei.falu.nl 1.4.1 NetBSD 1.4.1 (AZENOMEI) #27: Wed Jun 14 01:41:57 CEST 2000 rhialto@azenomei.falu.nl:/usr/src/sys/arch/alpha/compile/AZENOMEI alpha


>Description:
	
	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 root@azenomei.falu.nl to install apache-1.3.12.
/usr/bin/su Password:
===>  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

Stop.
azenomei.1:/vol1/rhialto/sup/root/pkgsrc/www/ap-ssl$ sudo pkg_delete apache-1.3.11
Password:
pkg_delete: package `apache-1.3.11' is required by other packages:
        ap-php-3.0.7

	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.

>How-To-Repeat:
	
	cd www/ap-ssl && make update
>Fix:
	
	dunno, maybe change "make install" into "make update" in one
	place? (that would be too simple, I suspect)

-Olaf.
-- 
___ 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.
>Release-Note:
>Audit-Trail:
>Unformatted: