Re: buildkernel doesn't respect PORTSDIR with PORTS_MODULES

From: Juraj Lutter <otis_at_FreeBSD.org>
Date: Thu, 24 Nov 2022 14:16:06 UTC

> On 24 Nov 2022, at 15:05, Gary Jennejohn <garyj@gmx.de> wrote:
> 
> On Thu, 24 Nov 2022 12:02:35 +0000
> Nuno Teixeira <eduardo@freebsd.org> wrote:
> 
>> Hello,
>> 
>> I'm trying PORT_MODULES with make.conf:
>> ---
>> PORTSDIR=/work/freebsd/ports
>> DISTDIR=/work/DISTFILES
>> PORTS_MODULES=graphics/drm-kmod x11/nvidia-driver
>> 
> 
> bsd.port.mk and bsd.port.subdir.mk use _PORTSDIR.  You could try adding
> that to your list.
> 

PORTS_MODULES are being built from within kern.post.mk. I’d put PORTSDIR into src-env.conf instead of /etc/src.conf, for that purpose.

—
Juraj Lutter
otis@FreeBSD.org