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

From: Jonathan Vasquez <jon_at_xyinn.org>
Date: Thu, 08 Dec 2022 15:09:03 UTC
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.

Jonathan Vasquez
PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279
Sent with ProtonMail Secure Email

Sent from Proton Mail mobile

-------- Original Message --------
On Dec 8, 2022, 09:55, Jonathan Vasquez wrote:

> Hey Souji,
>
> You'll find the following in "man ports":
>
> ENVIRONMENT
>
> You can change all of these.
>
> PORTSDIR
> Location of the ports tree. This is /usr/ports by default.
>
> WRKDIRPREFIX
> Where to create any temporary files. Useful if PORTSDIR is read-only (perhaps mounted from a CD-ROM).
>
> DISTDIR
> Where to find/put distfiles, normally distfiles/ in PORTSDIR
>
> ... other variables
>
> Jonathan Vasquez
> PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279
> Sent with ProtonMail Secure Email
>
> Sent from Proton Mail mobile
>
> -------- Original Message --------
> On Dec 8, 2022, 02:58, Souji Thenria wrote:
>
>> On 07.12.2022 23:18, Jonathan Vasquez wrote: > I went ahead and added the following to /etc/make.conf: > > PORTSDIR=/usr/local/poudriere/ports/default > DISTDIR=/usr/local/poudriere/distfiles > Hi, in the man page for make.conf is only the option 'DISTDIR' listed, and not 'PORTSDIR'. Based on that, I suppose it's just not a valid option. Souji