Date: Tue, 10 Apr 2018 17:37:16 -0700 From: "Simon J. Gerraty" <sjg@juniper.net> To: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> Cc: <freebsd-current@freebsd.org>, <sjg@juniper.net> Subject: Re: Module compiles looking in /usr/src when alternate src tree is in use Message-ID: <53324.1523407036@kaos.jnpr.net> In-Reply-To: <201804110029.w3B0TPUf025467@pdx.rh.CN85.dnsmgr.net> References: <201804110029.w3B0TPUf025467@pdx.rh.CN85.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Rodney W. Grimes <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> wrote:
> Thank you, that does help narrow it down: (I backed up a vew lines
> from the first place I saw src/.)
>
> ...
> Global:.PARSEFILE = bsd.kmod.mk
> Global:.PARSEDIR = /usr/src-topo/share/mk
> Global:.PARSEFILE = bsd.kmod.mk
> Result[] of :U is "/usr/src/sys"
> Result[] of :U is "/usr/src/sys"
> Global:SYSDIR = ${:U/usr/src/sys:tA}
That's from the .for loop in bsd.kmod.mk which is clearly inadequate.
Since the tree for some time now, reliably sets SRCTOP
that list should start with ${SRCTOP}/sys
or ${SRCTOP:Uno}/sys just to be sure you ignore it if somehow unset.
> So something in bsd.kmod.mk is going very wrong... it looks like it
> starts to pull all sorts of stuff from /usr/src/sys!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53324.1523407036>
