Populating /usr/include for make buildworld?

Doug Barton dougb at FreeBSD.org
Sat Feb 10 22:09:00 UTC 2007


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


More information about the freebsd-current mailing list