Re: Populating /usr/include for make buildworld?

From: Doug Barton <dougb_at_FreeBSD.org>
Date: Sat, 10 Feb 2007 14:08:47 -0800
David Wolfskill wrote:
> On Sat, Feb 10, 2007 at 07:37:04PM +0100, Oliver Fromme wrote:
>> Craig Rodrigues wrote:
>>  > I am trying to see if I have any outdated files in /usr/include by
>> ...
>> I had exactly the same problem (but on RELENG_6).
>>
>> At first I copied the missing files from the source tree
>> ...
>>  > What is the correct way to populate /usr/include 
>>  > before buildworld?
>>
>> I would like to know the answer, too.
> 
> I approach the problem from a different point:  as part of my
> {build,install}world procedure, I do:
> 
> 	make buildworld && make kernel && mergemaster -u 0022 -p && \
> 	rm -fr /usr/include.old && mv /usr/include{,.old} && \
> 	make installworld && make delete-old && mergemaster -u 0022 -i

I have something similar that I've used for years, the method works well:

doinstall ()
{
    cd /usr && [ -d include-old ] && /bin/rm -r include-old;
    [ ! -e include-old ] && mv -i include include-old;
    /bin/rm -r /usr/share/man;
    cd /usr/src && touch /var/tmp/installdate && make installworld
}

hth,

Doug

-- 

    This .signature sanitized for your protection
Received on Sat Feb 10 2007 - 21:09:00 UTC

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