Re: Module compiles looking in /usr/src when alternate src tree is in use

From: Simon J. Gerraty <sjg_at_juniper.net>
Date: Tue, 10 Apr 2018 17:37:16 -0700
Rodney W. Grimes <freebsd-rwg_at_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!
Received on Tue Apr 10 2018 - 22:38:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:15 UTC