Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2012 11:04:06 -0500
From:      Mark Linimon <linimon@lonesome.com>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        Chris Rees <crees@freebsd.org>, Chris <behrnetworks@gmail.com>, Current FreeBSD <freebsd-current@freebsd.org>, "O. Hartmann" <ohartman@zedat.fu-berlin.de>, Doug Barton <dougb@freebsd.org>
Subject:   Re: "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC}
Message-ID:  <20120417160406.GA11465@lonesome.com>
In-Reply-To: <4F8D3CB8.5090907@FreeBSD.org>
References:  <CADLo838ZKXXS4mVcjG3cnRp=aQdx5Cpas6DLiSsGQO1acqHnwQ@mail.gmail.com> <4F52286E.4030608@FreeBSD.org> <4F523C1A.4060008@zedat.fu-berlin.de> <CAFYLaXPveMM0RCoHSLpG8i2-i6cStWSPrf4FkzZu63Eg--UE%2Bw@mail.gmail.com> <4F8BBFF3.50205@FreeBSD.org> <CAFYLaXNfYD0E6UbXHO9gBYY0x3eNACQDstubaPZSL_6x4tMzSw@mail.gmail.com> <20120416230857.GA26957@mech-cluster241.men.bris.ac.uk> <4F8D3565.2020803@FreeBSD.org> <20120417093652.GA29091@mech-cluster241.men.bris.ac.uk> <4F8D3CB8.5090907@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 17, 2012 at 11:49:44AM +0200, Dimitry Andric wrote:
> It would hopefully error out.  If you look in /usr/share/mk/bsd.kmod.mk,
> you will see this at the bottom:
> 
>   .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
>       !exists(${SYSDIR}/conf/kmod.mk)
>   .error Unable to locate the kernel source tree. Set SYSDIR to override.
>   .endif
> 
> So, setting SYSDIR to the correct directory is also a possible solution.

Note that in ports-land we discourage .error in the ports infrastructure
as it can make it impossible to query metadata (e.g. make index,
make -V maintainer, etc.)  So this usage should stay in src.

mcl



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