Subject: Re: make update broken?
To: Ken Woodhams <kwoodhams2@yahoo.ca>
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
List: tech-pkg
Date: 12/17/2002 18:05:49
On Tue, Dec 17, 2002 at 11:40:38AM -0500, Ken Woodhams wrote:
>  --- Dave <dgriffi@cs.csubak.edu> wrote: 
> > IMHO, make update should build first, THEN
> > delete to prevent troubles with packages that
> > won't build.
> 
> I agree totally. Deleting installed software 
> before the new version is compiled without any
> errors is being a little presumptuous.

The behaviour is like this since there is no way to make sure
that a new version of e.g. a library will compile in the presence
of an already installed old version. (The installed headers
might be found instead of the not-yet-installed new ones, causing
strange compilation errors).

I suggest you add
	UPDATE_TARGET=package
to your /etc/mk.conf and install packages with
	make package
instead of
	make install .
That way you'll always have binary packages of all installed
software, and can switch back to an older version in case
a newer one does not work for you. (If this really happens,
it should be reported with send-pr(1), of course.)

Cheers,
 Thomas

-- 
Thomas Klausner - wiz@danbala.ifoer.tuwien.ac.at
What is wanted is not the will to believe, but the will to find
out, which is the exact opposite. -- Bertrand Russell