From owner-freebsd-current Sat Nov 23 9:47:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A555C37B401 for ; Sat, 23 Nov 2002 09:47:35 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB14443E3B for ; Sat, 23 Nov 2002 09:47:33 -0800 (PST) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a209.otenet.gr [212.205.215.209]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gANHlUU6006808 for ; Sat, 23 Nov 2002 19:47:31 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gANH50XW001563 for ; Sat, 23 Nov 2002 19:05:00 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gANH5026001562; Sat, 23 Nov 2002 19:05:00 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Sat, 23 Nov 2002 19:04:59 +0200 From: Giorgos Keramidas To: Mark Murray Cc: current@freebsd.org Subject: Re: installworld and stale {include,lib} fun Message-ID: <20021123170459.GB1289@gothmog.gr> References: <20021123040317.GA4320@gothmog.gr> <200211231036.gANAaGaq028385@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211231036.gANAaGaq028385@grimreaper.grondar.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-11-23 10:36, Mark Murray wrote: > > 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? > > I would support this, as long as it was not compulsory. That's fair enough. I wasn't implying that everyone should do this, all the time. How does the following footnote look? %%% Index: UPDATING =================================================================== RCS file: /home/ncvs/src/UPDATING,v retrieving revision 1.228 diff -u -r1.228 UPDATING --- UPDATING 30 Oct 2002 20:11:07 -0000 1.228 +++ UPDATING 23 Nov 2002 17:03:07 -0000 @@ -1017,6 +1017,7 @@ [1] [3] mergemaster -p [5] + [10] make installworld mergemaster [4] @@ -1116,6 +1117,25 @@ [9] When checking out sources, you must include the -P flag to have cvs prune empty directories. + + [10] Just before running "make installworld" in single user mode, you + might want to run the following to make sure there are no stale + include files or libraries in your installed system: + cd /usr + mv include include.old + mkdir include + mtree -deU < /usr/src/etc/mtree/BSD.include.dist + mv lib lib.old + mkdir lib + ldconfig -elf /usr/lib.old + Note that you should be careful when libraries have been obsoleted, + since it is possible for some of your ports or packages to break, if + they had been linked against libraries that are moved to /usr/lib.old + by this. Don't remove /usr/lib.old right away! You might find that + it still has libraries you need. After you have installed everything + and checked that no problems of missing libraries exist, you can + safely remove both /usr/include.old and /usr/lib.old. + FORMAT: This file contains a list, in reverse chronological order, of major %%% To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message