Re: [gentoo-dev] [PATCH 2/2] go-env.eclass: also set GOARM & GO386 when applicable

2023-11-23 Thread Ionen Wolkens
On Thu, Nov 23, 2023 at 05:31:59PM +0800, WANG Xuerui wrote: > This is necessary for the build artifact to conform to the configured > ISA level and features on those arches. The logic is also taken from > the dev-lang/go ebuild. > > Signed-off-by: WANG Xuerui > --- > eclass/go-env.eclass | 21 +

[gentoo-dev] [PATCH 2/2] go-env.eclass: also set GOARM & GO386 when applicable

2023-11-23 Thread WANG Xuerui
This is necessary for the build artifact to conform to the configured ISA level and features on those arches. The logic is also taken from the dev-lang/go ebuild. Signed-off-by: WANG Xuerui --- eclass/go-env.eclass | 21 + 1 file changed, 21 insertions(+) diff --git a/eclass

[gentoo-dev] [PATCH 1/2] go-env.eclass: unify GOARCH mapping logic with dev-lang/go

2023-11-23 Thread WANG Xuerui
Previously the eclass featured its own GOARCH mapping, that took care of less cases than the dev-lang/go ebuild did, and broke Go packages on arches like loong (GOARCH=loong64), mips (4 GOARCHes supported in total) or riscv (GOARCH=riscv64). This patch adds a copy of the go_arch() helper from dev-

[gentoo-dev] [PATCH 0/2] go-env.eclass: niche platform fixes

2023-11-23 Thread WANG Xuerui
Hi, Here are some fixes to the recently added go-env.eclass that broke Go ebuilds on several arches (loong and riscv confirmed). I've tested on loong to confirm. You can also view this series on GitHub [1], should you prefer that. [1]: https://github.com/gentoo/gentoo/pull/33941 WANG Xuerui (2)