svn commit: r232476 - in head: share/mk sys/conf
John Baldwin
jhb at freebsd.org
Sun Mar 4 04:17:52 UTC 2012
On Saturday, March 03, 2012 06:49:53 PM Dimitry Andric wrote:
> Author: dim
> Date: Sat Mar 3 23:49:53 2012
> New Revision: 232476
> URL: http://svn.freebsd.org/changeset/base/232476
>
> Log:
> Revert r232473. I have been convinced by Doug Barton and Bjoern Zeeb
> that it is better to error out when people attempt to build using the
> wrong bsd.*.mk files, than to silently ignore the problem.
>
> This means, that after this commit, if you want to build kernel modules
> by hand (or via a port) from a head source tree, you *must* make sure
> the files in /usr/share/mk are in sync with that tree. If that isn't
> possible, for example when you are running on an older FreeBSD branch,
> you can:
>
> - Run "make buildenv" from your head source tree, to have the correct
> environment setup. (It's advisable to have run "make buildworld", or
> at a minimum "make toolchain" first.)
> - Alternatively, set MAKESYSPATH to the share/mk directory under your
> head source tree. If your build tools are too old, other problems may
> still occur.
> - Alternatively, use "make -m" and specify the share/mk directory under
> your head source tree. Again, build tools that are too old may still
> result in trouble.
Or use 'make MK_CTF=no MK_CLANG_IS_CC=no' (which is what I do). However, I
know the risks I take doing that, and I think your reversion above is correct.
(Unfortunately I can't run HEAD on my primary desktop as I have to use it for
${DAYJOB}.)
--
John Baldwin
More information about the svn-src-head
mailing list