diff options
author | Thilo Fromm <thilo.alexander@gmail.com> | 2023-11-08 08:40:50 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2023-11-20 23:25:32 +0000 |
commit | 0c931a2c3681542cb692c990fe2df2a185cb65ec (patch) | |
tree | 02310edbe31961a0a97ce6b7a0524c1dfd5ddf9e /eclass/golang-vcs.eclass | |
parent | eclass/golang-vcs-snapshot.eclass: set up compile env (diff) | |
download | gentoo-0c931a2c3681542cb692c990fe2df2a185cb65ec.tar.gz gentoo-0c931a2c3681542cb692c990fe2df2a185cb65ec.tar.bz2 gentoo-0c931a2c3681542cb692c990fe2df2a185cb65ec.zip |
eclass/golang-vcs.eclass: set up compile env
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 <thilo.alexander@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33539
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'eclass/golang-vcs.eclass')
-rw-r--r-- | eclass/golang-vcs.eclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/golang-vcs.eclass b/eclass/golang-vcs.eclass index 7558db4776cb..6f7a837bc15f 100644 --- a/eclass/golang-vcs.eclass +++ b/eclass/golang-vcs.eclass @@ -20,7 +20,7 @@ esac if [[ -z ${_GOLANG_VCS_ECLASS} ]]; then _GOLANG_VCS_ECLASS=1 -inherit estack golang-base +inherit estack golang-base go-env PROPERTIES+=" live" @@ -63,6 +63,7 @@ PROPERTIES+=" live" # @INTERNAL # @DESCRIPTION: # Create EGO_STORE_DIR if necessary. +# Set compile env via go-env. _golang-vcs_env_setup() { debug-print-function ${FUNCNAME} "$@" @@ -84,6 +85,8 @@ _golang-vcs_env_setup() { mkdir -p "${WORKDIR}/${P}/src" || die "${ECLASS}: unable to create ${WORKDIR}/${P}" return 0 + + go-env_set_compile_environment } # @FUNCTION: _golang-vcs_fetch |