pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/58830 (WRKDIR references in go123)
The following reply was made to PR pkg/58830; it has been noted by GNATS.
From: Benny Siegert <bsiegert%netbsd.org@localhost>
To: David Holland <dholland-pbugs%netbsd.org@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: pkg/58830 (WRKDIR references in go123)
Date: Tue, 19 Nov 2024 11:49:27 +0100
On Tue, Nov 19, 2024 at 5:12=E2=80=AFAM David Holland <dholland-pbugs@netbs=
d.org> wrote:
> That sounds great, but I don't immediately understand how that's
> related to WRKDIR references.
>
> There's a patch that says
> Build with debugging symbols and paths built in. Otherwise, the go too=
l
> needs /proc mounted to find its goroot directory.
> but go122 has the same patch and doesn't end up with WRKDIR references.
The reason that this changed is that the "old" way -- baking in
GOROOT_FINAL into the binaries -- was removed in Go 1.23.
For Go 1.24, my patch was accepted, and it will use sysctl
(kern.proc.args.-1.pathname) to find the standard library files. If
you would like, I could backport this patch to Go 1.23 in pkgsrc.
--=20
Benny
Home |
Main Index |
Thread Index |
Old Index