On Sat, Jun 05, 2010 at 06:48:18PM +1200, Richard Toohey wrote:
It appears simple enough to me, albeit it's early and I'm not
caffeine fueled yet.
As part of the any upgrade rm -rf /usr/obj/*, or wherever you are
storing the object files. /usr/xobj/*, and /usr/pobj/* too!. By
doing the upgrade you have just obliterated any chance of there
being a reliable relationship between those object files and the
installed programs.
Any time you switch between compiling from source and manually
dumping object codes and programs onto the system you should start
the compile process from scratch to re-establish a known state.
After an upgrade, and after you have recreated the /usr/obj, usr/xobj,
and /usr/pobj directories as part of recompiling patches, ports,
whatever, you should not need to nuke the object directories if you
want to save a few minutes of time (on most semi-modern systems).
The plan I would recommend is
1) Upgrade.
2) Follow release(8) to generate a coherent source <-> obj <-> program
relationship at your desired -release, -stable, -current level.
3) Check that the entire system built without errors.
3) Apply whatever errata you now need.
But really, just do a whole system build everytime. If you are
fiddling with systems way far away why try to save a few minutes
when you can be extra careful?
.... Ken