On Sat, Nov 23, 2002 at 06:03:17AM +0200, Giorgos Keramidas wrote: > I tried to get myself a clean /usr/{include,lib} installation after a > successful buildworld earlier. To make this as clean an installation > as possible, I did the following before running "make installworld": > > # cd /usr > # mv include include.old > # mkdir include > # cd include ; mtree -deU < /usr/src/etc/mtree/BSD.include.dist > # mv lib lib.old > # ldconfig -elf /usr/lib.old > > Then, after installworld finished alright, I rebooted the single-user > mode session I was running and noticed that a few of the ports I had > installed were broken :) > > Apparently editors/vim-lite had picked up an old, obsolete libposix*.so > from one of the past installations and linked against that. Deleting > the port and reinstalling it worked like a charm, which made me think > a bit... Should we recommend in UPDATING that source upgrades include > something similar? Well, maybe not all the time (since ports can > break like vim did for me), but at least under a "making your /usr as > clean as possible" paragraph? > It's always a good idea to do this, if you have appropriate COMPAT_* bits enabled in your /etc/make.conf. I use ``find -mtime +1'' to clean up after installworld, except renaming /usr/include and removing /usr/libdata/perl for RELENG_4 before installworld). I also remove empty directories in standard places, and re-run ``make distrib-dirs'' after that, to create ones that are really necessary.
Cheers, -- Ruslan Ermilov Sysadmin and DBA, [EMAIL PROTECTED] Sunbay Software AG, [EMAIL PROTECTED] FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age
msg47333/pgp00000.pgp
Description: PGP signature