Re: PORTSDIR not being read from /etc/make.conf when build /usr/src

From: Souji Thenria <mail_at_souji-thenria.net>
Date: Thu, 08 Dec 2022 19:53:24 UTC
On 12/8/22 16:09, Jonathan Vasquez wrote:
> It is possible I suppose that since it's in man ports, the PORTSDIR 
> variable is used for ports but not for src, ven though it's in 
> /etc/make.conf, and thus it's available but ignored. The weird thing is 
> that during rebuilding modules after building a kernel (buildkernel), 
> the next phase is to rebuild the stuff listed in PORTS_MODULES, and that 
> does reference PORTSDIR, but it just isn't actually read from 
> /etc/make.conf.
> 

Hey Jonathan,

because it is more or less part of the src building process, maybe you 
can use 'SRC_ENV_CONF'. If I understand this snipped from src.conf(5) 
correctly:
The environment of make(1) for the build can be controlled via the
SRC_ENV_CONF variable, which defaults to /etc/src-env.conf.

For me, it sounds exactly like that what you would do with:
	make -j32 buildkernel PORTSDIR="/some/path"
However, I never used it, so I don't actually know...

Souji