[gentoo-dev] [PATCH] rocm.eclass: dev-util/hip as an exception, not to expose USE flags.

2023-11-19 Thread heroxbd
From: Benda Xu Signed-off-by: Benda Xu --- eclass/rocm.eclass | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eclass/rocm.eclass b/eclass/rocm.eclass index b78dfea1cc31..04f321a83c8c 100644 --- a/eclass/rocm.eclass +++ b/eclass/rocm.eclass @@ -176,9 +176,12 @@ _rocm_s

[gentoo-dev] [PATCH 4/4] eclass/golang-vcs.eclass: set up compile env

2023-11-19 Thread James Le Cuirot
From: Thilo Fromm This change calls go-env_set_compile_environment in golang-vcs's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit golang-vcs. Signed-off-by: Thilo Fromm Closes: https://github.com/g

[gentoo-dev] [PATCH 3/4] eclass/golang-vcs-snapshot.eclass: set up compile env

2023-11-19 Thread James Le Cuirot
From: Thilo Fromm This change calls go-env_set_compile_environment in golang-vcs-snapshot's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit golang-vcs-snapshot. Signed-off-by: Thilo Fromm Signed-off

[gentoo-dev] [PATCH 2/4] eclass/go-module.eclass: export compile env in src_unpack

2023-11-19 Thread James Le Cuirot
From: Thilo Fromm This change calls go-env_set_compile_environment in go-module's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit go-module. Signed-off-by: Thilo Fromm Signed-off-by: James Le Cuirot

[gentoo-dev] [PATCH 1/4] eclass/go-env.eclass: add helper to set compile env

2023-11-19 Thread James Le Cuirot
From: Thilo Fromm This change adds a helper function to explicitly set CC, CXX, and GOARCH, and carrying over CFLAGS, LDFLAGS and friends to CGO equivalents, to provide a minimal sane compile environment for Go. It enables Go builds to play nice with crossdev's wrappers for emerge/ebuild etc. Pre

[gentoo-dev] [PATCH V2 0/4] eclass/go-env.eclass: add helper to enable cross compiling

2023-11-19 Thread James Le Cuirot
See the GitHub link for earlier discussion. This still doesn't work for cross-prefix builds, unless you set CGO_ENABLED=1, but fixing that involves different code and can be done later. https://github.com/gentoo/gentoo/pull/33539