Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2018 08:05:01 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Andrew Gallatin <gallatin@cs.duke.edu>, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r335916 - head/sys/conf
Message-ID:  <5B41633D.3070805@grosbein.net>
In-Reply-To: <CANCZdfoOyMi=LpRYnv7=sF4OvOMd4TJ99dSpPEnerWSQCX1Wfg@mail.gmail.com>
References:  <201807032305.w63N5guY063293@repo.freebsd.org> <20180704142233.GB5562@kib.kiev.ua> <6e5bc5e4-052c-877f-1c36-c72e276ff045@FreeBSD.org> <20180705155417.GI5562@kib.kiev.ua> <2a5b1c50-0f50-bbe1-4fcd-b98f61d24571@FreeBSD.org> <5B3EA725.4010202@grosbein.net> <1dd03d43-6f0d-580b-fd3b-f4494da42c70@FreeBSD.org> <51ec1e54-c940-9800-5c84-0f9b6e08895f@cs.duke.edu> <5B412CEF.3020901@grosbein.net> <CANCZdfp16_o2HYWG6zSqSZVJO7-T5_UYp69eTaRCC-MDiDNiYg@mail.gmail.com> <5B414F22.4030501@grosbein.net> <CANCZdfoOyMi=LpRYnv7=sF4OvOMd4TJ99dSpPEnerWSQCX1Wfg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
08.07.2018 7:33, Warner Losh wrote:

>     >     We already have all headers in /usr/include, don't we?
>     > Not really. We have a subset of the kernel headers that might not match the running kernel, nor be enough to build modules.
>     They should match running kernel definitely as we do not support not syncronized kernel/world
>     and installworld populates /usr/include.
> Nice theory. Lots and lots of people run this way. And it has worked well, so long as the kernel is newer... so, no, they don't have to match.

It could work. It can also easily break things with newer kernel too, I can remember many cases.
/sbin/ipfw, ps, ifconfig, netstat, top, killall and some important others are not guaranteed to run with newer kernel.
I still run FreeBSD 4.11-STABLE inside 11.2-STABLE jail and that's why I know this.

>     And why a subset? Don'we support old-style kernel re-build "config; make depend; make"
>     that does not require full /usr/src tree but /usr/src/sys only?
> /usr/include is never, ever used to build the kernel (except for things like aicasm).

OO. We could still add the whole bunch of needed .h files from /usr/src/sys/ there.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5B41633D.3070805>