Date: Thu, 8 Dec 2022 20:53:24 +0100 From: Souji Thenria <mail@souji-thenria.net> To: stable@freebsd.org Subject: Re: PORTSDIR not being read from /etc/make.conf when build /usr/src Message-ID: <01ae6f7f-7066-0d7b-ef09-545184990a29@souji-thenria.net> In-Reply-To: <lqGEB6ld8Qu_8-OhhvTONV0fuPCK0FjmzlFkJt5ZKFnREkwlLsejoxBE0DUuxi29OLC0goLwRUka0ZI_RqB_A8g4YbZ3jYd-FO8qbLCf-dg=@xyinn.org> References: <XXuxLARxjwZNxjbQnIKFDB85ApcIy_dz2FL23q-7pE1hDjwlty9p6-x6w-TlaW05uHZ4ZlqamQn26vrmKZUCjXMWT2DuRg6v_ldWogRVdLQ=@xyinn.org> <bfbbf96b-1fec-cda6-cfde-25d3eb113172@souji-thenria.net> <lRL_fWd9gFxvwZ1ucwip6iqUy0iDOF7MVPX3kZL6NAkDTrBbRSstBTeKCc9iQ_VRGmApksg3cvfrSbffCrJ88neO4imBdiXvdU_tzaKZ2Dk=@xyinn.org> <lqGEB6ld8Qu_8-OhhvTONV0fuPCK0FjmzlFkJt5ZKFnREkwlLsejoxBE0DUuxi29OLC0goLwRUka0ZI_RqB_A8g4YbZ3jYd-FO8qbLCf-dg=@xyinn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01ae6f7f-7066-0d7b-ef09-545184990a29>