tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: go package build problem: go: cannot find GOROOT directory: 'go' binary is trimmed and GOROOT is not set



On Fri, Dec 08, 2023 at 03:28:30PM +0100, Benny Siegert wrote:
> in src/os/executable_procfs.go, Go uses /proc on NetBSD and Linux to
> determine the path to the go tool. On FreeBSD, for comparison, it runs
> "sysctl proc.pathname", which NetBSD does not have.

Fall back to KERN_PROC_PATHNAME ?
See src/tests/kernel/h_getprocpath.c for an example use.

Martin


Home | Main Index | Thread Index | Old Index