Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2012 23:17:48 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r232476 - in head: share/mk sys/conf
Message-ID:  <201203032317.49346.jhb@freebsd.org>
In-Reply-To: <201203032349.q23NnrIb005355@svn.freebsd.org>
References:  <201203032349.q23NnrIb005355@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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