Re: Populating /usr/include for make buildworld?

From: Bernd Walter <ticso_at_cicely12.cicely.de>
Date: Sat, 10 Feb 2007 22:12:52 +0100
On Sat, Feb 10, 2007 at 02:44:05PM -0500, Craig Rodrigues wrote:
> On Sat, Feb 10, 2007 at 11:59:04AM -0500, Craig Rodrigues wrote:
> > I am trying to see if I have any outdated files in /usr/include by
> > doing:
> > cd /usr/obj ; rm -r *
> > cd /usr/include ; rm -r *
> > cd /usr/src; make buildworld
> 
> Hi,
> 
> I had better luck with:
> cd /usr/obj ; rm -r *
> cd /usr/include ; rm -r *
> mtree -deU -f /usr/src/etc/mtree/BSD.include.dist -p /usr/include
> cd /usr/src; make installincludes
> make buildworld

You can't delete /usr/include befor make buildworld.
You need the include files for you currently installed system to
build the build tools, since the build tools need to run on your
installed system, not on the system you are about to build.
If you are worried about stall includes you can remove them befor
installworld, since the buildtools are already compiled as part of
the buildworld.

> I'm not sure if there is a better way to do it using the existing
> make target rules.

The better way is to not do it at all befor you've build the new
world, since this is foot shooting.

-- 
B.Walter                http://www.bwct.de      http://www.fizon.de
bernd_at_bwct.de           info_at_bwct.de            support_at_fizon.de
Received on Sat Feb 10 2007 - 20:13:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:05 UTC